MapEntityclass
MapEntity in Hammer is a type of `Editor.MapDoc.MapNode` that has a set of key/value pairs. The keyvalues represent the authoritative state of the entity. Entities may have helpers that enhance the presentation and sometimes modification of those keyvalues. The helpers may come and go; it should always be possible to recreate the helpers from the parent entity's keyvalues. Entities may also have zero or more `Editor.MapDoc.MapMesh` children.
Constructors1
Showing 1 constructors
public MapEntity(Editor.MapDoc.MapDocument mapDocument = null)
| Parameter | Type | Description |
|---|---|---|
| mapDocument = null | MapDocument | — |
No results match this filter.
Methods3
Showing 3 methods
public string GetKeyValue(string key)
Gets the value for the key, e.g "model" could return "models/props_c17/oildrum001_explosive.mdl"
| Parameter | Type | Description |
|---|---|---|
| key | string | — |
string—public void SetDefaultBounds(Vector3 min, Vector3 max)
Sets the default bounds of the entity if it doesn't have a model. By default this is 16x16x16.
Note
Refactor out once we have managed helpers I think.
| Parameter | Type | Description |
|---|---|---|
| min | Vector3 | — |
| max | Vector3 | — |
void—public void SetKeyValue(string key, string value)
Sets the value for the key, e.g "model" could be set to "models/props_c17/oildrum001_explosive.mdl"
| Parameter | Type | Description |
|---|---|---|
| key | string | — |
| value | string | — |
void—No results match this filter.
Properties4
Showing 4 properties
public string Editor.MapDoc.MapEntity.ClassName { get; set; }
Entity class name like prop_physics
string—public Sandbox.SerializedObject Editor.MapDoc.MapEntity.SerializedObject { get; set; }
public Sandbox.TypeDescription Editor.MapDoc.MapEntity.TypeDescription { get; set; }
No results match this filter.