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 | Properties | List of all members
PartResource Class Reference

Public Types

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

Public Member Functions

bool CanProvide (double demand)
 
bool CanProvide (bool pulling)
 
void Copy (PartResource res)
 
bool Flowing (bool pulling)
 
string GetInfo ()
 
void Load (ConfigNode node)
 
 PartResource (Part p)
 
 PartResource (Part p, bool simulate)
 
 PartResource (PartResource res)
 
 PartResource (PartResource res, bool simulate)
 
void Save (ConfigNode node)
 
void SetInfo (PartResourceDefinition info)
 

Public Attributes

FlowMode _flowMode
 
bool _flowState
 
double amount
 
bool hideFlow = false
 
PartResourceDefinition info
 
bool isTweakable
 
bool isVisible = true
 
double maxAmount
 
Part part
 
string resourceName
 
bool simulationResource = false
 

Properties

FlowMode flowMode [get, set]
 
bool flowState [get, set]
 

Member Enumeration Documentation

Enumerator
None 
Out 
In 
Both 

Constructor & Destructor Documentation

PartResource.PartResource ( Part  p)
inline
PartResource.PartResource ( Part  p,
bool  simulate 
)
inline
PartResource.PartResource ( PartResource  res)
inline
PartResource.PartResource ( PartResource  res,
bool  simulate 
)
inline

Member Function Documentation

bool PartResource.CanProvide ( double  demand)
inline
bool PartResource.CanProvide ( bool  pulling)
inline
void PartResource.Copy ( PartResource  res)
inline
bool PartResource.Flowing ( bool  pulling)
inline
string PartResource.GetInfo ( )
inline
void PartResource.Load ( ConfigNode  node)
inline

< if the part defines a tweakable setting, go with the one from the node, else go by the default of the resource definition

< if the part defines a visibility setting, go with the one from the node, else go by the default of the resource definition

void PartResource.Save ( ConfigNode  node)
inline
void PartResource.SetInfo ( PartResourceDefinition  info)
inline

Member Data Documentation

FlowMode PartResource._flowMode
bool PartResource._flowState
double PartResource.amount
bool PartResource.hideFlow = false
PartResourceDefinition PartResource.info
bool PartResource.isTweakable
bool PartResource.isVisible = true
double PartResource.maxAmount
Part PartResource.part
string PartResource.resourceName
bool PartResource.simulationResource = false

Property Documentation

FlowMode PartResource.flowMode
getset
bool PartResource.flowState
getset

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