Ejemplo n.º 1
0
 private void WriteGotoOutputPin(NodeOutputExecPin pin)
 {
     if (pin.OutgoingPin == null)
     {
         WriteGotoJumpStack();
     }
     else
     {
         WriteGotoInputPin(pin.OutgoingPin);
     }
 }
Ejemplo n.º 2
0
        private void WriteGotoOutputPinIfNecessary(NodeOutputExecPin pin, NodeInputExecPin fromPin)
        {
            int fromId = GetExecPinStateId(fromPin);
            int nextId = fromId + 1;

            if (pin.OutgoingPin == null)
            {
                if (nextId != jumpStackStateId)
                {
                    WriteGotoJumpStack();
                }
            }
            else
            {
                int toId = GetExecPinStateId(pin.OutgoingPin);

                // Only write the goto if the next state is not
                // the state we want to go to.
                if (nextId != toId)
                {
                    WriteGotoInputPin(pin.OutgoingPin);
                }
            }
        }