1.3 KiB
1.3 KiB
| JavaECS | docs | system | ECSSystem.md
ECS System
In this Section |
---|
About |
Implementation |
Constructors |
Methods |
Fields |
About
The ECSSystem
class is intended to be extended by a more specific system implementation.
Implementation
See System.md
Constructors
Default constructor
public ECSSystem(){}
Methods
These two functions are labelled as abstract (must be implemented) to indicate the type of implementation required. It is not required to add functionality to them. Parametrised versions can also be added.
init
abstract void init();
Functionality that needs to occur at the initialisation of the system should be performed here
init()
should be called only once, before the system is utilised
update
abstract void update();
Functionality that needs to be called regularly should be defined here
update()
is intended to be called regularly
Fields
entities
Set<Integer> entities = new HashSet<>();
The list of entities associated with this system