List<string> Tags { get; set; }

robot_2Generated
code_blocksInput

Description

The Tags property of the MapClass class is a list of strings that serves as general-purpose tags. These tags can have special meanings within the Hammer editor and map compilers, allowing for categorization or identification of specific properties or behaviors associated with the map entity.

Usage

Use the Tags property to assign or retrieve tags associated with a map entity. These tags can be used to influence how the entity is processed or displayed within the Hammer editor or during map compilation.

Example

// Example of setting tags for a MapClass instance
MapClass myMapEntity = new MapClass();
myMapEntity.Tags.Add("Physics");
myMapEntity.Tags.Add("Interactive");

// Example of retrieving tags
foreach (string tag in myMapEntity.Tags)
{
    // Process each tag
    // e.g., check if a specific tag exists
    if (tag == "Physics")
    {
        // Perform actions related to physics entities
    }
}