Represents an object in the world, containing components that describe its behaviour.
More...
|
void | Destroy () |
| Removes this entity and all children from the world. More...
|
|
void | Save (BinaryWriter writer) |
| Serializes this entity to a BinaryWriter. More...
|
|
void | Load (BinaryReader reader) |
| Deserializes this entity from a BinaryReader. More...
|
|
Entity | CreateChild () |
| Creates a new Entity parented to this one. More...
|
|
TComponent | CreateChildWithComponent< TComponent > () |
| Creates a new Entity parented to this one with a component of the given type, which is returned. More...
|
|
Entity | FindChild (string name, bool recurse=true) |
| Attempts to find a child Entity of this one with the given name, and optionally searches recursively through all children. Null is returned if no matches are found. More...
|
|
TComponent | FindChildComponent< TComponent > (string name, bool recurse=true) |
| Attempts to find a child Entity of this one with the given name, and optionally searches recursively through all children. If a matching Entity is found, a component of the given type is retrieved from it. Null is returned if no matches are found. More...
|
|
Entity | FindParent (string name) |
| Attempts to find an Entity that contains this Object's Entity with the given Name. Returns null if no match is found. More...
|
|
TComponent | FindParentComponent< TComponent > () |
| Attempts to find an Entity that contains this Object's Entity with a component of the given type. If a matching Entity is found, the component of the given type is retrieved from it. Returns null if no match is found. More...
|
|
TComponent | FindParentComponent< TComponent > (string name) |
| Attempts to find an Entity that contains this Object's Entity with the given Name. If a matching Entity is found, a component of the given type is retrieved from it. Returns null if no match is found. More...
|
|
TComponent | AddComponent< TComponent > () |
| Adds a component of the specified type to this entity, returning the new component. More...
|
|
TComponent | GetOrAddComponent< TComponent > () |
| Attempts to get a component of the specified type from this entity, adding it if one doesn't already exist. More...
|
|
TComponent | GetComponent< TComponent > () |
| Attempts to get a component of the specified type from this entity, returning null if one doesn't exist. More...
|
|
IEnumerable< TComponent > | GetComponents< TComponent > () |
| Gets all components derived from the given type. More...
|
|
Represents an object in the world, containing components that describe its behaviour.