using System; using Artemis.Core; using Artemis.VisualScripting.Nodes.CustomViewModels; namespace Artemis.VisualScripting.Nodes { [Node("Enum Equals", "Determines the equality between an input and a selected enum value", InputType = typeof(Enum), OutputType = typeof(bool))] public class EnumEqualsNode : Node { public EnumEqualsNode() : base("Enum Equals", "Determines the equality between an input and a selected enum value") { InputPin = CreateInputPin(); OutputPin = CreateOutputPin(); } public InputPin InputPin { get; } public OutputPin OutputPin { get; } #region Overrides of Node /// public override void Evaluate() { OutputPin.Value = InputPin.Value != null && InputPin.Value.Equals(Storage); } #endregion } }