Class BaseEntity
Namespace: ValveResourceFormat.IO.ContentFormats.ValveMap
Assembly: ValveResourceFormat.dll
Base of every map node that carries entity key values and entity IO.
[CamelCaseProperties]
public abstract class BaseEntity : MapNode, IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IDictionary, ICollection, IEnumerable, IEquatable<Element>Inheritance
object ← AttributeList ← Element ← MapNode ← BaseEntity
Derived
CMapEntity, CMapInstance, CMapWorld
Implements
IDictionary<string, object?>, ICollection<KeyValuePair<string, object?>>, IEnumerable<KeyValuePair<string, object?>>, IDictionary, ICollection, IEnumerable, IEquatable<Element>
Inherited Members
MapNode.Origin, MapNode.Angles, MapNode.Scales, MapNode.NodeID, MapNode.ReferenceID, MapNode.Children, MapNode.EditorOnly, MapNode.ForceHidden, MapNode.TransformLocked, MapNode.VariableTargetKeys, MapNode.VariableNames, Element.GetPropertyDerivedAttributeList(), Element.Get<T>(string), Element.GetArray<T>(string), Element.Contains(string), Element.ToString(), Element.ContainsKey(string), Element.Equals(Element?), Element.ID, Element.Name, Element.ClassName, Element.Stub, Element.Owner, Element.this[string], AttributeList.Attribute_ChangeLock, AttributeList.Add(string, object?), AttributeList.GetPropertyDerivedAttributeList(), AttributeList.GetOverrideType(string), AttributeList.SetOverrideType(string, AttributeList.OverrideType?), AttributeList.Remove(string), AttributeList.TryGetValue(string, out object?), AttributeList.ContainsKey(string), AttributeList.RemoveAt(int), AttributeList.IndexOf(string), AttributeList.Clear(), AttributeList.GetAllAttributesForSerialization(), AttributeList.GetEnumerator(), AttributeList.OnPropertyChanged(string), AttributeList.OnCollectionChanged(NotifyCollectionChangedEventArgs), AttributeList.Owner, AttributeList.Keys, AttributeList.Values, AttributeList.this[string], AttributeList.this[int], AttributeList.Count, AttributeList.IsFixedSize, AttributeList.IsReadOnly, AttributeList.IsSynchronized, AttributeList.SyncRoot, AttributeList.PropertyChanged, AttributeList.CollectionChanged
Properties
ConnectionsData
List of elements, one per entity IO connection.
public ElementArray ConnectionsData { get; }Property Value
ElementArray
EntityProperties
The entity key values, including "classname".
[DMProperty("entity_properties", false)]
public EditGameClassProps EntityProperties { get; }Property Value
RelayPlugData
Output plugs this entity fires through, one per entity IO connection.
public DmePlugList RelayPlugData { get; }Property Value
Methods
WithClassName(string)
Sets the "classname" key value and returns this entity.
public BaseEntity WithClassName(string className)Parameters
className string
Entity class name.
Returns
WithProperties(params (string name, string value)[])
Sets several entity key values and returns this entity.
public BaseEntity WithProperties(params (string name, string value)[] properties)Parameters
properties (string name, string value)[]
Key value pairs to set.
Returns
WithProperty(string, string)
Sets one entity key value and returns this entity.
public BaseEntity WithProperty(string name, string value)Parameters
name string
Key to set.
value string
Value to set it to.

