Int32


Node Information
Int32, a numeric value.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Value OUT Int32 MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Variables
{
    [IsNode("Int32")]
    public class VarInt32 : Node
    {
        Port val = new Port(PortType.OUT, typeof(int), AcceptsLinks.MULTIPLE, "Value");
        public VarInt32()
        {
            NodeType = KGraph.NodeType.Variable;
            ReturnType = typeof(int);
            val.Value = "0";
            Name = "Int32";
            AddPort(val);
            Information = "Int32, a numeric value.";
        }
        public override string Code()
        {
            return val.Value;
        }
    }
}