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

Classes

class  ROCStats
 

Public Member Functions

void ClearROCsCache ()
 Clears the ROCs Cache. More...
 
void DisableAllROCs ()
 Will disable all PQSROCControls in pQSROCControls list. More...
 
void EnableAllROCs ()
 Will enable all PQSROCControls in pQSROCControls list. More...
 
string GetTerrainTag (GameObject obj, out GameObject terrainObj)
 Will find the PQ terrain Quad that the passed in Object is associated with (ROC object) and return the PQ terrain quad's Unity Tag (for setting Vessel.Landed state). If no quad is found or tag. returns empty string. More...
 
void LoadRemovedROCs (ConfigNode node)
 Loads all RemovedROCs from ConfigNode for persistence load from game.sfs. More...
 
void RemoveROC (int rocId)
 Removes a ROC from the RemovedROCs List. More...
 
bool ROCRemoved (int rocId)
 Search the RemovedROCs List for a rocId. More...
 
void SaveRemoveROCs (ConfigNode node)
 Saves all RemovedROCs to ConfigNode for persistence into game.sfs. More...
 

Public Attributes

DictionaryValueList< string,
ROCStats
rocStats
 

Properties

static ROCManager Instance [get, set]
 Static singleton reference More...
 
List< PQSROCControlpqsRocControls [get]
 A List of all the PQSROCControl instances attached to the celestial bodies. More...
 
List< ROCDefinitionrocDefinitions [get]
 A List of the ROC Definitions read from ROC_DEFINITION confignode files. More...
 
bool RocsEnabledInCurrentGame [get]
 Are ROCs enabled in the current game? More...
 
DictionaryValueList< string,
GameObject > 
RocTypeObjects [get]
 

Member Function Documentation

void ROCManager.ClearROCsCache ( )
inline

Clears the ROCs Cache.

void ROCManager.DisableAllROCs ( )
inline

Will disable all PQSROCControls in pQSROCControls list.

void ROCManager.EnableAllROCs ( )
inline

Will enable all PQSROCControls in pQSROCControls list.

string ROCManager.GetTerrainTag ( GameObject  obj,
out GameObject  terrainObj 
)
inline

Will find the PQ terrain Quad that the passed in Object is associated with (ROC object) and return the PQ terrain quad's Unity Tag (for setting Vessel.Landed state). If no quad is found or tag. returns empty string.

Parameters
objThe ROC GameObject we want the terrain tag and object for
terrainObjwill be set to the actual PQ terrain Quad gameobject underneath the ROC
Returns
the landedAt string as appropriate
void ROCManager.LoadRemovedROCs ( ConfigNode  node)
inline

Loads all RemovedROCs from ConfigNode for persistence load from game.sfs.

Parameters
node
void ROCManager.RemoveROC ( int  rocId)
inline

Removes a ROC from the RemovedROCs List.

Parameters
rocId
bool ROCManager.ROCRemoved ( int  rocId)
inline

Search the RemovedROCs List for a rocId.

Parameters
rocId
Returns
void ROCManager.SaveRemoveROCs ( ConfigNode  node)
inline

Saves all RemovedROCs to ConfigNode for persistence into game.sfs.

Parameters
node

Member Data Documentation

DictionaryValueList<string, ROCStats> ROCManager.rocStats

Property Documentation

ROCManager ROCManager.Instance
staticgetset

Static singleton reference

List<PQSROCControl> ROCManager.pqsRocControls
get

A List of all the PQSROCControl instances attached to the celestial bodies.

List<ROCDefinition> ROCManager.rocDefinitions
get

A List of the ROC Definitions read from ROC_DEFINITION confignode files.

bool ROCManager.RocsEnabledInCurrentGame
get

Are ROCs enabled in the current game?

DictionaryValueList<string, GameObject> ROCManager.RocTypeObjects
get

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