Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Attributes | Properties | List of all members
ProtoPartResourceSnapshot Class Reference

Represents the saved state of a part resource More...

Public Member Functions

AvailablePart.ResourceInfo GetCurrentResourceInfo ()
 Obtains the up-to-date resource information More...
 
void Load (Part hostPart)
 
 ProtoPartResourceSnapshot (PartResource resource)
 
 ProtoPartResourceSnapshot (ConfigNode node)
 
void Save (ConfigNode node)
 
void UpdateConfigNodeAmounts ()
 

Public Attributes

double amount
 Current amount of resource More...
 
bool flowState
 Flow state of the resource More...
 
double maxAmount
 Max amount of resource More...
 
string resourceName
 The name of the resource More...
 
PartResource resourceRef
 Reference to the resource's PartResource More...
 

Protected Attributes

ConfigNode resourceValues
 

Properties

PartResourceDefinition definition [get, set]
 

Detailed Description

Represents the saved state of a part resource

Constructor & Destructor Documentation

ProtoPartResourceSnapshot.ProtoPartResourceSnapshot ( PartResource  resource)
inline
ProtoPartResourceSnapshot.ProtoPartResourceSnapshot ( ConfigNode  node)
inline

Member Function Documentation

AvailablePart.ResourceInfo ProtoPartResourceSnapshot.GetCurrentResourceInfo ( )
inline

Obtains the up-to-date resource information

void ProtoPartResourceSnapshot.Load ( Part  hostPart)
inline
void ProtoPartResourceSnapshot.Save ( ConfigNode  node)
inline
void ProtoPartResourceSnapshot.UpdateConfigNodeAmounts ( )
inline

Member Data Documentation

double ProtoPartResourceSnapshot.amount

Current amount of resource

bool ProtoPartResourceSnapshot.flowState

Flow state of the resource

double ProtoPartResourceSnapshot.maxAmount

Max amount of resource

string ProtoPartResourceSnapshot.resourceName

The name of the resource

PartResource ProtoPartResourceSnapshot.resourceRef

Reference to the resource's PartResource

ConfigNode ProtoPartResourceSnapshot.resourceValues
protected

Property Documentation

PartResourceDefinition ProtoPartResourceSnapshot.definition
getset

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