| 303 | } |
| 304 | |
| 305 | void NetworkServer::sendChatMessage(std::string_view message) |
| 306 | { |
| 307 | std::unique_lock<std::mutex> lk(_chatMessageQueueSync); |
| 308 | _chatMessageQueue.push({ 0, std::string(message) }); |
| 309 | } |
| 310 | |
| 311 | void NetworkServer::sendGameCommand(uint32_t index, uint32_t tick, CompanyId company, const OpenLoco::GameCommands::registers& regs) |
| 312 | { |