Basics
Guides
API Reference
Basics
Guides
API Reference
[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);
EngineService ()
Creates a new EngineService bridge ready to receive on* callbacks.
adopt (object Ajo)
Wraps an existing AussomEngineService AussomJavaObject.
Ajo is an AussomJavaObject around an AussomEngineService.A new wrapper.onInit (callback Cb)
Registers the onInit callback (background thread, after dependency injection). The callback takes no arguments.
Cb is a callback () -> any.this objectonMainLoopStarting (callback Cb)
Registers the onMainLoopStarting callback (JavaFX thread, once before the main loop starts). The callback takes no arguments.
Cb is a callback () -> any.this objectonVarsInitialized (callback Cb)
Registers the onVarsInitialized callback (background thread, after initGameVars). The callback receives a PropertyMap wrapper.
Cb is a callback (vars) -> any.this objectonGameReady (callback Cb)
Registers the onGameReady callback (background thread, after initGame/initPhysics/initUI complete). The callback receives a PropertyMap wrapper.
Cb is a callback (vars) -> any.this objectonUpdate (callback Cb)
Registers the onUpdate callback (JavaFX thread, every tick in any scene). The callback receives a double tpf.
Cb is a callback (tpf) -> any.this objectonGameUpdate (callback Cb)
Registers the onGameUpdate callback (JavaFX thread, every tick only in the game scene). The callback receives a double tpf.
Cb is a callback (tpf) -> any.this objectonGameReset (callback Cb)
Registers the onGameReset callback (JavaFX thread, after the game scene resets). The callback takes no arguments.
Cb is a callback () -> any.this objectonExit (callback Cb)
Registers the onExit callback (just before engine exit). The callback takes no arguments.
Cb is a callback () -> any.this objectonMainLoopPausing (callback Cb)
Registers the onMainLoopPausing callback (just before the main loop is paused). The callback takes no arguments.
Cb is a callback () -> any.this objectonMainLoopResumed (callback Cb)
Registers the onMainLoopResumed callback (just after the main loop resumes). The callback takes no arguments.
Cb is a callback () -> any.this objectonWrite (callback Cb)
Registers the SerializableType.write callback. The callback receives a Bundle wrapper and writes state into it for persistence.
Cb is a callback (bundle) -> any.this objectonRead (callback Cb)
Registers the SerializableType.read callback. The callback receives a Bundle wrapper and restores state from it.
Cb is a callback (bundle) -> any.this objectwrite (object BundleObj)
Triggers the bridge's write callback with the supplied Bundle.
read (object BundleObj)
Triggers the bridge's read callback with the supplied Bundle.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.