Custom Asteroids  0.2.0
A mod for Kerbal Space Program that lets users control where asteroids appear
 All Classes Namespaces Files Functions Properties Pages
AsteroidManager Class Reference

Central class for controlling asteroid orbits. More...

Classes

class  BadPopulationException
 

Static Package Functions

static void editAsteroid (Vessel asteroid)
 Customizes an asteroid, based on the settings loaded to Custom asteroids. More...
 

Detailed Description

Central class for controlling asteroid orbits.

Member Function Documentation

static void editAsteroid ( Vessel  asteroid)
staticpackage

Customizes an asteroid, based on the settings loaded to Custom asteroids.

Parameters
[in,out]asteroidThe asteroid to be modified
Precondition
asteroid is an asteroid object in-game
Postcondition
asteroid has properties consistent with membership in a randomly chosen population
Exceptions
System.InvalidOperationExceptionThrown if there are no populations in which to place the asteroid
Starstrider42.CustomAsteroids.AsteroidManager.BadPopulationExceptionThrown if a population exists, but cannot generate valid data
Exception Safety
The program is in a consistent state in the event of an exception

The documentation for this class was generated from the following file: