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.DeployedSciencePart Class Reference

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

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

Public Member Functions

void Load (ConfigNode node)
 
Part PartIsLoaded ()
 Looks for the associated Part instance. If it is Loaded returns the Part reference. If it is not loaded will return null. More...
 
void Save (ConfigNode node)
 
void UpdateSciencePart (ModuleGroundSciencePart part)
 Updates the Data in this Data class Instance from the passed in ModuleGroundSciencePart. More...
 

Static Public Member Functions

static DeployedSciencePart Spawn (ModuleGroundSciencePart part, ModuleGroundExpControl controlUnit, DeployedScienceCluster cluster)
 Spawns a DeployedSciencePart GameObject; sets the initial data and returns the DeployedSciencePart component. More...
 
static DeployedSciencePart SpawnandLoad (ConfigNode node, DeployedScienceCluster cluster)
 Spawns a DeployedSciencePart GameObject; Loads it from ConfigNode and returns the DeployedSciencePart component. More...
 

Public Attributes

DeployedScienceCluster Cluster
 Reference to the DeployedScienceCluster data instance that this is a part of. More...
 
DeployedScienceExperiment Experiment
 The Science Experiment data for this part - if it is an experiment. Otherwise will be Null. More...
 

Properties

int ActualPowerUnitsProduced [get]
 The total number of Power Units actually being produced by this part More...
 
double AntennaBoosterPower [get]
 Set to the Antenna Booster Power if this Part has a ModuleGroundCommsPart PartModule. More...
 
uint ControllerId [get]
 The Part Persistent Id for the Control Unit (if attached to one) More...
 
bool DeployedOnGround [get]
 If the Deployed Science Part is deployed on the ground or not. More...
 
bool Enabled [get, set]
 If the Deployed Science Part is enabled or not. More...
 
bool IsAntenna [get]
 This will be set true if this Part has a ModuleGroundCommsPart PartModule. More...
 
bool IsSolarPanel [get]
 This will be set true if this Part is a Solar Panel that generates Deployed Science power. Solar Panels do not generate Power all the time (rely on the Sun's rays obviously). More...
 
uint PartId [get]
 Part PersistentId More...
 
int PowerUnitsProduced [get]
 The total number of Power Units this part produces More...
 
int PowerUnitsRequired [get]
 The total number of Power Units this part requires More...
 

Detailed Description

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

Member Function Documentation

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

Implements IConfigNode.

Part Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.PartIsLoaded ( )
inline

Looks for the associated Part instance. If it is Loaded returns the Part reference. If it is not loaded will return null.

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

Implements IConfigNode.

static DeployedSciencePart Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.Spawn ( ModuleGroundSciencePart  part,
ModuleGroundExpControl  controlUnit,
DeployedScienceCluster  cluster 
)
inlinestatic

Spawns a DeployedSciencePart GameObject; sets the initial data and returns the DeployedSciencePart component.

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

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

Returns
Mission component
void Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.UpdateSciencePart ( ModuleGroundSciencePart  part)
inline

Updates the Data in this Data class Instance from the passed in ModuleGroundSciencePart.

Parameters
part

Member Data Documentation

DeployedScienceCluster Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.Cluster

Reference to the DeployedScienceCluster data instance that this is a part of.

DeployedScienceExperiment Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.Experiment

The Science Experiment data for this part - if it is an experiment. Otherwise will be Null.

Property Documentation

int Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.ActualPowerUnitsProduced
get

The total number of Power Units actually being produced by this part

double Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.AntennaBoosterPower
get

Set to the Antenna Booster Power if this Part has a ModuleGroundCommsPart PartModule.

uint Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.ControllerId
get

The Part Persistent Id for the Control Unit (if attached to one)

bool Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.DeployedOnGround
get

If the Deployed Science Part is deployed on the ground or not.

bool Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.Enabled
getset

If the Deployed Science Part is enabled or not.

bool Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.IsAntenna
get

This will be set true if this Part has a ModuleGroundCommsPart PartModule.

bool Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.IsSolarPanel
get

This will be set true if this Part is a Solar Panel that generates Deployed Science power. Solar Panels do not generate Power all the time (rely on the Sun's rays obviously).

uint Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.PartId
get

Part PersistentId

int Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.PowerUnitsProduced
get

The total number of Power Units this part produces

int Expansions.Serenity.DeployedScience.Runtime.DeployedSciencePart.PowerUnitsRequired
get

The total number of Power Units this part requires


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