source generator upgrade
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Godot;
|
||||
using Nocturnis.Enigmos.Modules;
|
||||
using Nocturnis.Inventories.Items;
|
||||
|
||||
namespace Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
@@ -9,12 +11,16 @@ public static class GlobalProvider
|
||||
public static IUIProvider? UIProvider { get; set; }
|
||||
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 IDataTypeProvider? DataTypeProvider { get; set; }
|
||||
|
||||
public static readonly Dictionary<StringName, PackedScene> AssetNameMapper = new();
|
||||
public static class ModulePreviewMapper<TModule>
|
||||
where TModule : IBaseModule
|
||||
{
|
||||
public static Texture2D? Preview { get; set; }
|
||||
}
|
||||
|
||||
public static class ItemIconMapper<W>
|
||||
public static class ItemIconMapper<TItem>
|
||||
where TItem : IBaseItem
|
||||
{
|
||||
public static Texture2D? Texture { get; set; }
|
||||
}
|
||||
@@ -24,5 +30,7 @@ public static class GlobalProvider
|
||||
public static PackedScene Scene { get; set; }
|
||||
}
|
||||
|
||||
public static Font Font { get; set; }
|
||||
public static readonly Dictionary<string, PackedScene> SceneNameMapper = new();
|
||||
|
||||
public static Font? Font { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ using Godot;
|
||||
|
||||
namespace Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
public interface IDataPackageTypeProvider
|
||||
public interface IDataTypeProvider
|
||||
{
|
||||
bool IsComplexTensorType(StringName type);
|
||||
StringName ComplexVersionOf(StringName type);
|
||||
Reference in New Issue
Block a user