source generator upgrade
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
namespace Nocturnis.Attributes;
|
|
||||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class)]
|
|
||||||
public class DirectAsset : Attribute
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
namespace Nocturnis.Attributes;
|
|
||||||
[AttributeUsage(AttributeTargets.Class)]
|
|
||||||
public class UniqueInheritance : Attribute
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
using Godot;
|
using Godot;
|
||||||
|
using Nocturnis.Enigmos.Modules;
|
||||||
|
using Nocturnis.Inventories.Items;
|
||||||
|
|
||||||
namespace Nocturnis.GlobalManagement.Providers;
|
namespace Nocturnis.GlobalManagement.Providers;
|
||||||
|
|
||||||
@@ -9,12 +11,16 @@ public static class GlobalProvider
|
|||||||
public static IUIProvider? UIProvider { get; set; }
|
public static IUIProvider? UIProvider { get; set; }
|
||||||
public static ISceneProvider? SceneProvider { get; set; }
|
public static ISceneProvider? SceneProvider { get; set; }
|
||||||
public static IPolymorphismProvider? PolymorphismProvider { get; set; }
|
public static IPolymorphismProvider? PolymorphismProvider { get; set; }
|
||||||
public static IDataPackageTypeProvider? DataPackageTypeProvider { get; set; }
|
public static IDataTypeProvider? DataTypeProvider { get; set; }
|
||||||
public static ITextureProvider? TextureProvider { 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; }
|
public static Texture2D? Texture { get; set; }
|
||||||
}
|
}
|
||||||
@@ -24,5 +30,7 @@ public static class GlobalProvider
|
|||||||
public static PackedScene Scene { get; set; }
|
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;
|
namespace Nocturnis.GlobalManagement.Providers;
|
||||||
|
|
||||||
public interface IDataPackageTypeProvider
|
public interface IDataTypeProvider
|
||||||
{
|
{
|
||||||
bool IsComplexTensorType(StringName type);
|
bool IsComplexTensorType(StringName type);
|
||||||
StringName ComplexVersionOf(StringName type);
|
StringName ComplexVersionOf(StringName type);
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
using Nocturnis.Attributes;
|
|
||||||
|
|
||||||
namespace Nocturnis;
|
|
||||||
[DirectAsset]
|
|
||||||
public interface IDirectAsset
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -8,4 +8,4 @@ public interface IBaseItem : INodeInterface
|
|||||||
{
|
{
|
||||||
StringName Status { get; set; }
|
StringName Status { get; set; }
|
||||||
R2 ItemPosition { get; set; }
|
R2 ItemPosition { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user