ocker/scripts/core/SaveState.cs

16 lines
615 B
C#

using System.Collections.Generic;
//using Godot;
public class SaveState
{
// Permanent one-time removals (e.g. chests, unique items)
public HashSet<string> CollectedPickups { get; set; } = new();
// Respawnables: pickupId -> unixTimeSeconds when it becomes available again
public Dictionary<string, long> PickupRespawnAt { get; set; } = new();
public HashSet<string> CapturedCreatures { get; set; } = new();
//public Vector2I? LastPlayerChunk { get; set; } // optional debug, requires "using Godot;"
//public int[]? LastPlayerChunk { get; set; } // [x,y] same debug as above, does not require Godot
}