Api Editor MapClass
class

MapClass

public class MapClass

Represents an entity class used by the map editor

Constructors

MapClass(String name)

Properties

Name Type Description
Name String Class name e.g prop_physics
DisplayName String Display name e.g Physics Prop
Description String Human readable name e.g Physics Prop
Icon String Icon ( Material )
Category String Category
Type Type C# Type of this class
IsPointClass Boolean A point entity, i.e. a model entity, etc.
IsSolidClass Boolean A solid class entity, triggers, etc., entities that are tied to from a mesh in Hammer
IsPathClass Boolean A path entity, will appear in the Path Tool.
IsCableClass Boolean A cable entity, will appear in the Path Tool.
Variables List<MapClassVariable> List of properties exposed to tools for this class.
Inputs List<Input> List of inputs for this class.
Outputs List<Output> List of outputs for this class.
Tags List<String> General purpose tags, some with special meanings within Hammer and map compilers.
EditorHelpers Tuple<String, String[]>> In-editor helpers for this class, such as box visualizers for certain properties, etc.
Metadata Dictionary<String, Object> General purpose key-value store to alter functionality of UI, map compilation, editor helpers, etc.
GameIdent String What game does this belong to? ( TODO: Might not be best place for this? )
Package Package What package did this entity come from?
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.MapClass