Skip to content
Daan van Yperen edited this page Sep 29, 2015 · 24 revisions

Systems encapsulate game logic, typically operating on a family of entities.

Inter-system communication

Systems can access other systems. Like all odb-native types Systems get injected automatically into your System.

public MySystem extends ... {
   MyOtherSystem myOtherSystem; // automatically injected.
}

See @Wire for details.

Skip processing

Override checkProcessing to return false if you want to skip the system during processing.

Entity notifications

You can override inserted and removed methods in EntitySystem and derived classes. There you will be notified about entity changes.

Clone this wiki locally