add wxvoip
This commit is contained in:
parent
644d90faa7
commit
ce9408f6f9
@ -1641,6 +1641,13 @@ void Human::SendUIUpdate()
|
|||||||
SendNotifyMsg(notifymsg);
|
SendNotifyMsg(notifymsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Human::SendWxVoip()
|
||||||
|
{
|
||||||
|
cs::SMWxVoip notifymsg;
|
||||||
|
notifymsg.set_group_id(a8::XValue(room->room_uuid).GetString());
|
||||||
|
SendNotifyMsg(notifymsg);
|
||||||
|
}
|
||||||
|
|
||||||
void Human::ClearFrameData()
|
void Human::ClearFrameData()
|
||||||
{
|
{
|
||||||
if (!new_objects.empty()) {
|
if (!new_objects.empty()) {
|
||||||
|
@ -173,6 +173,7 @@ class Human : public Entity
|
|||||||
void SendRollMsg(const std::string& roll_msg);
|
void SendRollMsg(const std::string& roll_msg);
|
||||||
void UpdateAction();
|
void UpdateAction();
|
||||||
void SendUIUpdate();
|
void SendUIUpdate();
|
||||||
|
void SendWxVoip();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ClearFrameData();
|
void ClearFrameData();
|
||||||
|
@ -830,6 +830,7 @@ void Room::UpdateGas()
|
|||||||
battle_start_frameno_ = frame_no;
|
battle_start_frameno_ = frame_no;
|
||||||
xtimer.DeleteTimer(auto_jump_timer_);
|
xtimer.DeleteTimer(auto_jump_timer_);
|
||||||
auto_jump_timer_ = nullptr;
|
auto_jump_timer_ = nullptr;
|
||||||
|
NotifyWxVoip();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1191,3 +1192,20 @@ void Room::NotifyUiUpdate()
|
|||||||
},
|
},
|
||||||
&xtimer_attacher.timer_list_);
|
&xtimer_attacher.timer_list_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Room::NotifyWxVoip()
|
||||||
|
{
|
||||||
|
xtimer.AddDeadLineTimerAndAttach(0,
|
||||||
|
a8::XParams()
|
||||||
|
.SetSender(this),
|
||||||
|
[] (const a8::XParams& param)
|
||||||
|
{
|
||||||
|
Room* room = (Room*)param.sender.GetUserData();
|
||||||
|
room->TouchPlayerList(a8::XParams(),
|
||||||
|
[] (Player * hum, a8::XParams & param)
|
||||||
|
{
|
||||||
|
hum->SendWxVoip();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
&xtimer_attacher.timer_list_);
|
||||||
|
}
|
||||||
|
@ -111,6 +111,7 @@ private:
|
|||||||
void OnGameOver();
|
void OnGameOver();
|
||||||
void RandRemoveAndroid();
|
void RandRemoveAndroid();
|
||||||
void NotifyUiUpdate();
|
void NotifyUiUpdate();
|
||||||
|
void NotifyWxVoip();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
timer_list* stats_timer_ = nullptr;
|
timer_list* stats_timer_ = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user