State persistance between scenes

This commit is contained in:
Marco 2025-03-24 16:56:35 +01:00
commit 35254935e4
13 changed files with 142 additions and 27 deletions

View file

@ -8,8 +8,13 @@ public class SessionSettings
public bool SkipDialogues { get; set; } = false;
public bool GodMode { get; set; } = false;
public Dictionary<string,int> Items {get;set;} = new();
public Godot.Collections.Dictionary<string, int> Items { get; set; } = new();
public float Health {get;set;}
public float Shield {get;set;}
}
public float Health { get; set; }
public float Shield { get; set; }
public void NewSession()
{
Items = new();
}
}