1
This commit is contained in:
parent
389dd08185
commit
c8a64ca0d4
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -119,6 +119,7 @@ private:
|
||||
void RemoveFriend(const std::string& account_id);
|
||||
void PushFriendList();
|
||||
void SyncOtherFriend();
|
||||
void ProcessEventTimerFunc();
|
||||
|
||||
private:
|
||||
bool dirty_ = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user