Class for managing savedata.

Static variables

@:value("leather_engine-")staticfinalinlineread onlybindNamePrefix:String = "leather_engine-"

staticread onlybindPath:String

@:value([])staticsaves:Map<String, FlxSave> = []

Static methods

staticcreateSave(key:String, bindNameSuffix:String):Void

Creates a new FlxSave instance.

Parameters:

key

The identifier for the newly created save.

bindNameSuffix

The suffix for the newly created save.

staticfixBinds():Void

@:value({ saveKey : "main" })staticgetData(dataKey:String, saveKey:String = "main"):Dynamic

Returns an option.

Parameters:

dataKey
saveKey

Returns:

Dynamic

staticinit():Void

Inititaizes savedata when starting the game.

@:value({ saveKey : "main" })staticsetData(value:Dynamic, dataKey:String, saveKey:String = "main"):Void

Sets a option. Automatically calls flush() on the save key.

Parameters:

value
dataKey
null

saveKey