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

Method PostTick

src/openrct2/network/NetworkBase.cpp:1885–1896  ·  view source on GitHub ↗

This is called at the end of each game tick, this where things should be processed that affects the game state.

Source from the content-addressed store, hash-verified

1883
1884 // This is called at the end of each game tick, this where things should be processed that affects the game state.
1885 void NetworkBase::PostTick()
1886 {
1887 if (GetMode() == Mode::server)
1888 {
1889 ProcessDisconnectedClients();
1890 }
1891 else if (GetMode() == Mode::client)
1892 {
1893 ProcessPlayerInfo();
1894 }
1895 ProcessPlayerList();
1896 }
1897
1898 static bool ProcessPlayerAuthenticatePluginHooks(
1899 const Connection& connection, std::string_view name, std::string_view publicKeyHash)

Callers 1

PostTickFunction · 0.45

Calls 1

GetModeFunction · 0.85

Tested by

no test coverage detected