Skip to content

ModAPI SDK v2.5.209

Compare
Choose a tag to compare
@emd4600 emd4600 released this 07 Oct 01:27
· 181 commits to master since this release

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 by RequirePlanetsForStar, this method is the one that actually generates planets and adds them to a solar system cStarRecord. 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.