mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Nodes - Added IList support
Nodes - Added simple List operator node
This commit is contained in:
1 parent
da0d3abbdd
commit
4ed6d10f38
9 files changed
+118
-7
No files matched your search
@@ -130,10 +130,10 @@ public abstract class Pin : CorePropertyChanged, IPin
|
||||
public bool IsTypeCompatible(Type type, bool forgivingEnumMatching = true)
|
||||
{
|
||||
return Type == type
|
||||
|| (Direction == PinDirection.Input && type.IsAssignableTo(Type))
|
||||
|| (Direction == PinDirection.Output && type.IsAssignableFrom(Type))
|
||||
|| (Direction == PinDirection.Input && Type == typeof(Enum) && type.IsEnum && forgivingEnumMatching)
|
||||
|| (Direction == PinDirection.Output && type == typeof(Enum) && Type.IsEnum && forgivingEnumMatching)
|
||||
|| (Direction == PinDirection.Input && Type == typeof(object))
|
||||
|| (Direction == PinDirection.Output && type == typeof(object));
|
||||
|| (Direction == PinDirection.Output && type == typeof(Enum) && Type.IsEnum && forgivingEnumMatching);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -168,6 +168,6 @@ public abstract class Pin : CorePropertyChanged, IPin
|
||||
IsNumeric = type == typeof(Numeric);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in new issue
Block a user