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()
);
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()
@ -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 PushFriendList();
void SyncOtherFriend();
void ProcessEventTimerFunc();
private:
bool dirty_ = false;