Files
mir_server/server/LogicServer/gate/LogicGateUser.h
aixianling 5c9f1dae4a init
2025-01-09 17:45:40 +08:00

47 lines
1.4 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
/*********************************************************/
/*
/* 逻辑服务器网关用户对象
/*
/*********************************************************/
class CLogicGateUser : public CCustomServerGateUser, public Counter<CLogicGateUser>
{
public:
typedef CCustomServerGateUser Inherited;
CLogicGateUser()
{
nCharId = 0;
sCharName[0] = 0;
nHandleIndex =0;
lLogicKey =0;
nLastRandNameIndex =-1;
sLastRandName[0]=0;
dwFlag =0;
}
unsigned int nCharId; //网关登录用户的角色ID
jxSrvDef::ACTORNAME sCharName; //网关登录用户的角色名称
Uint64 lLogicKey; //逻辑初始化的key用于查找
int nLastRandNameIndex; //数据服返回的上一次的随机的名字
jxSrvDef::ACTORNAME sLastRandName; //上次登陆随机出来的名字
//一些逻辑用到的标记以后就随便增加64个以内
union
{
Uint64 dwFlag; //标志组1
struct
{
bool recordLog:1; //是否记录流通日志
bool boHasSecPsw:1; //是否有2级密码
bool boCheckSecPswSucess:1; //2级密码的监测是否成功
bool boWhiteIpLogin:1; //是否是白名单登陆的
};
} ;
unsigned nHandleIndex; //这个是玩家实体的句柄的index保存这个为了发送到逻辑服务器的数据能够快速定位到一个玩家身上
};