This commit is contained in:
aozhiwei 2023-05-24 15:57:47 +08:00
parent cdf552a091
commit 08b9045245
2 changed files with 15 additions and 5 deletions

View File

@ -2124,3 +2124,18 @@ void SandTable::FillMFSandTable(cs::SMUpdate* msg, Human* hum, FrameData* framed
}
++hum->send_sand_table_msg_times;
}
void Room::NotifyNewsTicker(int msg_type, std::vector<std::string> msg_content)
{
cs::SMNewsTicker notify_msg;
notify_msg.set_msg_type(msg_type);
for (auto str : msg_content) {
notify_msg.mutable_msg_content()->add_values(str);
}
TraversePlayerList
(
[&notify_msg] (Player* hum)
{
hum->SendNotifyMsg(notify_msg);
});
}

View File

@ -3868,8 +3868,3 @@ void Room::CloseRoomSwitch(int tag)
{
a8::UnSetBitFlag(room_switch_, tag);
}
void Room::NotifyNewsTicker(int msg_type, std::vector<std::string> msg_content)
{
}