ComponentManager Class
Object to manage components
Item Index
Methods
Properties
Methods
addComponent
(
-
entity
-
type
-
component
Add component by type
Parameters:
-
entity
Entity -
type
ComponentType -
component
Component
clean
()
Clean deleted componenets of entities
getComponent
(
-
entity
-
type
Get component
Parameters:
-
entity
Entity -
type
ComponentType
Returns:
Mixed Component on success, null on false
getComponentsByType
(
Utils.Bag
-
type
Get component by type
Parameters:
-
type
ComponentType
Returns:
Utils.Bag:
Bag of components
initialize
()
removeComponent
(
-
entity
-
type
Remove component by type
Parameters:
-
entity
Entity -
type
ComponentType