Save Method
- Namespace
- Studio23.SS2.SaveSystem.Core
Save(string, bool)
public UniTask Save(string description = "", bool dirtyOnly = false)
By Default it saves all savable regardless of it's state If DirtyOnly is passed then it only saves Those who's state is dirty On Save All ISavable's IsDirty is set to false And attempts to save the files to cloud accordingly with the given provider
Parameters
Returns
- UniTask
Save(ISaveable, string)
public UniTask Save(ISaveable savableComponent, string description)
Parameters
savableComponent
ISaveableThis is for saving ISavable components externally
description
stringOptional Description to be shown in game
Returns
- UniTask