You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
1.4 KiB

/*
Sog 游戏基础库
2016 by zouwei
*/
using ProtoCSStruct;
namespace Chat
{
public class PlayerOnChat
{
public long SessionID { get; private set; }
public uint GateServerID { get; private set; }
public string Lang; //语言
//玩家信息
public long UserID; //玩家id,根据账号生成
public int RealmID;
public int LogicWorldID;
public long LoginToken; //登陆标签
public string Nick; //昵称
public string Icon; //头像
public int Gender; //性别
public string UnionName; //公会名
public string UnionIcon; //公会框
public int iconFrameId; //头像框
public DBRoleBase roleBase;
public DBSysData sysData;
public DBExtData extData;
public string IPAddr; //客户端Ip地址
//网络断线时间
public long DisconnectedTime = 0;
//下线时间
public long OfflineTime = 0;
//禁言解除时间
public long GagChatEndTime;
//上次聊天时间
public long LastWorldChatTime = 0;
//上一个跑马灯seq
public int LastSysNoticeLampSeq;
//上一个公告seq
//public int LastSysNoticeSeq;
public PlayerOnChat(long sessionID, uint gateServerID)
{
SessionID = sessionID;
GateServerID = gateServerID;
}
public string GetPlayerLanguageStr(string content)
{
return Sog.Lang.LanguageUtils.GetLanguageString(content, Lang);
}
}
}