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

Method queueGameCommand

src/OpenLoco/src/Network/NetworkServer.cpp:321–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321void NetworkServer::queueGameCommand(CompanyId company, const OpenLoco::GameCommands::registers& regs)
322{
323 GameCommandPacket newPacket;
324 newPacket.index = ++_gameCommandIndex;
325 newPacket.tick = 0;
326 newPacket.company = company;
327 newPacket.regs = regs;
328 _gameCommands.push(newPacket);
329}
330
331void NetworkServer::runGameCommands()
332{

Callers 1

queueGameCommandFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected