Nodes - Removed constructor base calls where unnecessary

This commit is contained in:
Robert authored and RobertBeekman committed 2022-10-04 23:39:00 +02:00
1 parent 7ada77f5e3
commit a59183c3fa
59 files changed
+34 -61

No files matched your search

@@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Static;
[Node("Display Value", "Displays an input value for testing purposes.", "Static", InputType = typeof(object))]
public class DisplayValueNode : Node<string, DisplayValueNodeCustomViewModel>
{
public DisplayValueNode() : base("Display Value", "Displays an input value for testing purposes.")
public DisplayValueNode()
{
Input = CreateInputPin<object>();
}
@@ -16,7 +16,6 @@ public class RandomNumericValueNode : Node
#region Constructors
public RandomNumericValueNode()
: base("Random", "Generates a random value between 0 and 1")
{
Output = CreateOutputPin<Numeric>();
}
@@ -9,8 +9,8 @@ public class StaticBooleanValueNode : Node<bool, StaticBooleanValueNodeCustomVie
#region Constructors
public StaticBooleanValueNode()
: base("Boolean", "Outputs a configurable static boolean value.")
{
Name = "Boolean";
Output = CreateOutputPin<bool>();
}
@@ -9,8 +9,8 @@ public class StaticNumericValueNode : Node<Numeric, StaticNumericValueNodeCustom
#region Constructors
public StaticNumericValueNode()
: base("Numeric", "Outputs a configurable numeric value.")
{
Name = "Numeric";
Output = CreateOutputPin<Numeric>();
}
@@ -10,8 +10,8 @@ public class StaticSKColorValueNode : Node<SKColor, StaticSKColorValueNodeCustom
#region Constructors
public StaticSKColorValueNode()
: base("Color", "Outputs a configurable color value.")
{
Name = "Color";
Output = CreateOutputPin<SKColor>();
Storage = new SKColor(255, 0, 0);
}
@@ -9,8 +9,8 @@ public class StaticStringValueNode : Node<string, StaticStringValueNodeCustomVie
#region Constructors
public StaticStringValueNode()
: base("Text", "Outputs a configurable text value.")
{
Name = "Text";
Output = CreateOutputPin<string>();
}