1
This commit is contained in:
parent
d7c4328324
commit
fae0d73d5b
@ -792,6 +792,11 @@ const std::string Player::AccountId()
|
||||
return myself.base_data.account_id;
|
||||
}
|
||||
|
||||
const std::string Player::SessionId()
|
||||
{
|
||||
return role_data.session_id;
|
||||
}
|
||||
|
||||
int Player::GetFriendNum()
|
||||
{
|
||||
return friend_hash_.size();
|
||||
|
@ -17,10 +17,7 @@ class Player
|
||||
a8::TimerAttacher timer_attacher;
|
||||
|
||||
Friend myself;
|
||||
std::string account_id;
|
||||
std::string session_id;
|
||||
int today_invite_times = 0;
|
||||
int last_invite_time = 0;
|
||||
RoleData role_data;
|
||||
|
||||
public:
|
||||
void Init();
|
||||
@ -103,6 +100,7 @@ class Player
|
||||
void Update(long long tick);
|
||||
|
||||
const std::string AccountId();
|
||||
const std::string SessionId();
|
||||
int GetFriendNum();
|
||||
|
||||
private:
|
||||
|
@ -66,3 +66,12 @@ struct Event
|
||||
int status = 0;
|
||||
int createtime = 0;
|
||||
};
|
||||
|
||||
struct RoleData
|
||||
{
|
||||
std::string account_id;
|
||||
std::string session_id;
|
||||
int today_apply_times = 0;
|
||||
int save_count = 0;
|
||||
int last_save_time = 0;
|
||||
};
|
||||
|
@ -56,6 +56,7 @@ message MFFriendDB
|
||||
message MFUserDB
|
||||
{
|
||||
repeated MFFriendDB friends = 1;
|
||||
optional MFRole role_data = 2;
|
||||
}
|
||||
|
||||
message SS_WSP_SocketDisconnect
|
||||
|
Loading…
x
Reference in New Issue
Block a user