public void ResetBogey() { OwnPosition = RollingStock.OwnPosition + Offset; OwnTrack = RollingStock.OwnTrack; OwnPath = RollingStock.OwnPath; OwnTrackCircuit = OwnTrack.TrackCircuit; tempTC = OwnTrackCircuit; OwnTrackCircuit.AddCars(this); }
public void ProvidePresence() { if (tempTC) { if (tempTC.Equals(OwnTrackCircuit)) { return; } tempTC.RemoveCars(this); } if (OwnTrackCircuit) { OwnTrackCircuit.AddCars(this); } tempTC = OwnTrackCircuit; }