using System; namespace Babushka.scripts.CSharp.Common.Savegame; /// /// Central structure for SaveData entries. /// SceneName and ID are later combined and used as keys for the save system. /// [Serializable] public class SaveData { // for future use in case the structure changes. public const int VERSION = 1; public int version { get; set; } = VERSION; public bool IsVersionValid() { return VERSION == version; } public string SceneName; public string Id; public string JsonPayload; public string ToString() { return SceneName + " " + Id + " " + JsonPayload; } }