Files
mir_server/Gateway/common/gate/gate_user.h

27 lines
593 B
C
Raw Permalink Normal View History

2025-01-09 17:45:40 +08:00
#ifndef _GATE_USER_H_
#define _GATE_USER_H_
class GateUser
{
public:
NetId netid_;
int account_id_; //<2F><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD>ȫ<EFBFBD>ֻỰID
ActorId actor_id_; // ѡ<><D1A1><EFBFBD>Ľ<EFBFBD>ɫid<69><64><EFBFBD>ڴ<EFBFBD>֮ǰ<D6AE><C7B0>0
bool closed_; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD>ر<EFBFBD>
int64_t handle_;
int gm_; // gm<67>ȼ<EFBFBD>
char remote_addr_[32]; //<2F>ͻ<EFBFBD><CDBB>˵<EFBFBD>ַ
SrvDef::ACCOUNT account_name_; //<2F>ʺ<EFBFBD><CABA>ַ<EFBFBD><D6B7><EFBFBD>
public:
GateUser(): account_id_(0), actor_id_(0), closed_(true), handle_(0), gm_(-1)
{
STATIC_ASSERT(sizeof(netid_.index_) == 2);
netid_.index_ = 0xffff;
remote_addr_[0] = 0;
account_name_[0] = 0;
}
};
#endif