1
This commit is contained in:
parent
d7a36501f1
commit
dc34f9cec2
@ -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()
|
||||
|
@ -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_;
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user