KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Public Attributes | Properties | List of all members
KSPScenario Class Reference

Like KSPAddon, but for ScenarioModules. Apply this attribute to your subclass of ScenarioModule and KSP will add it to the game at the right time. More...

Inheritance diagram for KSPScenario:

Public Member Functions

 KSPScenario (ScenarioCreationOptions createOptions, params GameScenes[] tgtScenes)
 Constructor. More...
 
bool HasCreateOption (ScenarioCreationOptions option)
 

Public Attributes

ScenarioCreationOptions createOptions
 
GameScenes[] tgtScenes
 

Properties

GameScenes[] TargetScenes [get]
 

Detailed Description

Like KSPAddon, but for ScenarioModules. Apply this attribute to your subclass of ScenarioModule and KSP will add it to the game at the right time.

Constructor & Destructor Documentation

KSPScenario.KSPScenario ( ScenarioCreationOptions  createOptions,
params GameScenes[]  tgtScenes 
)

Constructor.

Parameters
createOptionsDirections about which games the scenario should be added to. Different options can be combined with the | operator.
tgtScenesA list of the game scenes to which the scenario should be added

Member Function Documentation

bool KSPScenario.HasCreateOption ( ScenarioCreationOptions  option)

Member Data Documentation

ScenarioCreationOptions KSPScenario.createOptions
GameScenes [] KSPScenario.tgtScenes

Property Documentation

GameScenes [] KSPScenario.TargetScenes
get

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