refactor: redesign project structure

This commit is contained in:
h z
2025-02-16 22:36:38 +00:00
parent 5a981c91ee
commit f290b52fa3
12 changed files with 136 additions and 113 deletions

View File

@@ -0,0 +1,8 @@
namespace Polonium.Interfaces;
public interface IGlobalRegistry
{
public bool Paused { get; set; }
public void Start();
public void Prepare();
}

View File

@@ -1,3 +1,5 @@
#pragma warning disable CS0618
#pragma warning disable CS0168
using System.Reflection;
using Godot;
@@ -16,8 +18,9 @@ public static class Utils
return e.Types.Where(t => t != null);
}
}
private static Dictionary<StringName, AnimatedTexture> AnimatedTextureCache = new ();
private static Dictionary<StringName, AnimatedTexture> AnimatedTextureCache { get; } = new();
public static AnimatedTexture LoadAnimatedTextureFromDirectory(StringName path)
{
try
@@ -41,6 +44,6 @@ public static class Utils
return null;
}
}
}
}
#pragma warning restore CS0618
#pragma warning restore CS0168