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

Function SendGameAction

src/openrct2/network/NetworkBase.cpp:3980–3994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3978 }
3979
3980 void SendGameAction(const GameActions::GameAction* action)
3981 {
3982 auto& network = GetContext()->GetNetwork();
3983 switch (network.GetMode())
3984 {
3985 case Mode::server:
3986 network.ServerSendGameAction(action);
3987 break;
3988 case Mode::client:
3989 network.Client_Send_GAME_ACTION(action);
3990 break;
3991 default:
3992 break;
3993 }
3994 }
3995
3996 void SendPassword(const std::string& password)
3997 {

Callers 2

ProcessQueueFunction · 0.85
ExecuteInternalFunction · 0.85

Calls 4

GetContextFunction · 0.85
GetModeMethod · 0.80
ServerSendGameActionMethod · 0.80

Tested by

no test coverage detected