EntitySystem Class
The most raw entity system. It should not typically be used, but you can create your own entity system handling by extending this. It is recommended that you use the other provided entity system implementations
Item Index
Methods
Methods
begin
()
Called before processing of entities begins
check
-
entity
Will check if the entity is of interest to this system.
Parameters:
-
entity
Entitythe entity to check
checkProcessing
()
Boolean
Check the system should processing
Returns:
end
()
Called after the processing of entities ends
initialize
()
Override to implement code that gets executed when systems are initialized.
inserted
-
entity
Called if the system has received a entity it is interested in, e.g. created or a component was added to it.
Parameters:
-
entity
Entitythe entity that was added to this system
isPassive
()
Boolean
Returns:
process
()
Process the entities
processEntities
-
entities
Any implementing entity system must implement this method and the logic to process the given entities of the system.
Parameters:
-
entities
Bagathe entities this system contains
removed
-
entity
Called if a entity was removed from this system, e.g. deleted or had one of it's components removed.
Parameters:
-
entity
Entitythe entity that was removed from this system.
setPassive
-
passive
Parameters:
-
passive
Boolean