Erabior / RouteManager

Mod for Railroader the game that adds basic automation for passenger routes
13 stars 6 forks source link

Passenger station relationships #107

Closed AMacro closed 2 months ago

AMacro commented 8 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)