Method | Description | |
---|---|---|
CreateEntity ( bool isInitializing = false, EntityComponent[]>.Func |
Creates a new, empty entity.
|
|
CreateEntityFromDataModel ( EntityModel entityModel, EntityFieldPositionModel entityPlacing, Vector3 position, bool isInitializing = false ) : System.Entity |
Creates an entity reading json data model. It also attaches all known entity components.
|
|
CreateInstance ( System.Entity template, bool isInitializing = false ) : System.Entity | ||
CreateTemplate ( System.Entity entityToTemplate ) : System.Entity |
Creates a copy of an entity. This will be marked as a template for instanciation. Template entities are not hold by the entity system.
|
|
EntitySystem ( ) : System |
Creates a new empty entity system.
|
|
GetEntity ( string id ) : System.Entity |
Gets an entity by id.
|
|
InitializeAllPendingEntities ( ) : void |
All entities created in initializing mode are activated.
|
|
MergeStaticVisualEntities ( IList |
Merges a list of entities. These entities must be static and contain a visual component only.
|
|
RemoveEntity ( System.Entity entity ) : void |
Removes entity from system.
|
|
Update ( |
Updates all entities.
|
Method | Description | |
---|---|---|
ConvertEntityToGeometryMerge ( System.Entity entity ) : |
||
IsVisualEntityToMerge ( System.Entity entity ) : bool | ||
OnEntityInitialized ( System.Entity entity ) : void |
public CreateEntity ( bool isInitializing = false, EntityComponent[]>.Func |
||
isInitializing | bool | Create in initializing mode. |
addComponents | EntityComponent[]>.Func | Delegate for adding components on the fly. |
return | System.Entity |
public CreateEntityFromDataModel ( EntityModel entityModel, EntityFieldPositionModel entityPlacing, Vector3 position, bool isInitializing = false ) : System.Entity | ||
entityModel | EntityModel | Deserialized entity model. |
entityPlacing | EntityFieldPositionModel | Placement of entity. |
position | Vector3 | position of entity. |
isInitializing | bool | If the entity should be created in initializing mode. This needs to end initializing. |
return | System.Entity |
public CreateInstance ( System.Entity template, bool isInitializing = false ) : System.Entity | ||
template | System.Entity | |
isInitializing | bool | |
return | System.Entity |
public CreateTemplate ( System.Entity entityToTemplate ) : System.Entity | ||
entityToTemplate | System.Entity | Entity to create template of |
return | System.Entity |
public GetEntity ( string id ) : System.Entity | ||
id | string | id |
return | System.Entity |
public InitializeAllPendingEntities ( ) : void | ||
return | void |
public MergeStaticVisualEntities ( IList |
||
entitiesToMerge | IList |
Entites to merge. |
return | List |
public RemoveEntity ( System.Entity entity ) : void | ||
entity | System.Entity | |
return | void |
public Update ( |
||
gameTime | ||
return | void |