source generator

This commit is contained in:
h z
2024-07-10 07:02:11 +01:00
parent e1a74ad614
commit 5c6e3031d5
35 changed files with 169 additions and 34 deletions

View File

@@ -1,3 +1,5 @@
using Godot;
namespace Nocturnis.GlobalManagement.Providers;
public static class GlobalProvider
@@ -8,4 +10,19 @@ public static class GlobalProvider
public static ISceneProvider? SceneProvider { get; set; }
public static IPolymorphismProvider? PolymorphismProvider { get; set; }
public static IDataPackageTypeProvider? DataPackageTypeProvider { get; set; }
public static ITextureProvider? TextureProvider { get; set; }
public static readonly Dictionary<StringName, PackedScene> AssetNameMapper = new();
public static class ItemIconMapper<W>
{
public static Texture2D? Texture { get; set; }
}
public static class AssetMapper<T>
{
public static PackedScene Scene { get; set; }
}
public static Font Font { get; set; }
}