namespace Artemis.Core.Tests.Infrastructure.VisualScripting;
///
/// A node that outputs a boolean the test controls. The value is stored, so it survives saving and loading a script
/// when the node is created through .
///
[Node("Test boolean", "Outputs a boolean controlled by the test", "Tests", OutputType = typeof(bool))]
public class TestBooleanNode : Node
{
public TestBooleanNode()
{
Output = CreateOutputPin();
}
public OutputPin Output { get; }
///
/// Gets or sets the value the node outputs
///
public bool Value
{
get => Storage;
set => Storage = value;
}
public override void Evaluate()
{
Output.Value = Value;
}
}