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