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