Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster Class Reference

A Data Class used to hold the information about a Manned Science Cluster. More...

Inheritance diagram for Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster:
IConfigNode

Public Member Functions

void Load (ConfigNode node)
 
void Save (ConfigNode node)
 
int SolarPanelUnitsProduced ()
 Returns the Units of Deployed Science Power that Solar Panels produce within the Cluster. More...
 
void UpdateCluster (ModuleGroundExpControl controlUnit, bool replaceList, List< ModuleGroundSciencePart > scienceParts)
 Updates the Cluster's Data from the passed in references. Will Add/Update/Remove entries from the DeployedScienceParts List as appropriate. More...
 
void UpdateExperimentDiminishReturns ()
 Will update the diminishing returns for all experiments on this Cluster's CB. More...
 
void UpdatePowerState ()
 Update the Power State of the Cluster. More...
 
IEnumerator UpdateScience ()
 Generate Science at fixed intervals.. Attempt to transmit data at the appropriate time (every 10% for each Experiment). More...
 

Static Public Member Functions

static DeployedScienceCluster Spawn (ModuleGroundExpControl controlUnit)
 Spawns a DeployedScienceCluster GameObject; sets the initial control unity data and returns the DeployedScienceCluster component. More...
 
static DeployedScienceCluster SpawnandLoad (ConfigNode node)
 Spawns a DeployedScienceCluster GameObject; Loads it from ConfigNode and returns the DeployedScienceCluster component. More...
 

Public Attributes

CelestialBody DeployedBody
 The Celestial Body the Cluster is deployed on. More...
 
List< DeployedSciencePartDeployedScienceParts
 List of all the ModuleDeployableParts in the Science Cluster. More...
 

Properties

List< DeployedSciencePartAntennaParts [get]
 A List of CommNet Antenna Parts in the cluster. More...
 
bool ControllerPartEnabled [get]
 Indicates if the Controller Part is Enabled or Disabled. More...
 
uint ControlModulePartId [get]
 Control Module Part PersistentId More...
 
bool DataSendFailed [get]
 True if Data transmissions has failed. Will be set false once transmission is successful again. More...
 
bool HasSolarPanels [get]
 Returns true if this Cluster has Solar Panels generating Deployed Science power units. More...
 
bool IsPowered [get]
 True if there is enough power units generating enough power for the ScienceCluster. Otherwise false. More...
 
double LastScienceGeneratedUT [get]
 The UT timer for generating Science within the Cluster More...
 
double LastScienceTransmittedUT [get]
 The UT timer for sending Science within the Cluster More...
 
bool PartialPower [get]
 Is true if we have solar panels producing some or all of the power units required by the cluster. More...
 
float PartialPowerMultiplier [get]
 This is a multiplier applied to science generation across the cluster if we only hae partial power (due to Solar Panels only getting X daylight hours per day). It will be set to 1f if we PartialPower is false. More...
 
int PowerAvailable [get]
 The number of Manned Science Power Units the Cluster produces. More...
 
int PowerRequired [get]
 The number of Manned Science Power Units required for the Cluster to function. More...
 
List< DeployedSciencePartSolarPanelParts [get]
 A List of Solar Panel Parts in the cluster. More...
 
bool UpdatingScience [get, set]
 True whilst Science is being generated for this Cluster More...
 

Detailed Description

A Data Class used to hold the information about a Manned Science Cluster.

Member Function Documentation

void Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.Load ( ConfigNode  node)
inline

Implements IConfigNode.

void Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.Save ( ConfigNode  node)
inline

Implements IConfigNode.

int Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.SolarPanelUnitsProduced ( )
inline

Returns the Units of Deployed Science Power that Solar Panels produce within the Cluster.

Returns
static DeployedScienceCluster Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.Spawn ( ModuleGroundExpControl  controlUnit)
inlinestatic

Spawns a DeployedScienceCluster GameObject; sets the initial control unity data and returns the DeployedScienceCluster component.

Returns
Mission component
static DeployedScienceCluster Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.SpawnandLoad ( ConfigNode  node)
inlinestatic

Spawns a DeployedScienceCluster GameObject; Loads it from ConfigNode and returns the DeployedScienceCluster component.

Returns
Mission component
void Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.UpdateCluster ( ModuleGroundExpControl  controlUnit,
bool  replaceList,
List< ModuleGroundSciencePart scienceParts 
)
inline

Updates the Cluster's Data from the passed in references. Will Add/Update/Remove entries from the DeployedScienceParts List as appropriate.

Parameters
controlUnitA reference to the control Unit.
sciencePartsA List of all the connected Parts.
void Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.UpdateExperimentDiminishReturns ( )
inline

Will update the diminishing returns for all experiments on this Cluster's CB.

void Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.UpdatePowerState ( )
inline

Update the Power State of the Cluster.

IEnumerator Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.UpdateScience ( )
inline

Generate Science at fixed intervals.. Attempt to transmit data at the appropriate time (every 10% for each Experiment).

Member Data Documentation

CelestialBody Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.DeployedBody

The Celestial Body the Cluster is deployed on.

List<DeployedSciencePart> Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.DeployedScienceParts

List of all the ModuleDeployableParts in the Science Cluster.

Property Documentation

List<DeployedSciencePart> Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.AntennaParts
get

A List of CommNet Antenna Parts in the cluster.

bool Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.ControllerPartEnabled
get

Indicates if the Controller Part is Enabled or Disabled.

uint Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.ControlModulePartId
get

Control Module Part PersistentId

bool Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.DataSendFailed
get

True if Data transmissions has failed. Will be set false once transmission is successful again.

bool Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.HasSolarPanels
get

Returns true if this Cluster has Solar Panels generating Deployed Science power units.

bool Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.IsPowered
get

True if there is enough power units generating enough power for the ScienceCluster. Otherwise false.

double Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.LastScienceGeneratedUT
get

The UT timer for generating Science within the Cluster

double Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.LastScienceTransmittedUT
get

The UT timer for sending Science within the Cluster

bool Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.PartialPower
get

Is true if we have solar panels producing some or all of the power units required by the cluster.

float Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.PartialPowerMultiplier
get

This is a multiplier applied to science generation across the cluster if we only hae partial power (due to Solar Panels only getting X daylight hours per day). It will be set to 1f if we PartialPower is false.

int Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.PowerAvailable
get

The number of Manned Science Power Units the Cluster produces.

int Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.PowerRequired
get

The number of Manned Science Power Units required for the Cluster to function.

List<DeployedSciencePart> Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.SolarPanelParts
get

A List of Solar Panel Parts in the cluster.

bool Expansions.Serenity.DeployedScience.Runtime.DeployedScienceCluster.UpdatingScience
getset

True whilst Science is being generated for this Cluster


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