using Artemis.Core; namespace Artemis.VisualScripting.Nodes.Operators; [Node("Negate", "Negates the boolean.", "Operators", InputType = typeof(bool), OutputType = typeof(bool))] public class NegateNode : Node { #region Constructors public NegateNode() : base("Negate", "Negates the boolean.") { Input = CreateInputPin(); Output = CreateOutputPin(); } #endregion #region Methods public override void Evaluate() { Output.Value = !Input.Value; } #endregion #region Properties & Fields public InputPin Input { get; } public OutputPin Output { get; } #endregion }