1
This commit is contained in:
parent
977d5f4279
commit
7bb9b4fb7f
@ -27,7 +27,6 @@ void Player::Init()
|
|||||||
(unsigned char*)myself.base_data.account_id.data(),
|
(unsigned char*)myself.base_data.account_id.data(),
|
||||||
myself.base_data.account_id.size()
|
myself.base_data.account_id.size()
|
||||||
);
|
);
|
||||||
SyncLocToMasterServer();
|
|
||||||
NotifyOnline();
|
NotifyOnline();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,6 +41,7 @@ void Player::UnInit()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
friend_hash_.clear();
|
friend_hash_.clear();
|
||||||
|
NotifyOffline();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::Deserialize(const ss::MFUserDB& user_db)
|
void Player::Deserialize(const ss::MFUserDB& user_db)
|
||||||
@ -505,7 +505,6 @@ void Player::ReLogin(f8::MsgHdr& hdr, const cs::CMLogin& msg)
|
|||||||
cs::SMLogin respmsg;
|
cs::SMLogin respmsg;
|
||||||
WSListener::Instance()->SendToClient(hdr.socket_handle, 0, respmsg);
|
WSListener::Instance()->SendToClient(hdr.socket_handle, 0, respmsg);
|
||||||
PlayerMgr::Instance()->ReBindSocket(hdr.socket_handle, this);
|
PlayerMgr::Instance()->ReBindSocket(hdr.socket_handle, this);
|
||||||
SyncLocToMasterServer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::FillFriendList(::google::protobuf::RepeatedPtrField< ::cs::MFUserInfo >* friend_list)
|
void Player::FillFriendList(::google::protobuf::RepeatedPtrField< ::cs::MFUserInfo >* friend_list)
|
||||||
@ -642,11 +641,6 @@ void Player::FillApplyList(const cs::MFPaging& paging, cs::SMFriendApplyList& re
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::SyncLocToMasterServer()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void Player::NotifyOnline()
|
void Player::NotifyOnline()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -106,7 +106,6 @@ private:
|
|||||||
void SaveToDB();
|
void SaveToDB();
|
||||||
Friend* GetFriendById(const std::string& friend_id);
|
Friend* GetFriendById(const std::string& friend_id);
|
||||||
void FillApplyList(const cs::MFPaging& paging, cs::SMFriendApplyList& respmsg);
|
void FillApplyList(const cs::MFPaging& paging, cs::SMFriendApplyList& respmsg);
|
||||||
void SyncLocToMasterServer();
|
|
||||||
void MarkDirty();
|
void MarkDirty();
|
||||||
void OnDataVersion1Change();
|
void OnDataVersion1Change();
|
||||||
void OnTempCustomDataChange();
|
void OnTempCustomDataChange();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user