SaveManager
Last updated
Last updated
void
any
void
void
void
void
void
void
void AddPersistentVariable(table mod, string variableName, any value,
persistenceMode, boolean? ignoreGlowingHourglass? = false, fun(: )? conditionalSave?)
Adds a variable to the save manager. The variable name must be unique within your mod.
any GetPersistentVariable(table mod, string variableName)
Gets a variable from the save manager.
void RemovePersistentVariable(table mod, string variableName)
Removes a variable from the save manager.
void RemoveVariablesForFeatureKey(ModPersistentData modPersistentData, "run" | "level" | "room" saveDataKey)
void ResetPersistentVariable(table mod, string variableName)
Resets a variable to its default value in the save manager.
void RestoreDefaultForFeatureKey(ModPersistentData modPersistentData, "run" | "level" | "room" saveDataKey)
void RestoreDefaultsForAllFeaturesKey("run" | "level" | "room" saveKey)
void SetPersistentVariable(table mod, string variableName, any newValue, boolean? overrideType? = false)
Sets a variable from the save manager.
(table
mod, string
variableName, any
value, persistenceMode, boolean?
ignoreGlowingHourglass? = false, fun(: )?
conditionalSave?)
(table
mod, string
variableName)
(table
mod, string
variableName)
(ModPersistentData
modPersistentData, `"run"
(table
mod, string
variableName)
(ModPersistentData
modPersistentData, `"run"
(`"run"
(table
mod, string
variableName, any
newValue, boolean?
overrideType? = false)