Beispiel #1
0
 internal void HandleTrainRearPass(SharedTrain train)
 {
     if (OnTrainRearPass != null)
     {
         OnTrainRearPass.Invoke(train);
     }
 }
Beispiel #2
0
 internal void HandleTrainExit(SharedTrain train)
 {
     Trains.Remove(train);
     if (OnTrainExit != null)
     {
         OnTrainExit.Invoke(train);
     }
 }
Beispiel #3
0
 internal void HandleTrainEnter(SharedTrain train)
 {
     Trains.Add(train);
     if (OnTrainEnter != null)
     {
         OnTrainEnter.Invoke(train);
     }
 }
Beispiel #4
0
 public SharedRailcar(SharedTrain train, RailcarModel model, TrackPosition position)
 {
     Train         = train;
     Model         = model;
     FrontPosition = position;
 }