예제 #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);
            }
        }
예제 #2
0
 public ConnectionObject(GateObject outputee, int outputPin, GateObject inputee, int inputPin)
     : base(outputee, outputPin, inputee, inputPin)
 {
     Name++;
     id = Name;
 }