3.2. Game Data Service System
Multiplayer games are based on client-server mode. In other words, a server will act as the master of the game state, and the connected client will maintain an approximate copy.
Server is an important part of multiplayer game. The role of the server includes:making all important decisions, including all master States, processing client connections, transferring to a new map, and processing the overall game at the beginning / end of the game.
The server is responsible for driving the game process. The server is responsible for notifying the client to transfer to the new map when the game starts / ends and the actor copies and updates.
The game state and process are generally driven by the actor of GameMode. Only the server contains a valid copy of this actor (the client does not contain a copy). To communicate this state to the client, you can use the GameStateactor to display the important state of the GameModeactor. This GameStateactor is marked for replication to each client. The client will contain an approximate copy of this GameStateactor and can use this actor as a reference to understand the general state of the game.
Last updated