file: EngineService.aus

class: EngineService

[28:7] extends: SerializableType

Wraps an AussomEngineService (subclass of FXGL's abstract EngineService) so Aussom code can register a service with FXGL's engine. Install via GameSettings.addEngineService before launch. The on* methods register Aussom callbacks for FXGL's lifecycle hooks. onUpdate and onGameUpdate receive a double tpf. onVarsInitialized and onGameReady receive a PropertyMap wrapper. onWrite and onRead receive a Bundle wrapper. The other hooks take no arguments. Example: svc = new EngineService(); svc.onInit(::initService); svc.onUpdate(::tick); settings.addEngineService(svc.obj);

Methods