Kerbal Space Program
1.12.4
|
A Data Class used to hold the information about a Manned Science Cluster. More...
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< DeployedSciencePart > | DeployedScienceParts |
List of all the ModuleDeployableParts in the Science Cluster. More... | |
Properties | |
List< DeployedSciencePart > | AntennaParts [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< DeployedSciencePart > | SolarPanelParts [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... | |
A Data Class used to hold the information about a Manned Science Cluster.
|
inline |
Implements IConfigNode.
|
inline |
Implements IConfigNode.
|
inline |
Returns the Units of Deployed Science Power that Solar Panels produce within the Cluster.
|
inlinestatic |
Spawns a DeployedScienceCluster GameObject; sets the initial control unity data and returns the DeployedScienceCluster component.
|
inlinestatic |
Spawns a DeployedScienceCluster GameObject; Loads it from ConfigNode and returns the DeployedScienceCluster component.
|
inline |
Updates the Cluster's Data from the passed in references. Will Add/Update/Remove entries from the DeployedScienceParts List as appropriate.
controlUnit | A reference to the control Unit. |
scienceParts | A List of all the connected Parts. |
|
inline |
Will update the diminishing returns for all experiments on this Cluster's CB.
|
inline |
Update the Power State of the Cluster.
|
inline |
Generate Science at fixed intervals.. Attempt to transmit data at the appropriate time (every 10% for each Experiment).
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.
|
get |
A List of CommNet Antenna Parts in the cluster.
|
get |
Indicates if the Controller Part is Enabled or Disabled.
|
get |
Control Module Part PersistentId
|
get |
True if Data transmissions has failed. Will be set false once transmission is successful again.
|
get |
Returns true if this Cluster has Solar Panels generating Deployed Science power units.
|
get |
True if there is enough power units generating enough power for the ScienceCluster. Otherwise false.
|
get |
The UT timer for generating Science within the Cluster
|
get |
The UT timer for sending Science within the Cluster
|
get |
Is true if we have solar panels producing some or all of the power units required by the cluster.
|
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.
|
get |
The number of Manned Science Power Units the Cluster produces.
|
get |
The number of Manned Science Power Units required for the Cluster to function.
|
get |
A List of Solar Panel Parts in the cluster.
|
getset |
True whilst Science is being generated for this Cluster