Custom Asteroids  1.9
A mod for Kerbal Space Program that lets users control where asteroids appear
Starstrider42.CustomAsteroids.CustomAsteroidSpawner Class Reference

Manages asteroid spawning behaviour, including the choice of spawner. More...

Inherits ScenarioModule.

Public Member Functions

override sealed void OnAwake ()
 Called on the frame when a script is first loaded, before any are enabled. More...
 
void Update ()
 Update is called every frame, if the MonoBehaviour is enabled. More...
 
override void OnLoad (ConfigNode node)
 Called when the module is either constructed or loaded as part of a save game. More...
 
override void OnSave (ConfigNode node)
 Called when the save game including the module is saved. More...
 

Detailed Description

Manages asteroid spawning behaviour, including the choice of spawner.

Deprecated:
Remove this class when implementing 3rd party spawner support for version 2.0.0.

Member Function Documentation

override sealed void Starstrider42.CustomAsteroids.CustomAsteroidSpawner.OnAwake ( )

Called on the frame when a script is first loaded, before any are enabled.

See also
Unity Documentation
override void Starstrider42.CustomAsteroids.CustomAsteroidSpawner.OnLoad ( ConfigNode  node)

Called when the module is either constructed or loaded as part of a save game.

After this method returns, the module will be initialized with any settings in node.

Parameters
nodeThe ConfigNode representing this ScenarioModule.
override void Starstrider42.CustomAsteroids.CustomAsteroidSpawner.OnSave ( ConfigNode  node)

Called when the save game including the module is saved.

node is initialized with the persistent contents of this object.

Parameters
nodeThe ConfigNode representing this ScenarioModule.
void Starstrider42.CustomAsteroids.CustomAsteroidSpawner.Update ( )

Update is called every frame, if the MonoBehaviour is enabled.

Does not throw exceptions.

See also
Unity Documentation
Deprecated:
This method is kept public for backward-compatibility, but no longer does anything.

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