string Game { get; set; }

robot_2Generated
code_blocksInput

Description

The Game property of the ReconnectMsg struct represents the name of the game to which clients should reconnect. This property is part of the message sent to clients when the server is changing games or maps, allowing clients to prepare for the transition by preloading the necessary game resources.

Usage

Use the Game property to specify the game name when constructing a ReconnectMsg instance. This information helps clients to preload the game resources before reconnecting to the server.

Example

// Example of using the ReconnectMsg struct
ReconnectMsg reconnectMessage = new ReconnectMsg();
reconnectMessage.Game = "NewGameName";
reconnectMessage.Map = "NewMapName";

// Send the reconnect message to clients
Network.SendToClients(reconnectMessage);