Click or drag to resize

IEntityManager Interface

Provides functionality for the creation, modification and destruction of entities.

Namespace:  SampSharp.Entities
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public interface IEntityManager

The IEntityManager type exposes the following members.

Methods
  NameDescription
Public methodAddComponentT(EntityId)
Adds a component of the specified type T to the specified entity.
Public methodAddComponentT(EntityId, Object)
Adds a component of the specified type T to the specified entity with the specified constructor args.
Public methodCreate
Creates an entity with the specified specified entity.
Public methodDestroy(Component)
Destroys the specified component.
Public methodDestroy(EntityId)
Destroys the specified entity.
Public methodDestroyT(EntityId)
Destroys the components of the specified type T attached to the specified entity.
Public methodExists
Returns a value indicating whether the specified entity exists.
Public methodGetChildren
Gets the children of the specified entity.
Public methodGetComponentT
Gets a component of the specified type T attached to any entity.
Public methodGetComponentT(EntityId)
Gets a component of the specified type T attached to the specified entity.
Public methodGetComponentInChildrenT
Gets a component of the specified type T attached to a child entity of the specified entity using a depth first search.
Public methodGetComponentInParentT
Gets a component of the specified type T attached to a parent entity of the specified entity.
Public methodGetComponentsT
Gets all components of the specified type T attached to any entity.
Public methodGetComponentsT(EntityId)
Gets all components of the specified type T attached to the specified entity.
Public methodGetComponentsInChildrenT
Gets all components of the specified type T attached to a child entity of the specified entity.
Public methodGetComponentsInParentT
Gets all components of the specified type T attached to a parent entity of the specified entity.
Public methodGetParent
Gets the parent entity of the specified entity.
Public methodGetRootEntities
Gets all root entities with no parent.
Top
See Also