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

Function queueGameCommand

src/OpenLoco/src/Network/Network.cpp:125–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124
125 void queueGameCommand(CompanyId company, const OpenLoco::GameCommands::registers& regs)
126 {
127 // TEMP debug code
128 if (regs.esi == 73)
129 {
130 return;
131 }
132
133 if (_mode == NetworkMode::server)
134 {
135 _server->queueGameCommand(company, regs);
136 }
137 else
138 {
139 _client->sendGameCommand(company, regs);
140 }
141 }
142
143 bool shouldProcessTick(uint32_t tick)
144 {

Callers 2

doCommandFunction · 0.85

Calls 2

queueGameCommandMethod · 0.80
sendGameCommandMethod · 0.45

Tested by

no test coverage detected