refactor: move global classes def into package

This commit is contained in:
h z
2025-02-14 13:31:11 +00:00
parent ca7e3c68a5
commit 0d75ed106d
7 changed files with 35 additions and 59 deletions

View File

@@ -2,15 +2,14 @@ using Godot;
using Polonium.Agents;
using Polonium.Interfaces;
using Polonium.Resources;
using Polonium.Scenes;
namespace Polonium;
public class PoloniumRegistry
{
public static IGlobalRegistry GlobalRegistry { get; set; }
private static PoloniumRegistry InternalInstance { get; set; }
public static PoloniumRegistry Instance => InternalInstance ??= new PoloniumRegistry();
public RootScene RootScene { get; set; }
public Config Config { get; set; }
public Save Save { get; set; }
@@ -21,6 +20,6 @@ public class PoloniumRegistry
public Dictionary<string, Agent> Agents { get; set; } = new();
public HashSet<ITimeConsumer> TimeConsumers { get; set; } = new();
public bool Paused { get; set; }
}