This commit is contained in:
aozhiwei 2020-06-19 18:34:17 +08:00
parent 389dd08185
commit c8a64ca0d4
2 changed files with 18 additions and 0 deletions

View File

@ -32,6 +32,18 @@ void Player::Init()
myself.base_data.account_id.size() myself.base_data.account_id.size()
); );
NotifyOnline(); NotifyOnline();
a8::Timer::Instance()->AddRepeatTimerAndAttach
(
1000 * 3 + (rand() % 3000),
a8::XParams()
.SetSender(this),
[] (const a8::XParams& param)
{
Player* hum = (Player*)param.sender.GetUserData();
hum->ProcessEventTimerFunc();
},
&timer_attacher.timer_list_
);
} }
void Player::UnInit() void Player::UnInit()
@ -823,3 +835,8 @@ void Player::SyncOtherFriend()
} }
} }
} }
void Player::ProcessEventTimerFunc()
{
}

View File

@ -119,6 +119,7 @@ private:
void RemoveFriend(const std::string& account_id); void RemoveFriend(const std::string& account_id);
void PushFriendList(); void PushFriendList();
void SyncOtherFriend(); void SyncOtherFriend();
void ProcessEventTimerFunc();
private: private:
bool dirty_ = false; bool dirty_ = false;