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

Public Member Functions

PartResource Add (ConfigNode node)
 
PartResource Add (PartResource res)
 
PartResource Add (string name, double amount, double maxAmount, bool flowState, bool isTweakable, bool hideFlow, bool isVisible, PartResource.FlowMode flow)
 
void Clear ()
 
bool Contains (string name)
 
bool Contains (int id)
 
PartResource Get (string name)
 
PartResource Get (int id)
 
bool GetAll (List< PartResource > sources, int id)
 Places all PartResource with matching id into sources list. NOTE: Does not clear list. Returns true iff one was found. More...
 
bool GetAllFlowing (List< PartResource > sources, int id)
 Places all PartResource with matching id and valid flowstate into sources list. NOTE: Does not clear list. Returns true iff one was found. More...
 
IEnumerator< PartResourceGetEnumerator ()
 
PartResource GetFlowing (int id, bool pulling)
 
void GetFlowingTotals (int id, out double amount, out double maxAmount, bool pulling)
 
bool HasFlowable ()
 
bool HasFlowableUnhidden ()
 
 PartResourceList (Part part)
 
 PartResourceList (Part part, bool simulationSet)
 
 PartResourceList (Part part, PartResourceList refList)
 
 PartResourceList (Part part, PartResourceList refList, bool simulationSet)
 
void RefreshSimulationListAmounts (PartResourceList refList)
 
bool Remove (PartResource res)
 
bool Remove (string resName)
 
bool Remove (int resID)
 

Public Attributes

DictionaryValueList< int,
PartResource
dict
 

Properties

int Count [get]
 
bool IsValid [get]
 
PartResource this[int index] [get]
 
PartResource this[string name] [get]
 

Constructor & Destructor Documentation

PartResourceList.PartResourceList ( Part  part)
inline
PartResourceList.PartResourceList ( Part  part,
bool  simulationSet 
)
inline
PartResourceList.PartResourceList ( Part  part,
PartResourceList  refList 
)
inline
PartResourceList.PartResourceList ( Part  part,
PartResourceList  refList,
bool  simulationSet 
)
inline

Member Function Documentation

PartResource PartResourceList.Add ( ConfigNode  node)
inline
PartResource PartResourceList.Add ( PartResource  res)
inline
PartResource PartResourceList.Add ( string  name,
double  amount,
double  maxAmount,
bool  flowState,
bool  isTweakable,
bool  hideFlow,
bool  isVisible,
PartResource.FlowMode  flow 
)
inline
void PartResourceList.Clear ( )
inline
bool PartResourceList.Contains ( string  name)
inline
bool PartResourceList.Contains ( int  id)
inline
PartResource PartResourceList.Get ( string  name)
inline
PartResource PartResourceList.Get ( int  id)
inline
bool PartResourceList.GetAll ( List< PartResource sources,
int  id 
)
inline

Places all PartResource with matching id into sources list. NOTE: Does not clear list. Returns true iff one was found.

Parameters
sources
id
bool PartResourceList.GetAllFlowing ( List< PartResource sources,
int  id 
)
inline

Places all PartResource with matching id and valid flowstate into sources list. NOTE: Does not clear list. Returns true iff one was found.

Parameters
sources
id
IEnumerator<PartResource> PartResourceList.GetEnumerator ( )
inline
PartResource PartResourceList.GetFlowing ( int  id,
bool  pulling 
)
inline
void PartResourceList.GetFlowingTotals ( int  id,
out double  amount,
out double  maxAmount,
bool  pulling 
)
inline
bool PartResourceList.HasFlowable ( )
inline
bool PartResourceList.HasFlowableUnhidden ( )
inline
void PartResourceList.RefreshSimulationListAmounts ( PartResourceList  refList)
inline
bool PartResourceList.Remove ( PartResource  res)
inline
bool PartResourceList.Remove ( string  resName)
inline
bool PartResourceList.Remove ( int  resID)
inline

Member Data Documentation

DictionaryValueList<int, PartResource> PartResourceList.dict

Property Documentation

int PartResourceList.Count
get
bool PartResourceList.IsValid
get
PartResource PartResourceList.this[int index]
get
PartResource PartResourceList.this[string name]
get

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