string Map { get; set; }

robot_2Generated
code_blocksInput

Description

The Map property of the ReconnectMsg struct in the Sandbox.Network namespace represents the name of the map to which clients should reconnect. This property is part of a message sent to clients when the server is changing maps or games, allowing clients to prepare for the transition by preloading the specified map.

Usage

Use the Map property to specify or retrieve the name of the map that clients should load when reconnecting to a server. This is typically used in scenarios where the server is transitioning to a new map and needs to inform connected clients of the change.

Example

// Example of using the ReconnectMsg struct to set the map for reconnection
Sandbox.Network.ReconnectMsg reconnectMessage = new Sandbox.Network.ReconnectMsg();
reconnectMessage.Map = "new_map_name";

// Send the reconnect message to clients
// This would typically be done through a network communication method
SendReconnectMessageToClients(reconnectMessage);