An entry in the asteroid registry.
More...
|
uint | id |
| Persistent ID for the asteroid vessel. More...
|
|
string | parentSet |
| The asteroid set from which this asteroid came. More...
|
|
An entry in the asteroid registry.
Starstrider42.CustomAsteroids.AsteroidInfo.AsteroidInfo |
( |
ConfigNode |
vessel, |
|
|
string |
parentSet |
|
) |
| |
Summarize key information for a newly created asteroid.
- Parameters
-
vessel | The asteroid whose information needs to be stored. |
parentSet | The asteroid set from which the asteroid was created. |
- Exceptions
-
System.ArgumentException | Thrown if vessel is missing its unique identifier. |
Starstrider42.CustomAsteroids.AsteroidInfo.AsteroidInfo |
( |
ProtoVessel |
vessel, |
|
|
string |
parentSet |
|
) |
| |
Summarize key information for a newly created asteroid.
- Parameters
-
vessel | The asteroid whose information needs to be stored. |
parentSet | The asteroid set from which the asteroid was created. |
Starstrider42.CustomAsteroids.AsteroidInfo.AsteroidInfo |
( |
Vessel |
vessel, |
|
|
string |
parentSet |
|
) |
| |
Summarize key information for a newly created asteroid.
- Parameters
-
vessel | The asteroid whose information needs to be stored. |
parentSet | The asteroid set from which the asteroid was created. |
static AsteroidInfo Starstrider42.CustomAsteroids.AsteroidInfo.FromConfigNode |
( |
ConfigNode |
node | ) |
|
|
static |
Restore an AsteroidInfo from its persisted form.
- Parameters
-
node | The ConfigNode representing this object. |
ConfigNode Starstrider42.CustomAsteroids.AsteroidInfo.ToConfigNode |
( |
| ) |
|
Create a ConfigNode representing this object.
uint Starstrider42.CustomAsteroids.AsteroidInfo.id |
Persistent ID for the asteroid vessel.
string Starstrider42.CustomAsteroids.AsteroidInfo.parentSet |
The asteroid set from which this asteroid came.
May be null if the set is unknown or inapplicable (e.g., stock asteroids).
The documentation for this class was generated from the following file:
- src/CustomAsteroidRegistry.cs