Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Expansions.Missions.Asteroid Class Reference

Contains the information exposed in the MEditor for an Asteroid instance. More...

Inheritance diagram for Expansions.Missions.Asteroid:
IConfigNode

Public Types

enum  AsteroidType { AsteroidType.Regular, AsteroidType.Glimmeroid }
 The Types of Asteroid supported. More...
 

Public Member Functions

 Asteroid ()
 
void Load (ConfigNode node)
 
void Randomize ()
 Fills some of the asteroid values with random information More...
 
void Save (ConfigNode node)
 

Static Public Member Functions

static uint GetAsteroidSeed ()
 Generates a random seed before saving the asteroid, override if you need a specific seed when saving. More...
 

Public Attributes

UntrackedObjectClass asteroidClass
 The Asteroid Class More...
 
AsteroidType asteroidType
 The type of the Asteroid More...
 
string name
 The name of the Asteroid More...
 
uint persistentId = 0
 The Vessel persistentId for the Asteroid More...
 
uint seed
 The Asteroids Seed value More...
 

Detailed Description

Contains the information exposed in the MEditor for an Asteroid instance.

Member Enumeration Documentation

The Types of Asteroid supported.

Enumerator
Regular 
Glimmeroid 

Constructor & Destructor Documentation

Expansions.Missions.Asteroid.Asteroid ( )
inline

Member Function Documentation

static uint Expansions.Missions.Asteroid.GetAsteroidSeed ( )
inlinestatic

Generates a random seed before saving the asteroid, override if you need a specific seed when saving.

Returns
A random uint value
void Expansions.Missions.Asteroid.Load ( ConfigNode  node)
inline

Implements IConfigNode.

void Expansions.Missions.Asteroid.Randomize ( )
inline

Fills some of the asteroid values with random information

void Expansions.Missions.Asteroid.Save ( ConfigNode  node)
inline

Implements IConfigNode.

Member Data Documentation

UntrackedObjectClass Expansions.Missions.Asteroid.asteroidClass

The Asteroid Class

AsteroidType Expansions.Missions.Asteroid.asteroidType

The type of the Asteroid

string Expansions.Missions.Asteroid.name

The name of the Asteroid

uint Expansions.Missions.Asteroid.persistentId = 0

The Vessel persistentId for the Asteroid

uint Expansions.Missions.Asteroid.seed

The Asteroids Seed value


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