ModAPI SDK v2.5.209
Added several methods related with star properties:
GetBinarySystemStarTypes
GetBinarySystemBaseRadius
GetSolarStarTemperature
GetSolarStarMass
GetSolarStarRadius
GetSolarStarRotationRate
GetSolarStarOrbitRadius
GetPlanetTemperatureType
IsBinaryStar
IsNotStarOrBinaryStar
For those that want to add new star types, detouring these star-related methods will be necessary.
The update also adds two new methods to the StarManager
related with solar system generation:
RequirePlanetsForStar
: Call this method when you want to access the planets of a star record. Planets are not generated when the galaxy is generated, but only when their star is first accessed; this method ensures the star will have planets.GeneratePlanetsForStar
: Called byRequirePlanetsForStar
, this method is the one that actually generates planets and adds them to a solar systemcStarRecord
. Detour this function if you want to change how solar systems are generated.
Finally, a new class was added, Simulator::cSpaceGfx
. This class has all the effects used to display the galaxy, the "skybox" in space, etc.