This is called at the end of each game tick, this where things should be processed that affects the game state.
| 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) |