Files
Babushka/scripts/CSharp/Common/Savegame/SaveData.cs
T

28 lines
614 B
C#
Raw Normal View History

2025-11-12 18:46:30 +01:00
using System;
namespace Babushka.scripts.CSharp.Common.Savegame;
2025-11-15 22:27:26 +01:00
/// <summary>
/// Central structure for SaveData entries.
/// SceneName and ID are later combined and used as keys for the save system.
/// </summary>
2025-11-12 18:46:30 +01:00
[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;
}
2025-11-12 18:46:30 +01:00
public string Id;
public string JsonPayload;
public string ToString()
{
return Id + " " + JsonPayload;
2025-11-12 18:46:30 +01:00
}
}