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

Method sendGameCommand

src/OpenLoco/src/Network/NetworkClient.cpp:335–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void NetworkClient::sendGameCommand(CompanyId company, const OpenLoco::GameCommands::registers& regs)
336{
337 if (_serverConnection != nullptr && _status == NetworkClientStatus::connected)
338 {
339 GameCommandPacket packet;
340 packet.company = company;
341 packet.regs = regs;
342 _serverConnection->sendPacket(packet);
343 }
344}
345
346void NetworkClient::updateLocalTick()
347{

Callers

nothing calls this directly

Calls 1

sendPacketMethod · 0.45

Tested by

no test coverage detected