session settings

This commit is contained in:
Maddo 2025-02-27 08:37:55 +01:00
commit 62aae84e8f
9 changed files with 37 additions and 1 deletions

View file

@ -1,5 +1,6 @@
using System.Threading.Tasks;
using Cirno.Scripts.Resources;
using Cirno.Scripts.Utils;
using Godot;
using GTweens.Builders;
using GTweensGodot.Extensions;
@ -12,6 +13,8 @@ public partial class GlobalState : Node
private ColorRect _fader { get; set; }
public SessionSettings SessionSettings { get; set; }
public override void _Ready()
{
Instance = this;
@ -80,6 +83,10 @@ public partial class GlobalState : Node
// Call deferred if it gives issues
DeferredAddStartDataToGameManager(startData);
}
if (GameManager.Instance is not null) {
GameManager.Instance.ApplySessionState(SessionSettings);
}
FadeIn();
}