KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Types | Public Member Functions | Public Attributes | List of all members
PartResource Class Reference

A PartResource object represents the store of a single type of resource within a Part. More...

Inheritance diagram for PartResource:

Public Types

enum  FlowMode { FlowMode.Both = 0, FlowMode.Out = 1, FlowMode.In = 2, FlowMode.None = 3 }
 

Public Member Functions

 PartResource ()
 
string GetInfo ()
 
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 
void SetInfo (PartResourceDefinition info)
 

Public Attributes

double amount
 How much of the resource is in this part, in whatever units the resource uses. More...
 
PartResource.FlowMode flowMode
 
bool flowState
 
PartResourceDefinition info
 The definition of this type of resource, which contains all information about this resource type. More...
 
double maxAmount
 The maximum amount of this resource that this part can hold. More...
 
Part part
 The part whose stored resource this object represents More...
 
string resourceName
 The name of this resource, as a string, e.g. "ElectricCharge" More...
 

Detailed Description

A PartResource object represents the store of a single type of resource within a Part.

Member Enumeration Documentation

Enumerator
Both 
Out 
In 
None 

Constructor & Destructor Documentation

PartResource.PartResource ( )

Member Function Documentation

string PartResource.GetInfo ( )
void PartResource.Load ( ConfigNode  node)
void PartResource.Save ( ConfigNode  node)
void PartResource.SetInfo ( PartResourceDefinition  info)

Member Data Documentation

double PartResource.amount

How much of the resource is in this part, in whatever units the resource uses.

PartResource.FlowMode PartResource.flowMode
bool PartResource.flowState
PartResourceDefinition PartResource.info

The definition of this type of resource, which contains all information about this resource type.

double PartResource.maxAmount

The maximum amount of this resource that this part can hold.

Part PartResource.part

The part whose stored resource this object represents

string PartResource.resourceName

The name of this resource, as a string, e.g. "ElectricCharge"


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