Search
Preparing search index...
The search index is not available
Excalibur.js v0.24.5 API Documentation
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"EntityComponentSystem/EntityManager"
EntityManager
Class EntityManager
Hierarchy
EntityManager
Implements
Observer
<
RemovedComponent
|
AddedComponent
>
Index
Constructors
constructor
Properties
_entity
Index
entities
Methods
add
Entity
get
ById
notify
process
Removals
remove
Entity
Constructors
constructor
new
Entity
Manager
(
_scene
:
Scene
)
:
EntityManager
Parameters
_scene:
Scene
Returns
EntityManager
Properties
_entity
Index
_entity
Index
:
object
Type declaration
[
entityId:
string
]:
Entity
entities
entities
:
Entity
[]
= []
Methods
add
Entity
add
Entity
(
entity
:
Entity
)
:
void
Adds an entity to be tracked by the EntityManager
Parameters
entity:
Entity
Returns
void
get
ById
get
ById
(
id
:
number
)
:
Entity
Parameters
id:
number
Returns
Entity
notify
notify
(
message
:
RemovedComponent
|
AddedComponent
)
:
void
EntityManager observes changes on entities
Parameters
message:
RemovedComponent
|
AddedComponent
Returns
void
process
Removals
process
Removals
(
)
:
void
Returns
void
remove
Entity
remove
Entity
(
entity
:
Entity
)
:
void
remove
Entity
(
id
:
number
)
:
void
Parameters
entity:
Entity
Returns
void
Parameters
id:
number
Returns
void
Globals
"
Entity
Component
System/
Entity
Manager"
Entity
Manager
constructor
_entity
Index
entities
add
Entity
get
ById
notify
process
Removals
remove
Entity
Adds an entity to be tracked by the EntityManager