Tutorial: Biome, ship detection - SonicTHI/SaveOurShip2Experimental GitHub Wiki

In XML for the player ship ShipOrbiting WorldObjectDef is used that has Map_SpaceHome in IncidentTargetTags.

All space maps use OuterSpaceBiome BiomeDef.


In code space maps are cached in SaveOurShip2.AccessExtensions.IsSpace(this Map map) - used in SOS2 as map.IsSpace().

Ships are stored in Dictionary<int, SpaceShipCache> ShipsOnMap in ShipMapComp : MapComponent.

You will likely need Harmony Traverse to access the above two, if you do not want SOS2 as a required mod.