MapClass MapClass { get; set; }

robot_2Generated
code_blocksInput

Description

The MapClass property of the MapEntity class in the Editor.MapDoc namespace represents the classification of the map entity within the Hammer editor. This property is used to identify the specific type or category of the entity, which can influence its behavior and properties within the map.

Usage

To access the MapClass property, you need to have an instance of the MapEntity class. You can then get or set the MapClass to define or retrieve the classification of the entity.

Example

// Assuming 'entity' is an instance of MapEntity
Editor.MapClass currentClass = entity.MapClass;

// Set a new MapClass
entity.MapClass = new Editor.MapClass();