Exemplo n.º 1
0
 public void InitConnection(RSConnection otherCar)
 {
     IsConnectedRight = true;
     RightCar         = otherCar;
     RightCar.LeftCar = this;
     // this coupler is in connection
     CouplerRight.MakeCouplerConnection();
     CouplerPointRight.MakePointConnection(otherCar);
 }
Exemplo n.º 2
0
 public void MakeConnection(RSConnection otherCar)
 {
     IsConnectedRight = true;
     RightCar         = otherCar;
     RightCar.LeftCar = this;
     // this coupler is in connection
     CouplerRight.MakeCouplerConnection();
     CouplerPointRight.MakePointConnection(otherCar);
     // make new comp from two
     CompositionManager.Instance.UpdateCompositionsAfterCoupling(RollingStock, RightCar.RollingStock);
     //for coupler indication
     EventManager.CarsCoupled();
 }