Skip to content

Instantly share code, notes, and snippets.

View TimTheTerribleCS's full-sized avatar

Tim The Terrible TimTheTerribleCS

  • Delft, The Netherlands
View GitHub Profile
@ronyx69
ronyx69 / Railway_StationTrackTagger.cs
Last active May 22, 2021 11:13
Tag station tracks for usage in Railway track replacer UI.
var stationTrackType = "r69rwst-double"; // The type of station track:
// r69rwst-double (normal double station track)
// r69rwst-edouble (elevated double station track)
// r69rwst-single2 (single station track - two sided boarding)
// r69rwst-single1 (single station track - left sided boarding)
// r69rwst-singler (single station track - right sided boarding)
// r69rwst-esingle2 (elevated single station track - two sided boarding (shinkansen only afaik))
// r69rwst-esinglel (elevated single station track - left sided boarding)
var prefabNames = new string[]
{
"Pedestrian Connection",
"Pedestrian Connection Surface",
"Pedestrian Connection Inside",
"Pedestrian Connection Underground"
};
foreach (var prefabName in prefabNames)
{
var prefab = PrefabCollection<NetInfo>.FindLoaded(prefabName);