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