refactor: redesign project structure
This commit is contained in:
13
src/Utils.cs
13
src/Utils.cs
@@ -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
|
||||
Reference in New Issue
Block a user