Description
The GameIdent
property of the MapClass
class specifies the identifier of the game to which the map entity belongs. This property is useful for distinguishing between different games or game modes that might use the same map editor environment. It is a string value that can be set or retrieved to identify the game context of the map entity.
Usage
To use the GameIdent
property, you can access it directly from an instance of the MapClass
. This property is read-write, allowing you to both get the current game identifier and set a new one if needed.
Example
// Example of setting and getting the GameIdent property
// Create an instance of MapClass
MapClass mapEntity = new MapClass();
// Set the GameIdent property
mapEntity.GameIdent = "MyGameIdentifier";
// Retrieve the GameIdent property
string gameIdentifier = mapEntity.GameIdent;
// Output the game identifier
// Note: Avoid using Console.WriteLine in Sandbox environment
// Use appropriate logging or UI display methods instead
// Log.Info($"Game Identifier: {gameIdentifier}");