Dictionary<string, System.Object> Metadata { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Metadata property of the MapClass class is a general-purpose key-value store. It is used to modify the functionality of the user interface, map compilation, editor helpers, and other features. This property allows for flexible customization and extension of the map class's behavior by storing various settings and configurations as key-value pairs.

Usage

To use the Metadata property, you can add, retrieve, or modify key-value pairs to customize the behavior of the map class. This can be particularly useful for setting specific parameters that affect how the map is compiled or how it interacts with the editor tools.

Example usage:

var mapClass = new MapClass();
mapClass.Metadata["CustomKey"] = "CustomValue";

// Retrieve a value
if (mapClass.Metadata.TryGetValue("CustomKey", out var value))
{
    // Use the value
    Console.WriteLine(value);
}

Example

var mapClass = new MapClass();
mapClass.Metadata["CustomKey"] = "CustomValue";

// Retrieve a value
if (mapClass.Metadata.TryGetValue("CustomKey", out var value))
{
    // Use the value
    Console.WriteLine(value);
}