Erabior / RouteManager

Mod for Railroader the game that adds basic automation for passenger routes
12 stars 5 forks source link

Passenger station relationships #107

Open AMacro opened 4 months ago

AMacro commented 4 months ago

When a map is loaded:

  1. The order of stations is dynamically determined (hard-coded orderedStops lists have been replaced with the dynamic lists)
  2. All branch lines (carrying passengers) are discovered
  3. The StationMapData is built (no longer using hard-coded values)
  4. StationMapData now includes the branch that the station is on, as well as a list of other connected branches

This commit attempts to make a general solution that should work for any map, but does make some assumptions:

  1. The first station returned by PassengerStop.FindAll() is the beginning of the main line
  2. Branch lines on the ends of the main line are part of the main line (Sylva and Andrews are both technically branch lines)