MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / sendChatMessage

Method sendChatMessage

src/OpenLoco/src/Network/NetworkServer.cpp:305–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

sendChatMessageFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected