|
Empeld
Empeld plugin documentation.
|
Entity manager for server-side entities only More...
Public Member Functions | |
| T | Spawn< T > () |
| Spawn an entity of type T More... | |
| void | Spawn (IMutableEntity entity, IUser owner=null) |
| Spawn the specified entity that has been pre-created More... | |
| void | Destroy (IEntity entity) |
| Destroy the specified entity. More... | |
| IPlayableEntity | GetClientPrimaryEntity (ushort ident) |
| Get the playable entity for a client Id More... | |
| IPlayableEntity | GetClientPrimaryEntity (IUser user) |
| Get a playable entity, given a user More... | |
| IUser | GetClientOfPrimaryEntity (IPlayableEntity entity) |
| Gets the user (if any) that is controlling the current entity More... | |
| IEnumerable< T > | GetEntitiesOfType< T > () |
| Get all entities of a certain type More... | |
| IEnumerable< T > | GetEntitiesNear< T > (Vector3d pos, double dist) |
| Get all entities of a certain type near a coordinate More... | |
Properties | |
| int | ActiveEntityCount [get] |
| Gets the entity count. More... | |
| IEnumerable< IEntity > | Entities [get] |
| Get an enumerable of all instantiated entities More... | |
Entity manager for server-side entities only
Attribute: Injectable
| void pluginbase.Dependencies.IEntityManager.Destroy | ( | IEntity | entity | ) |
Destroy the specified entity.
| entity | Entity. |
| IUser pluginbase.Dependencies.IEntityManager.GetClientOfPrimaryEntity | ( | IPlayableEntity | entity | ) |
Gets the user (if any) that is controlling the current entity
| entity | Entity. |
| IPlayableEntity pluginbase.Dependencies.IEntityManager.GetClientPrimaryEntity | ( | ushort | ident | ) |
Get the playable entity for a client Id
| ident | Ident. |
| IPlayableEntity pluginbase.Dependencies.IEntityManager.GetClientPrimaryEntity | ( | IUser | user | ) |
Get a playable entity, given a user
| user | User. |
| IEnumerable<T> pluginbase.Dependencies.IEntityManager.GetEntitiesNear< T > | ( | Vector3d | pos, |
| double | dist | ||
| ) |
Get all entities of a certain type near a coordinate
| pos | Position. |
| dist | Dist. |
| T | The type of the entities to look for |
| T | : | IPositionableEntity |
| IEnumerable<T> pluginbase.Dependencies.IEntityManager.GetEntitiesOfType< T > | ( | ) |
Get all entities of a certain type
| T | Entity type |
| T | : | IEntity |
| void pluginbase.Dependencies.IEntityManager.Spawn | ( | IMutableEntity | entity, |
| IUser | owner = null |
||
| ) |
Spawn the specified entity that has been pre-created
| entity | Entity. |
| owner | Owner. |
| T pluginbase.Dependencies.IEntityManager.Spawn< T > | ( | ) |
Spawn an entity of type T
| T | The 1st type parameter. |
| T | : | class | |
| T | : | IMutableEntity | |
| T | : | new() |
|
get |
Gets the entity count.
The entity count.
|
get |
Get an enumerable of all instantiated entities
The entities.