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