예제 #1
0
 public BitSource(Vec2 Position, Direction direction)
     : base(Position, direction, new BoxCollider(-.5f, -.5f, 1, 1))
 {
     Inputs  = Array.Empty <GatePin>();
     Outputs = new GatePin[] {
         new GatePin(this, new Vec2())
     };
 }
예제 #2
0
 public SevenSegment(Vec2 Position, Direction direction)
     : base(Position, direction, new BoxCollider(-1, -1, 2, 1))
 {
     Inputs = new GatePin[]
     {
         new GatePin(this, new Vec2())
     };
     Outputs = Array.Empty <GatePin>();
 }
예제 #3
0
        public NotGate(Vec2 Position, Direction direction)
            : base(Position, direction, new BoxCollider(-1, -.5f, 2, 1))
        {
            Inputs = new GatePin[] {
                new GatePin(this, new Vec2(-1, 0))
            };

            Outputs = new GatePin[] {
                new GatePin(this, new Vec2(1, 0))
            };
        }