using Artemis.Core; using Artemis.VisualScripting.Nodes.CustomViewModels; namespace Artemis.VisualScripting.Nodes { [Node("Integer-Value", "Outputs a configurable static integer value.", "Static", OutputType = typeof(int))] public class StaticIntegerValueNode : Node { #region Properties & Fields public OutputPin Output { get; } #endregion #region Constructors public StaticIntegerValueNode() : base("Integer", "Outputs an configurable integer value.") { Output = CreateOutputPin(); } #endregion #region Methods public override void Evaluate() { Output.Value = Storage; } #endregion } [Node("Float-Value", "Outputs a configurable static float value.", "Static", OutputType = typeof(float))] public class StaticFloatValueNode : Node { #region Properties & Fields public OutputPin Output { get; } #endregion #region Constructors public StaticFloatValueNode() : base("Float", "Outputs a configurable float value.") { Output = CreateOutputPin(); } #endregion #region Methods public override void Evaluate() { Output.Value = Storage; } #endregion } [Node("String-Value", "Outputs a configurable static string value.", "Static", OutputType = typeof(string))] public class StaticStringValueNode : Node { #region Properties & Fields public OutputPin Output { get; } #endregion #region Constructors public StaticStringValueNode() : base("String", "Outputs a configurable string value.") { Output = CreateOutputPin(); } #endregion #region Methods public override void Evaluate() { Output.Value = Storage; } #endregion } }