add BroadcastDebugMsg
This commit is contained in:
parent
f88feb51cb
commit
09862e8c44
@ -1094,6 +1094,21 @@ void Room::TouchAlivePlayers(a8::XParams param,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Room::BroadcastDebugMsg(const std::string& debug_msg)
|
||||||
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
|
TouchHumanList
|
||||||
|
(
|
||||||
|
a8::XParams()
|
||||||
|
.SetParam1(debug_msg),
|
||||||
|
[] (Human* hum, a8::XParams& param) -> bool
|
||||||
|
{
|
||||||
|
hum->SendDebugMsg(param.param1);
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void Room::UpdateGas()
|
void Room::UpdateGas()
|
||||||
{
|
{
|
||||||
switch (gas_data_.gas_mode) {
|
switch (gas_data_.gas_mode) {
|
||||||
|
@ -101,6 +101,7 @@ public:
|
|||||||
std::function<bool (Entity*, a8::XParams&)> func);
|
std::function<bool (Entity*, a8::XParams&)> func);
|
||||||
void TouchAlivePlayers(a8::XParams param,
|
void TouchAlivePlayers(a8::XParams param,
|
||||||
std::function<bool (Human*, a8::XParams&)> func);
|
std::function<bool (Human*, a8::XParams&)> func);
|
||||||
|
void BroadcastDebugMsg(const std::string& debug_msg);
|
||||||
|
|
||||||
void ScatterDrop(a8::Vec2 center, int drop_id);
|
void ScatterDrop(a8::Vec2 center, int drop_id);
|
||||||
void DropItem(a8::Vec2 pos, int item_id, int item_count, int item_lv);
|
void DropItem(a8::Vec2 pos, int item_id, int item_count, int item_lv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user