Click or drag to resize

EntityManager Class

Represents the entity manager.
Inheritance Hierarchy
SystemObject
  SampSharp.EntitiesEntityManager

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

The EntityManager type exposes the following members.

Constructors
  NameDescription
Public methodEntityManager
Initializes a new instance of the Object class.
Top
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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExists
Returns a value indicating whether the specified entity exists.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetParent
Gets the parent entity of the specified entity.
Public methodGetRootEntities
Gets all root entities with no parent.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also