EntityManager

Summary

Methods

Method Returns
GetIterator(entityType: string) EntityIterator
CreateEntity(entityData: DataContainer, transform: LinearTransform) Entity | nil
CreateEntity(entityData: DataContainer, params: EntityCreationParams) Entity | nil
CreateEntitiesFromBlueprint(blueprint: DataContainer, transform: LinearTransform) EntityBus | nil
CreateEntitiesFromBlueprint(blueprint: DataContainer, params: EntityCreationParams) EntityBus | nil
TraverseAllEntities(callback: callable) void
TraverseAllEntities(context: any, callback: callable) void

Methods

GetIterator

GetIterator(entityType: string): EntityIterator

Parameters

Name Type Description
entityType string

Returns

Type Description
EntityIterator

CreateEntity

CreateEntity(entityData: DataContainer, transform: LinearTransform): Entity | nil

Parameters

Name Type Description
entityData DataContainer
transform LinearTransform

Returns

Type Description
Entity | nil

CreateEntity

CreateEntity(entityData: DataContainer, params: EntityCreationParams): Entity | nil

Parameters

Name Type Description
entityData DataContainer
params EntityCreationParams

Returns

Type Description
Entity | nil

CreateEntitiesFromBlueprint

CreateEntitiesFromBlueprint(blueprint: DataContainer, transform: LinearTransform): EntityBus | nil

Parameters

Name Type Description
blueprint DataContainer
transform LinearTransform

Returns

Type Description
EntityBus | nil

CreateEntitiesFromBlueprint

CreateEntitiesFromBlueprint(blueprint: DataContainer, params: EntityCreationParams): EntityBus | nil

Parameters

Name Type Description
blueprint DataContainer
params EntityCreationParams

Returns

Type Description
EntityBus | nil

TraverseAllEntities

TraverseAllEntities(callback: callable)

Parameters

Name Type Description
callback callable

TraverseAllEntities

TraverseAllEntities(context: any, callback: callable)

Parameters

Name Type Description
context any
callback callable
Last modified September 26, 2020: Add links to the entities guide (3a59996)