Finish adding the snapshots functionality.

This commit is contained in:
zontreck 2024-07-02 00:53:26 -07:00
parent e53fc977bc
commit 633fc37892
6 changed files with 475 additions and 5 deletions

View file

@ -19,6 +19,9 @@ class SessionData {
static Time mod_update_check_tracker = Time(hours: 0, minutes: 0, seconds: 0);
static bool enableRestartTimer = false;
static bool canPingServer = false;
static bool isWorldRestore = false;
static String snapshotToRestore =
""; // This is the absolute path to the snapshot being restored
static Time timeSinceLastPing = Time(hours: 0, minutes: 0, seconds: 0);
@ -33,4 +36,13 @@ class SessionData {
static bool shouldCheckModUpdates() {
return mod_update_check_tracker.minutes >= 30;
}
/// Interactive Editor - Snapshots
///
/// This contains the list of snapshot files for the editor client GUI.
///
/// DO NOT USE ON SERVER
///
/// Use the [Settings.getWorldSnapshotFiles] function instead
static List<String> IE_SNAPSHOTS = [];
}