Update
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Godot;
|
||||
using Nocturnis.DataStructures.Data;
|
||||
using Nocturnis.DataStructures.DataTypes;
|
||||
using Nocturnis.Enigmos.Modules;
|
||||
using Nocturnis.Inventories.Items;
|
||||
@@ -8,23 +7,23 @@ namespace Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
public static class GlobalProvider
|
||||
{
|
||||
public static IEnigmosProvider? EnigmosProvider { get; set; }
|
||||
public static IDataStructureProvider? DataStructureProvider { get; set; }
|
||||
public static IUIProvider? UIProvider { get; set; }
|
||||
public static ISceneProvider? SceneProvider { get; set; }
|
||||
public static IPolymorphismProvider? PolymorphismProvider { get; set; }
|
||||
public static IDataTypeProvider? DataTypeProvider { get; set; }
|
||||
public static IEnigmosProvider EnigmosProvider { get; set; }
|
||||
public static IDataStructureProvider DataStructureProvider { get; set; }
|
||||
public static IUIProvider UIProvider { get; set; }
|
||||
public static ISceneProvider SceneProvider { get; set; }
|
||||
public static IPolymorphismProvider PolymorphismProvider { get; set; }
|
||||
public static IDataTypeProvider DataTypeProvider { get; set; }
|
||||
|
||||
public static class ModulePreviewMapper<TModule>
|
||||
where TModule : IBaseModule
|
||||
{
|
||||
public static Texture2D? Preview { get; set; }
|
||||
public static Texture2D Preview { get; set; }
|
||||
}
|
||||
|
||||
public static class ItemIconMapper<TItem>
|
||||
where TItem : IBaseItem
|
||||
{
|
||||
public static Texture2D? Texture { get; set; }
|
||||
public static Texture2D Texture { get; set; }
|
||||
}
|
||||
|
||||
public static class AssetMapper<T>
|
||||
@@ -34,16 +33,7 @@ public static class GlobalProvider
|
||||
|
||||
public static readonly Dictionary<string, PackedScene> SceneNameMapper = new();
|
||||
|
||||
public static Font? Font { get; set; }
|
||||
public static Font Font { get; set; }
|
||||
|
||||
public static class DataTypes
|
||||
{
|
||||
public static DataType Null { get; set; }
|
||||
public static DataType Bit { get; set; }
|
||||
public static DataType Real { get; set; }
|
||||
public static DataType Complex { get; set; }
|
||||
public static DataType R2 { get; set; }
|
||||
public static DataType C2 { get; set; }
|
||||
public static DataType Int { get; set; }
|
||||
}
|
||||
public static readonly Dictionary<StringName, Texture2D> DataTypeTexture = new();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using Godot;
|
||||
using Nocturnis.DataStructures;
|
||||
using Nocturnis.DataStructures.ConfigurableParameters;
|
||||
using Nocturnis.DataStructures.Data;
|
||||
using Nocturnis.DataStructures.DataPortGroups;
|
||||
using Nocturnis.DataStructures.DataTypeOptions;
|
||||
using Nocturnis.DataStructures.DataTypes;
|
||||
@@ -13,7 +11,6 @@ namespace Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
public interface IDataStructureProvider
|
||||
{
|
||||
DataType NullDataType { get; }
|
||||
Variant NewVariantWithType(string type, Variant a);
|
||||
IBoolParameter NewBoolParameter(string d, string t, string f, bool def);
|
||||
|
||||
@@ -23,11 +20,6 @@ public interface IDataStructureProvider
|
||||
|
||||
IDataOutGroup NewDataOutGroup(IBaseModule m, IDataOutPort[] pts, string desc, DataType defType, DataTypeOption typeOpts);
|
||||
|
||||
DataVariable NewData(object data, DataType type);
|
||||
|
||||
IDoubleParameter NewDoubleParameter(string name, double min, double max, double def);
|
||||
IKeyParameter NewKeyParameter(string a, string b);
|
||||
DataVariable NullData { get; }
|
||||
DataVariable DefaultData { get; }
|
||||
StringName ArrayToElement(StringName arrayType);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using Godot;
|
||||
using Nocturnis.DataStructures.DataTypes;
|
||||
|
||||
namespace Nocturnis.GlobalManagement.Providers;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using Godot;
|
||||
using Nocturnis.DataStructures;
|
||||
using Nocturnis.DataStructures.Data;
|
||||
using Nocturnis.DataStructures.DataTypes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user