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

39 lines
995 B
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.

#ifndef _GATEUSER_H_
#define _GATEUSER_H_
/**
网关用户类
此类不可再继承
**/
class CDBGateUser
: public CCustomServerGateUser
{
public:
typedef CCustomServerGateUser Inherited;
public:
PCREATEACTORDATAREQ pCreateCharStruct; //创建角色的数据仅当启用名称服务器的时候有意义如果值为NULL则表示没有在创建角色
TICKCOUNT dwCreateCharTimeOut;//创建角色时通过名称服务器申请角色名称的超时时间
INT_PTR nNameLibIndex; //随机名字在名字库中的索引
char sRandomName[32]; //系统发给玩家的随机名字
WORD nZyList; //发给客户端的可选的阵营列表用位表示比如第一位是1表示阵营1可选如果是0表示都不可选由系统分配
char szIP[128]; //登陆的ip
int nPort; //登陆的端口
public:
CDBGateUser():Inherited()
{
nGlobalSessionId = 0;
sAccount[0] = 0;
nZyList = -1;
szIP[0]=0;
nPort=0;
}
};
#endif