1
This commit is contained in:
parent
f910a16bfa
commit
c69747652e
@ -9,15 +9,20 @@ namespace cs
|
|||||||
class CMSetCurrPrivateChatTarget;
|
class CMSetCurrPrivateChatTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct UserInfo;
|
||||||
class Player : public std::enable_shared_from_this<Player>
|
class Player : public std::enable_shared_from_this<Player>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
int socket_handle = 0;
|
int socket_handle = 0;
|
||||||
|
std::string account_id;
|
||||||
|
|
||||||
void _CMSendChatMsg(f8::MsgHdr& hdr, const cs::CMSendChatMsg& msg);
|
void _CMSendChatMsg(f8::MsgHdr& hdr, const cs::CMSendChatMsg& msg);
|
||||||
void _CMSendCustomMsg(f8::MsgHdr& hdr, const cs::CMSendCustomMsg& msg);
|
void _CMSendCustomMsg(f8::MsgHdr& hdr, const cs::CMSendCustomMsg& msg);
|
||||||
void _CMReadMsgAndOpenChatNotify(f8::MsgHdr& hdr, const cs::CMReadMsgAndOpenChatNotify& msg);
|
void _CMReadMsgAndOpenChatNotify(f8::MsgHdr& hdr, const cs::CMReadMsgAndOpenChatNotify& msg);
|
||||||
void _CMCloseChatNotify(f8::MsgHdr& hdr, const cs::CMCloseChatNotify& msg);
|
void _CMCloseChatNotify(f8::MsgHdr& hdr, const cs::CMCloseChatNotify& msg);
|
||||||
void _CMSetCurrPrivateChatTarget(f8::MsgHdr& hdr, const cs::CMSetCurrPrivateChatTarget& msg);
|
void _CMSetCurrPrivateChatTarget(f8::MsgHdr& hdr, const cs::CMSetCurrPrivateChatTarget& msg);
|
||||||
|
std::weak_ptr<UserInfo> GetUserInfo() { return user_info_; };
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::weak_ptr<UserInfo> user_info_;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user