This commit is contained in:
aozhiwei 2020-06-22 14:25:26 +08:00
parent d7a36501f1
commit dc34f9cec2
3 changed files with 16 additions and 1 deletions

View File

@ -777,7 +777,7 @@ void Player::RemoveFriend(const std::string& account_id)
void Player::Update(long long tick)
{
last_run_tick_ = tick;
}
const std::string Player::AccountId()

View File

@ -130,6 +130,7 @@ private:
long long last_apply_idx_ = 0;
long long last_event_idx_ = 0;
long long curr_max_event_idx_ = 0;
long long last_run_tick_ = 0;
std::map<std::string, Friend*> friend_hash_;
std::map<long long, FriendApply*> apply_hash_;

View File

@ -52,3 +52,17 @@ struct FriendApply
std::string target_id;
BaseUserData base_data;
};
struct Event
{
long long idx = 0;
std::string sender_id;
std::string target_id;
std::string event_name;
std::string param1;
std::string param2;
std::string param3;
std::string event_data;
int status = 0;
int createtime = 0;
};