diff --git a/ProjectObsidian/ProtoFlux/JSON/JsonGetObjectFromArrayNode.cs b/ProjectObsidian/ProtoFlux/JSON/JsonGetObjectFromArrayNode.cs index caf3b75..49271a6 100644 --- a/ProjectObsidian/ProtoFlux/JSON/JsonGetObjectFromArrayNode.cs +++ b/ProjectObsidian/ProtoFlux/JSON/JsonGetObjectFromArrayNode.cs @@ -16,7 +16,7 @@ namespace ProtoFlux.Runtimes.Execution.Nodes.Obsidian.Json; public class JsonGetObjectFromArrayNode : ObjectFunctionNode where T : class { public readonly ObjectInput Input; - public readonly ObjectInput Index; + public readonly ValueInput Index; public static bool IsValidGenericType => JsonTypeHelper.ValidObjectGetTypes.Contains(typeof(T)); protected override T Compute(FrooxEngineContext context) { diff --git a/ProjectObsidian/ProtoFlux/JSON/JsonGetValueFromArrayNode.cs b/ProjectObsidian/ProtoFlux/JSON/JsonGetValueFromArrayNode.cs index 686f570..5943a40 100644 --- a/ProjectObsidian/ProtoFlux/JSON/JsonGetValueFromArrayNode.cs +++ b/ProjectObsidian/ProtoFlux/JSON/JsonGetValueFromArrayNode.cs @@ -14,7 +14,7 @@ namespace ProtoFlux.Runtimes.Execution.Nodes.Obsidian.Json; public class JsonGetValueFromArrayNode : ValueFunctionNode where T : unmanaged { public readonly ObjectInput Input; - public readonly ObjectInput Index; + public readonly ValueInput Index; public static bool IsValidGenericType => JsonTypeHelper.ValidValueTypes.Contains(typeof(T)); protected override T Compute(FrooxEngineContext context) { diff --git a/ProjectObsidian/ProtoFlux/JSON/JsonInsertObjectToArrayNode.cs b/ProjectObsidian/ProtoFlux/JSON/JsonInsertObjectToArrayNode.cs index 866a7f9..237b8ef 100644 --- a/ProjectObsidian/ProtoFlux/JSON/JsonInsertObjectToArrayNode.cs +++ b/ProjectObsidian/ProtoFlux/JSON/JsonInsertObjectToArrayNode.cs @@ -13,7 +13,7 @@ namespace ProtoFlux.Runtimes.Execution.Nodes.Obsidian.Json; [NodeName("Insert To Array")] [NodeCategory("Obsidian/Json")] [GenericTypes(typeof(string), typeof(Uri), typeof(IJsonToken), typeof(JsonObject), typeof(JsonArray))] -public class JsonInsertObjectToArrayNode : ObjectFunctionNode +public class JsonInsertObjectToArrayNode : ObjectFunctionNode where T : class { public readonly ObjectInput Array; public readonly ObjectInput Object; diff --git a/ProjectObsidian/ProtoFlux/JSON/JsonInsertValueToArrayNode.cs b/ProjectObsidian/ProtoFlux/JSON/JsonInsertValueToArrayNode.cs index 1409eef..35c89ab 100644 --- a/ProjectObsidian/ProtoFlux/JSON/JsonInsertValueToArrayNode.cs +++ b/ProjectObsidian/ProtoFlux/JSON/JsonInsertValueToArrayNode.cs @@ -14,10 +14,10 @@ namespace ProtoFlux.Runtimes.Execution.Nodes.Obsidian.Json; [NodeCategory("Obsidian/Json")] [GenericTypes(typeof(byte), typeof(sbyte), typeof(short), typeof(ushort), typeof(int), typeof(uint), typeof(long), typeof(ulong), typeof(float), typeof(double))] -public class JsonInsertValueToArrayNode : ObjectFunctionNode +public class JsonInsertValueToArrayNode : ObjectFunctionNode where T : unmanaged { public readonly ObjectInput Array; - public readonly ObjectInput Object; + public readonly ValueInput Object; public readonly ValueInput Index; public static bool IsValidGenericType => JsonTypeHelper.ValidValueTypes.Contains(typeof(T)); protected override JsonArray Compute(FrooxEngineContext context)