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

Public Types

enum  OperationResult { OperationResult.Successful, OperationResult.NotEnoughFunds, OperationResult.ScienceCostLimitExceeded, OperationResult.Failure }
 
enum  State { State.Unavailable, State.Available }
 

Public Member Functions

void AutoPurchaseAllParts ()
 In Science games or in Career Games where Auto-Purchasing is turned on, unlock all parts upon researching the node. More...
 
void Load (ConfigNode node)
 
bool PartIsPurchased (AvailablePart ap)
 
void PurchasePart (AvailablePart ap)
 
OperationResult ResearchTech ()
 
void Save (ConfigNode node)
 
void Start ()
 
void UnlockTech (bool updateGameState)
 
void Warmup ()
 

Public Attributes

string description
 
bool hideIfNoParts
 
ResearchAndDevelopment host
 
List< AvailablePartpartsAssigned
 
List< AvailablePartpartsPurchased
 
int scienceCost
 
State state
 
string techID
 
string title
 

Protected Member Functions

void HandlePurchase (AvailablePart partInfo)
 

Member Enumeration Documentation

Enumerator
Successful 
NotEnoughFunds 
ScienceCostLimitExceeded 
Failure 
Enumerator
Unavailable 
Available 

Member Function Documentation

void RDTech.AutoPurchaseAllParts ( )
inline

In Science games or in Career Games where Auto-Purchasing is turned on, unlock all parts upon researching the node.

void RDTech.HandlePurchase ( AvailablePart  partInfo)
inlineprotected
void RDTech.Load ( ConfigNode  node)
inline
bool RDTech.PartIsPurchased ( AvailablePart  ap)
inline
void RDTech.PurchasePart ( AvailablePart  ap)
inline
OperationResult RDTech.ResearchTech ( )
inline
void RDTech.Save ( ConfigNode  node)
inline
void RDTech.Start ( )
inline

< fetch the tech state from the R&D scenario module. Will be null if the tech is unavailable

void RDTech.UnlockTech ( bool  updateGameState)
inline
void RDTech.Warmup ( )
inline

Member Data Documentation

string RDTech.description
bool RDTech.hideIfNoParts
List<AvailablePart> RDTech.partsAssigned
List<AvailablePart> RDTech.partsPurchased
int RDTech.scienceCost
State RDTech.state
string RDTech.techID
string RDTech.title

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