Example #1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            GateObject @in  = Inputee as GateObject;
            GateObject @out = Outputee as GateObject;

            if (!Connected)
            {
                spriteBatch.Line(@in.GetInputPin(InputPin), @out.GetOutputPin(OutputPin), 2, Color.Green);
            }
        }
Example #2
0
 public ConnectionObject(GateObject outputee, int outputPin, GateObject inputee, int inputPin)
     : base(outputee, outputPin, inputee, inputPin)
 {
     Name++;
     id = Name;
 }