Пример #1
0
 public void ResetBogey()
 {
     OwnPosition     = RollingStock.OwnPosition + Offset;
     OwnTrack        = RollingStock.OwnTrack;
     OwnPath         = RollingStock.OwnPath;
     OwnTrackCircuit = OwnTrack.TrackCircuit;
     tempTC          = OwnTrackCircuit;
     OwnTrackCircuit.AddCars(this);
 }
Пример #2
0
 public void ProvidePresence()
 {
     if (tempTC)
     {
         if (tempTC.Equals(OwnTrackCircuit))
         {
             return;
         }
         tempTC.RemoveCars(this);
     }
     if (OwnTrackCircuit)
     {
         OwnTrackCircuit.AddCars(this);
     }
     tempTC = OwnTrackCircuit;
 }