MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ServerSendGameAction

Method ServerSendGameAction

src/openrct2/network/NetworkBase.cpp:1577–1587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1575 }
1576
1577 void NetworkBase::ServerSendGameAction(const GameActions::GameAction* action)
1578 {
1579 Packet packet(Command::gameAction);
1580
1581 DataSerialiser stream(true);
1582 action->Serialise(stream);
1583
1584 packet << getGameState().currentTicks << action->GetType() << stream;
1585
1586 SendPacketToClients(packet);
1587 }
1588
1589 void NetworkBase::ServerSendTick()
1590 {

Callers 1

SendGameActionFunction · 0.80

Calls 2

SerialiseMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected