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

Classes

class  ModuleInfo
 
class  ResourceInfo
 

Public Member Functions

void AddFileTime (UrlDir.UrlFile file)
 
delegate int APEntryCostGetDelegate (AvailablePart ap)
 
 AvailablePart ()
 
 AvailablePart (string path)
 
 AvailablePart (AvailablePart ap)
 
PartVariant GetVariant (string variantName)
 Get the variant from the availablepart More...
 
void SetEntryCost (int cost)
 

Static Public Member Functions

static int _GetEntryCost (AvailablePart ap)
 

Public Attributes

int amountAvailable
 Amount of these parts in stock More...
 
string author
 The author's name, shown on parts list More...
 
string bulkheadProfiles
 Tags for this part's bulkhead (cross-section) profiles More...
 
PartCategories category
 The category this part will be shown under More...
 
string configFileFullName
 
float cost
 Cost of this part (by unit), this includes the price of resources as well. More...
 
bool costsFunds = true
 Used when purchasing to determine if should pay for it. Set only when you purchase another part and this part is in that part's identicalParts More...
 
string description
 A description for the part More...
 
List< string > fileTimes = new List<string>()
 
GameObject iconPrefab
 A reference to the icon prefab for instantiation More...
 
float iconScale
 The scale factor applied to this icon More...
 
string identicalParts
 what parts are identical to this and should unlock with this More...
 
ConfigNode internalConfig
 
string manufacturer
 The manufacturer's name, shown on the parts list More...
 
bool mapActionsToSymmetryParts
 Should we create action/axis mappings for symmetry parts when linking them in the editor More...
 
float minimumCost = 0f
 The minimum cost that this part can have after all modifiers and resource costs are applied More...
 
string moduleInfo
 The compiled module information More...
 
List< ModuleInfomoduleInfos
 
string name
 A string identifier for the part More...
 
ConfigNode partConfig
 
Part partPrefab
 A reference to the part prefab for instantiation More...
 
float partSize = 0
 Approximation of the visual size of the part More...
 
string partUrl
 The url of the part config More...
 
UrlDir.UrlConfig partUrlConfig
 
PreferredInitialStage preferredStage = PreferredInitialStage.DEFAULT
 Whats the preferred position for this part in the vessel stages, right now we have, FIRST, LAST and DEFAULT More...
 
string resourceInfo
 The compiled module information More...
 
List< ResourceInforesourceInfos
 
bool showVesselNaming
 Should we show the vessel naming option on the PAW More...
 
string tags
 This part's search tags More...
 
bool TechHidden
 Set this true to hide the part from the RnD view of the tech tree More...
 
string TechRequired
 The id of the technology required to make this part available for purchase. More...
 
string title
 The title that is shown on the parts list More...
 
string typeDescription
 A short description for the part More...
 
PartVariant variant
 This part's current variant (if available) More...
 

Static Public Attributes

static APEntryCostGetDelegate EntryCostGetter = _GetEntryCost
 

Protected Attributes

int _entryCost
 The Cost to purchase this part from RnD. More...
 

Properties

int entryCost [get]
 
Renderer[] iconRenderers [get]
 A cached array of the Renderers on the iconPrefab. More...
 
float MinimumMass [get, set]
 The minimum mass that this part can have after all mass modifiers are applied More...
 
float MinimumRBMass [get, set]
 The minimum rigidbody mass that this part can have after all mass modifiers are applied More...
 
string partPath [get, set]
 
List< PartVariantVariants [get]
 Get a list of Variants for this AvailablePart More...
 

Constructor & Destructor Documentation

AvailablePart.AvailablePart ( )
inline
AvailablePart.AvailablePart ( string  path)
inline
AvailablePart.AvailablePart ( AvailablePart  ap)
inline

Member Function Documentation

static int AvailablePart._GetEntryCost ( AvailablePart  ap)
inlinestatic
void AvailablePart.AddFileTime ( UrlDir.UrlFile  file)
inline
delegate int AvailablePart.APEntryCostGetDelegate ( AvailablePart  ap)
PartVariant AvailablePart.GetVariant ( string  variantName)
inline

Get the variant from the availablepart

Parameters
variantNameName of the variant
Returns
index of this variant or null
void AvailablePart.SetEntryCost ( int  cost)
inline

Member Data Documentation

int AvailablePart._entryCost
protected

The Cost to purchase this part from RnD.

int AvailablePart.amountAvailable

Amount of these parts in stock

string AvailablePart.author

The author's name, shown on parts list

string AvailablePart.bulkheadProfiles

Tags for this part's bulkhead (cross-section) profiles

PartCategories AvailablePart.category

The category this part will be shown under

string AvailablePart.configFileFullName
float AvailablePart.cost

Cost of this part (by unit), this includes the price of resources as well.

bool AvailablePart.costsFunds = true

Used when purchasing to determine if should pay for it. Set only when you purchase another part and this part is in that part's identicalParts

string AvailablePart.description

A description for the part

APEntryCostGetDelegate AvailablePart.EntryCostGetter = _GetEntryCost
static
List<string> AvailablePart.fileTimes = new List<string>()
GameObject AvailablePart.iconPrefab

A reference to the icon prefab for instantiation

float AvailablePart.iconScale

The scale factor applied to this icon

string AvailablePart.identicalParts

what parts are identical to this and should unlock with this

ConfigNode AvailablePart.internalConfig
string AvailablePart.manufacturer

The manufacturer's name, shown on the parts list

bool AvailablePart.mapActionsToSymmetryParts

Should we create action/axis mappings for symmetry parts when linking them in the editor

float AvailablePart.minimumCost = 0f

The minimum cost that this part can have after all modifiers and resource costs are applied

string AvailablePart.moduleInfo

The compiled module information

List<ModuleInfo> AvailablePart.moduleInfos
string AvailablePart.name

A string identifier for the part

ConfigNode AvailablePart.partConfig
Part AvailablePart.partPrefab

A reference to the part prefab for instantiation

float AvailablePart.partSize = 0

Approximation of the visual size of the part

string AvailablePart.partUrl

The url of the part config

UrlDir.UrlConfig AvailablePart.partUrlConfig
PreferredInitialStage AvailablePart.preferredStage = PreferredInitialStage.DEFAULT

Whats the preferred position for this part in the vessel stages, right now we have, FIRST, LAST and DEFAULT

string AvailablePart.resourceInfo

The compiled module information

List<ResourceInfo> AvailablePart.resourceInfos
bool AvailablePart.showVesselNaming

Should we show the vessel naming option on the PAW

string AvailablePart.tags

This part's search tags

bool AvailablePart.TechHidden

Set this true to hide the part from the RnD view of the tech tree

Used in conjunction with category = none to hide a part from any new vessels/builds while not affecting existing craft

string AvailablePart.TechRequired

The id of the technology required to make this part available for purchase.

string AvailablePart.title

The title that is shown on the parts list

string AvailablePart.typeDescription

A short description for the part

PartVariant AvailablePart.variant

This part's current variant (if available)

Property Documentation

int AvailablePart.entryCost
get
Renderer [] AvailablePart.iconRenderers
get

A cached array of the Renderers on the iconPrefab.

float AvailablePart.MinimumMass
getset

The minimum mass that this part can have after all mass modifiers are applied

Note: Will prevent ever setting to less than 0.0001 (cause negative mass does fun things to physics)

float AvailablePart.MinimumRBMass
getset

The minimum rigidbody mass that this part can have after all mass modifiers are applied

Note: Will prevent ever setting to less than 0.001 (cause negative mass does fun things to physics)

string AvailablePart.partPath
getset
List<PartVariant> AvailablePart.Variants
get

Get a list of Variants for this AvailablePart


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