Data Type
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using Godot;
|
||||
using Nocturnis.DataStructures.DataTypes;
|
||||
using Nocturnis.Enigmos.Modules.ComputationalModules;
|
||||
using Nocturnis.Enigmos.Ports;
|
||||
using Nocturnis.GlobalManagement.Constants;
|
||||
using Skeleton.DataStructure;
|
||||
|
||||
@@ -12,16 +11,16 @@ public abstract partial class MinModule : BinaryComputationalModule, IDuplicateO
|
||||
{
|
||||
base.Init();
|
||||
this.DataOutInit("Output", 3);
|
||||
this.SetInputType(EnigmosConstant.DataPortTypes.Real);
|
||||
this.SetOutputType(EnigmosConstant.DataPortTypes.Real);
|
||||
this.SetInputType(DataTypeConstant.BaseDataTypes.Real);
|
||||
this.SetOutputType(DataTypeConstant.BaseDataTypes.Real);
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public override void Define()
|
||||
{
|
||||
(object, StringName) Func(CacheItem cache)
|
||||
(object, DataType) Func(CacheItem cache)
|
||||
{
|
||||
if (this.X(cache).Double < this.Y(cache).Double)
|
||||
if (this.X(cache).Real < this.Y(cache).Real)
|
||||
return (this.X(cache).Data!, this.X(cache).Type!);
|
||||
return (this.Y(cache).Data!, this.Y(cache).Type!);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user