file: EntityWorldListener.aus

class: EntityWorldListener

[20:7] extends: FxObj

Wraps the AussomEntityWorldListener bridge (implementation of FXGL's EntityWorldListener interface) so Aussom code can be notified whenever entities are added to or removed from a GameWorld. Configure onAdded / onRemoved callbacks then pass the wrapper's .obj to GameWorld.addWorldListener. The existing GameWorld.addWorldListener convenience already builds one of these internally from a pair of callbacks; this wrapper is the explicit form when users want to keep a reference to the listener for later removeWorldListener.

Methods