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

Method sendGameCommand

src/OpenLoco/src/Network/NetworkServer.cpp:311–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void NetworkServer::sendGameCommand(uint32_t index, uint32_t tick, CompanyId company, const OpenLoco::GameCommands::registers& regs)
312{
313 GameCommandPacket packet;
314 packet.index = index;
315 packet.tick = tick;
316 packet.company = company;
317 packet.regs = regs;
318 sendPacketToAll(packet);
319}
320
321void NetworkServer::queueGameCommand(CompanyId company, const OpenLoco::GameCommands::registers& regs)
322{

Callers 1

queueGameCommandFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected