Basics
Guides
API Reference
Basics
Guides
API Reference
[23:7] extends: EngineService
Wraps FXGL's SaveLoadService
(com.almasb.fxgl.profile.SaveLoadService), the engine service
that coordinates registered save/load handlers and reads/writes
SaveFiles to disk through the FileSystemService.
Aussom users construct an Aussom-side SaveLoadHandler via
fxgl.saveLoadHandler(onSaveCb, onLoadCb) and pass it to
addHandler. Then save / saveAndWriteTask drives onSave on every
registered handler; readAndLoadTask drives onLoad.
SaveLoadService (Ajo = null)
Creates a SaveLoadService wrapper. Empty by default; the (Ajo) form wraps the running instance from fxgl.getSaveLoadService.
Ajo is an optional AussomJavaObject around a SaveLoadService.adopt (object Ajo)
Wraps an existing SaveLoadService AussomJavaObject.
Ajo is an AussomJavaObject around a SaveLoadService.A new wrapper.addHandler (object HandlerObj)
Adds a SaveLoadHandler (typically built from fxgl.saveLoadHandler(onSave, onLoad)).
HandlerObj is an AussomJavaObject around a SaveLoadHandler.this objectremoveHandler (object HandlerObj)
Removes a previously added SaveLoadHandler.
HandlerObj is an AussomJavaObject around the handler.this objectsave (object DataFileObj)
Asks every registered handler to write its data into the given DataFile. Does no IO.
DataFileObj is a DataFile wrapper.this objectload (object DataFileObj)
Asks every registered handler to load its data from the given DataFile. Does no IO.
DataFileObj is a DataFile wrapper.this objectsaveFileExists (string SaveFileName)
Returns whether the named save file exists on disk.
SaveFileName is the save-file name.A bool.saveAndWriteTask (string SaveFileName)
Builds an IOTask that calls save into a fresh DataFile and writes the result to disk under the given file name.
SaveFileName is the save-file name.An IOTask wrapper.writeTask (string SaveFileName, object DataFileObj)
Builds an IOTask that writes the given DataFile to disk under the given save-file name (no handlers invoked).
SaveFileName is the save-file name.DataFileObj is a DataFile wrapper.An IOTask wrapper.readAndLoadTask (string SaveFileName)
Builds an IOTask that reads the named save file then calls load on every registered handler.
SaveFileName is the save-file name.An IOTask wrapper.readTask (string SaveFileName)
Builds an IOTask that reads the named save file and yields a SaveFile.
SaveFileName is the save-file name.An IOTask wrapper around a SaveFile.deleteSaveFileTask (string SaveFileName)
Builds an IOTask that deletes the named save file.
SaveFileName is the save-file name.An IOTask wrapper.readLastModifiedSaveFileTask (string DirName, string SaveFileExt)
Builds an IOTask that finds the most-recently-modified save file in DirName matching the extension.
DirName is the directory to scan.SaveFileExt is the file extension (e.g. "sav").An IOTask wrapper around an OptionalreadSaveFilesTask (string DirName, string SaveFileExt)
Builds an IOTask that reads every save file in DirName matching the extension and returns them as a list.
DirName is the directory to scan.SaveFileExt is the file extension.An IOTask wrapper around a List
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.