Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
GameParameters Class Reference
Inheritance diagram for GameParameters:
IConfigNode

Classes

class  AdvancedParams
 
class  CareerParams
 
class  CustomFloatParameterUI
 
class  CustomIntParameterUI
 
class  CustomParameterNode
 
class  CustomParameterUI
 Attribute that needs to be used for custom parameters to be shown in the custom parameter UI. More...
 
class  CustomStringParameterUI
 
class  DifficultyParams
 
class  EditorParams
 
class  FlightParams
 
class  ParameterNode
 
class  SpaceCenterParams
 
class  TrackingStationParams
 

Public Types

enum  GameMode {
  GameMode.NONE = 0, GameMode.SANDBOX = 1, GameMode.SCIENCE = 2, GameMode.CAREER = 4,
  GameMode.MISSION = 8, GameMode.NOTMISSION = 7, GameMode.ANY = 15
}
 Special game mode enum that is limited to the "normal" game modes (ie. no scenarios). Also, bitwise-able More...
 
enum  Preset {
  Preset.Easy, Preset.Normal, Preset.Moderate, Preset.Hard,
  Preset.Custom
}
 The valid Preset Enum. A localized version of these can be retrieved using GameParameters.GetPresetTagsDescriptions The localized version should only be used for UI display. More...
 

Public Member Functions

CustomParameterNode CustomParams (Type type)
 
CustomParams< T > ()
 
 GameParameters ()
 
 GameParameters (ConfigNode node)
 
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 

Static Public Member Functions

static GameParameters GetDefaultParameters (Game.Modes mode, Preset p)
 
static Color GetPresetColor (Preset p)
 
static string GetPresetColorHex (Preset p)
 
static void SetDifficultyPresets ()
 

Public Attributes

CareerParams Career
 
DifficultyParams Difficulty
 
EditorParams Editor
 
FlightParams Flight
 
Preset preset
 
SpaceCenterParams SpaceCenter
 
TrackingStationParams TrackingStation
 

Static Public Attributes

static Dictionary< Preset,
GameParameters
DifficultyPresets = new Dictionary<Preset, GameParameters>()
 
static List< Type > ParameterTypes = null
 

Member Enumeration Documentation

Special game mode enum that is limited to the "normal" game modes (ie. no scenarios). Also, bitwise-able

Enumerator
NONE 
SANDBOX 
SCIENCE 
CAREER 
MISSION 
NOTMISSION 
ANY 

The valid Preset Enum. A localized version of these can be retrieved using GameParameters.GetPresetTagsDescriptions The localized version should only be used for UI display.

Enumerator
Easy 
Normal 
Moderate 
Hard 
Custom 

Constructor & Destructor Documentation

GameParameters.GameParameters ( )
inline

< Initialize all available custom parameters

GameParameters.GameParameters ( ConfigNode  node)
inline

Member Function Documentation

CustomParameterNode GameParameters.CustomParams ( Type  type)
inline
T GameParameters.CustomParams< T > ( )
inline
Type Constraints
T :CustomParameterNode 
static GameParameters GameParameters.GetDefaultParameters ( Game.Modes  mode,
Preset  p 
)
inlinestatic
static Color GameParameters.GetPresetColor ( Preset  p)
inlinestatic
static string GameParameters.GetPresetColorHex ( Preset  p)
inlinestatic
void GameParameters.Load ( ConfigNode  node)
inline

Implements IConfigNode.

void GameParameters.Save ( ConfigNode  node)
inline

Implements IConfigNode.

static void GameParameters.SetDifficultyPresets ( )
inlinestatic

< Easy

< Normal

< Moderate

< Hard

< Custom

Member Data Documentation

CareerParams GameParameters.Career
DifficultyParams GameParameters.Difficulty
Dictionary<Preset, GameParameters> GameParameters.DifficultyPresets = new Dictionary<Preset, GameParameters>()
static
EditorParams GameParameters.Editor
FlightParams GameParameters.Flight
List<Type> GameParameters.ParameterTypes = null
static
Preset GameParameters.preset
SpaceCenterParams GameParameters.SpaceCenter
TrackingStationParams GameParameters.TrackingStation

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