コード例 #1
0
ファイル: TwoInputGate.cs プロジェクト: Micevski/LCE
 public TwoInputGate(Point TopLeft, int Width, int Height) : base(TopLeft, Width, Height)
 {
     Input1        = new WireHandle(new Point(TopLeft.X, TopLeft.Y + 20));
     Input2        = new WireHandle(new Point(TopLeft.X, TopLeft.Y + 40));
     Output        = new WireHandle(new Point(TopLeft.X + 60, TopLeft.Y + 30));
     Output.Source = this;
 }
コード例 #2
0
ファイル: InputPin.cs プロジェクト: Micevski/LCE
 public InputPin(Point TopLeft, int Width, int Height) : base(TopLeft, Width, Height)
 {
     Input         = State.Undefined;
     Output        = new WireHandle(new Point(TopLeft.X + 60, TopLeft.Y + 30));
     Output.Source = this;
 }
コード例 #3
0
 public OutputPin(Point TopLeft, int Width, int Height) : base(TopLeft, Width, Height)
 {
     Input = new WireHandle(new Point(TopLeft.X, TopLeft.Y + 30));
 }