public VariableGetNode(string variable, string type) : base(NodeType.VariableGet, UniqueId.NewId()) { Name = $"Get Variable - {type}"; Color = HashColorConverter.GetColor(type); OutputPins.Add(new TypeOutputPin(PinId.NewId(NodeId, PinType.Output, 0), variable, type)); }
public ConstantReadNode(string serializedValue, string type) : base(NodeType.ConstantRead, UniqueId.NewId()) { Name = $"Constant - {type}"; Color = HashColorConverter.GetColor(type); OutputPins.Add(new TypeOutputPin(PinId.NewId(NodeId, PinType.Output, 0), serializedValue, type)); }
public VariableSetNode(string variable, string type) : base(NodeType.VariableSet, UniqueId.NewId()) { Name = $"Set Variable - {type}"; Color = HashColorConverter.GetColor(type); InputPins.Add(new FlowInputPin(PinId.NewId(NodeId, PinType.Input, 0))); InputPins.Add(new TypeInputPin(PinId.NewId(NodeId, PinType.Input, 1), variable, type)); OutputPins.Add(new FlowOutputPin(PinId.NewId(NodeId, PinType.Output, 0), string.Empty)); }