Skip to content

EntityProcessingSystem

Fabio Ticconi edited this page Aug 19, 2015 · 7 revisions

Processes entities one at a time. Note that, differently from EntitySystem, you do not override processSystem but process.

Execution flow

Upon calling world.process(), your systems are processed in sequence. Override the following methods in your EntityProcessingSystem to integrate your game logic.

  • initialize() - Manually initialize your system. (Use @Wire instead!)
  • begin() - Called before the entities are processed.
  • process(Entity e) - Called for every Aspect matching entity.
  • end() - Called after the entities have been processed.
  • inserted(int entityId) - Called when a matching entity has been created (or the matching components added).
  • removed(int entityId) - Called when a matching entity has been deleted (or the matching components removed).
Clone this wiki locally