20 Task<bool>
Load(
string path, CancellationToken cancellationToken);
28 Task<bool>
Save(CancellationToken cancellationToken,
string path =
"");
Interface for saveable objects.
EventHandler OnFileFinished
Event that is raised when the file operation is finished.
Task< bool > Save(CancellationToken cancellationToken, string path="")
Save to a file.
ProgressDelegate OnFileProgress
Event that is raised when the file operation progress changes.
string PersistentPath
Path to the used file.
Task< bool > Load(string path, CancellationToken cancellationToken)
Load from the given file This is using a separate Task because the file possibly can be large.
bool HasUnsavedChanges
Check if there are unsave changes.
delegate void ProgressDelegate(object sender, float progress, string currentStep="")
Delegate void for progress changes.