Files
mir_server/sdk/commonLib/include/CustomGlobalSession.h
aixianling 5c9f1dae4a init
2025-01-09 17:45:40 +08:00

25 lines
884 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.

#pragma once
/****************************************************
*
* 全局会话抽象类
*
***************************************************/
class CCustomGlobalSession
{
public:
INT nGateIndex; //处于网关的编号
unsigned int nSessionId; //全局会话ID
int nServerIndex; //会话登录的服务器ID
int nRawServerId;// 角色原始创建时的服务器ID
LONGLONG nClientIPAddr; //会话登录的IP地址支持IPv6
DWORD dwFCMOnlineSec; //防沉迷系统中不满足下线休息时间而产生的连续在线时间,单位是秒
jxSrvDef::GSSTATE nState; //会话状态(登录、查询角色还是已经进入游戏)
jxSrvDef::ACCOUNT sAccount; //会话账号
unsigned long long dwSessionTick; //会话开启的时间
int nGmLevel; //GM等级
UINT64 lKey; //key
};