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

Classes

class  ProtoDestructible
 

Public Member Functions

override void OnAwake ()
 
void OnDestroy ()
 
override void OnLoad (ConfigNode node)
 
override void OnSave (ConfigNode node)
 
- Public Member Functions inherited from ScenarioModule
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 

Static Public Member Functions

static bool AddTo (Dictionary< string, List< ProtoDestructible >> dict, string key, ProtoDestructible pD)
 Return true iff new key More...
 
static string GetFacility (string dName)
 
static float GetFacilityDamage (string facilityName)
 
static bool RegisterDestructible (DestructibleBuilding dBuilding, string id)
 
static void RemoveFrom (Dictionary< string, List< ProtoDestructible >> dict, string key, ProtoDestructible pD)
 
static void UnregisterDestructible (DestructibleBuilding dBuilding, string id, bool saveState)
 

Static Public Attributes

static Dictionary< string,
List< ProtoDestructible > > 
facilityToDestructibles = new Dictionary<string, List<ProtoDestructible>>()
 
static ScenarioDestructibles Instance
 
static Dictionary< string,
ProtoDestructible
protoDestructibles = new Dictionary<string,ProtoDestructible>()
 

Additional Inherited Members

- Public Attributes inherited from ScenarioModule
ScenarioRunner runner
 
ProtoScenarioModule snapshot
 
List< GameScenestargetScenes
 
- Properties inherited from ScenarioModule
int ClassID [get]
 
string ClassName [get]
 
BaseEventList Events [get]
 
BaseFieldList Fields [get]
 

Member Function Documentation

static bool ScenarioDestructibles.AddTo ( Dictionary< string, List< ProtoDestructible >>  dict,
string  key,
ProtoDestructible  pD 
)
inlinestatic

Return true iff new key

Parameters
dict
key
pD
Returns
static string ScenarioDestructibles.GetFacility ( string  dName)
inlinestatic
static float ScenarioDestructibles.GetFacilityDamage ( string  facilityName)
inlinestatic
override void ScenarioDestructibles.OnAwake ( )
inlinevirtual

Reimplemented from ScenarioModule.

void ScenarioDestructibles.OnDestroy ( )
inline
override void ScenarioDestructibles.OnLoad ( ConfigNode  node)
inlinevirtual

Reimplemented from ScenarioModule.

override void ScenarioDestructibles.OnSave ( ConfigNode  node)
inlinevirtual

Reimplemented from ScenarioModule.

static bool ScenarioDestructibles.RegisterDestructible ( DestructibleBuilding  dBuilding,
string  id 
)
inlinestatic
static void ScenarioDestructibles.RemoveFrom ( Dictionary< string, List< ProtoDestructible >>  dict,
string  key,
ProtoDestructible  pD 
)
inlinestatic
static void ScenarioDestructibles.UnregisterDestructible ( DestructibleBuilding  dBuilding,
string  id,
bool  saveState 
)
inlinestatic

Member Data Documentation

Dictionary<string, List<ProtoDestructible> > ScenarioDestructibles.facilityToDestructibles = new Dictionary<string, List<ProtoDestructible>>()
static
ScenarioDestructibles ScenarioDestructibles.Instance
static
Dictionary<string, ProtoDestructible> ScenarioDestructibles.protoDestructibles = new Dictionary<string,ProtoDestructible>()
static

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