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

Upgrade holder. More...

Public Member Functions

virtual void AddUsedBy (Part p, PartModule m)
 Adds the partmodule (and part it is on) to the list of modules that implement this upgrade. More...
 
virtual ListDictionary< Part,
PartModule
GetUsedBy ()
 Return the set of parts and their modules that implement the upgrade. More...
 
virtual List< string[]> GetUsedByStrings ()
 Returns a list of string pairs. The first is the part title, the second is the list of partmodule titles implementing the upgrade and the upgrade's description in that module (if any) More...
 
virtual bool IsUsed ()
 Returns true iff at least one module on one part uses this upgrade More...
 
virtual void SetFromInfo (ConfigNode node)
 Construct the Upgrade from the PARTUPGRADE confignode. More...
 
virtual void SetFromUntrackedUpgrade (AvailablePart ap, ConfigNode node)
 Set from an UPGRADE node in a PartModule, when there is no PARTUPGRADE describing it. More...
 

Public Attributes

string basicInfo
 
float cost = 0f
 
bool cumulativeCost = false
 
string description
 
float entryCost = 0f
 
ListDictionary< Part, PartModuleinstances = new ListDictionary<Part, PartModule>()
 
string manufacturer
 
string name
 
string partIcon
 The availablePart whose icon should be used. More...
 
string techRequired
 
string title
 

Detailed Description

Upgrade holder.

Member Function Documentation

virtual void PartUpgradeHandler.Upgrade.AddUsedBy ( Part  p,
PartModule  m 
)
inlinevirtual

Adds the partmodule (and part it is on) to the list of modules that implement this upgrade.

Parameters
p
m
virtual ListDictionary<Part, PartModule> PartUpgradeHandler.Upgrade.GetUsedBy ( )
inlinevirtual

Return the set of parts and their modules that implement the upgrade.

Returns
virtual List<string[]> PartUpgradeHandler.Upgrade.GetUsedByStrings ( )
inlinevirtual

Returns a list of string pairs. The first is the part title, the second is the list of partmodule titles implementing the upgrade and the upgrade's description in that module (if any)

Returns
virtual bool PartUpgradeHandler.Upgrade.IsUsed ( )
inlinevirtual

Returns true iff at least one module on one part uses this upgrade

Returns
virtual void PartUpgradeHandler.Upgrade.SetFromInfo ( ConfigNode  node)
inlinevirtual

Construct the Upgrade from the PARTUPGRADE confignode.

Parameters
node
virtual void PartUpgradeHandler.Upgrade.SetFromUntrackedUpgrade ( AvailablePart  ap,
ConfigNode  node 
)
inlinevirtual

Set from an UPGRADE node in a PartModule, when there is no PARTUPGRADE describing it.

Parameters
ap
node

Member Data Documentation

string PartUpgradeHandler.Upgrade.basicInfo
float PartUpgradeHandler.Upgrade.cost = 0f
bool PartUpgradeHandler.Upgrade.cumulativeCost = false
string PartUpgradeHandler.Upgrade.description
float PartUpgradeHandler.Upgrade.entryCost = 0f
ListDictionary<Part, PartModule> PartUpgradeHandler.Upgrade.instances = new ListDictionary<Part, PartModule>()
string PartUpgradeHandler.Upgrade.manufacturer
string PartUpgradeHandler.Upgrade.name
string PartUpgradeHandler.Upgrade.partIcon

The availablePart whose icon should be used.

string PartUpgradeHandler.Upgrade.techRequired
string PartUpgradeHandler.Upgrade.title

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