Class PartResourceDefinition
  
  
  
    - Namespace
 - KSP.Sim
 
  - Assembly
 - Assembly-CSharp.dll
 
   
  
  
  
    public class PartResourceDefinition
   
  
    - Inheritance
 
    - 
      
      
PartResourceDefinition
     
  
  
    - Inherited Members
 
    - 
    
    
    
    
    
    
    
  
 
  
    - Extension Methods
 
    - 
  
  
  
  
  
  
 
  Constructors
  
  
  PartResourceDefinition()
  
  
  
  
  
    public PartResourceDefinition()
   
  
  
  PartResourceDefinition(string)
  
  
  
  
  
    public PartResourceDefinition(string name)
   
  Parameters
  
    name string 
    
  
  
  
  PartResourceDefinition(string, Color)
  
  
  
  
  
    public PartResourceDefinition(string name, Color color)
   
  Parameters
  
    name string 
    
    color Color 
    
  
  Fields
  
  _abbreviation
  
  
  
  
  
    public string _abbreviation
   
  Field Value
  
    - string
 
    
  
  
  _color
  
  
  
  
  
  Field Value
  
    - Color
 
    
  
  
  _density
  
  
  
  
  
  Field Value
  
    - float
 
    
  
  
  _displayName
  
  
  
  
  
    public string _displayName
   
  Field Value
  
    - string
 
    
  
  
  _isTweakable
  
  
  
  
  
  Field Value
  
    - bool
 
    
  
  
  _isVisible
  
  
  
  
  
  Field Value
  
    - bool
 
    
  
  
  _name
  
  
  
  
  
  Field Value
  
    - string
 
    
  
  
  _resourceFlowMode
  
  
  
  
  
    public ResourceFlowMode _resourceFlowMode
   
  Field Value
  
    - ResourceFlowMode
 
    
  
  
  _resourceTransferMode
  
  
  
  
  
    public ResourceTransferMode _resourceTransferMode
   
  Field Value
  
    - ResourceTransferMode
 
    
  
  
  _specificHeatCapacity
  
  
  
  
  
    public float _specificHeatCapacity
   
  Field Value
  
    - float
 
    
  
  
  _type
  
  
  
  
  
    public ResourceType _type
   
  Field Value
  
    - ResourceType
 
    
  
  
  _unitCost
  
  
  
  
  
  Field Value
  
    - float
 
    
  
  
  _volume
  
  
  
  
  
  Field Value
  
    - float
 
    
  
  Properties
  
  
  abbreviation
  
  
  
  
  
    public string abbreviation { get; }
   
  Property Value
  
    - string
 
    
  
  
  
  color
  
  
  
  
  
    public Color color { get; }
   
  Property Value
  
    - Color
 
    
  
  
  
  density
  
  
  
  
  
    public float density { get; }
   
  Property Value
  
    - float
 
    
  
  
  
  displayName
  
  
  
  
  
    public string displayName { get; }
   
  Property Value
  
    - string
 
    
  
  
  
  id
  
  
  
  
  
  Property Value
  
    - int
 
    
  
  
  
  isTweakable
  
  
  
  
  
    public bool isTweakable { get; }
   
  Property Value
  
    - bool
 
    
  
  
  
  isVisible
  
  
  
  
  
    public bool isVisible { get; }
   
  Property Value
  
    - bool
 
    
  
  
  
  name
  
  
  
  
  
    public string name { get; }
   
  Property Value
  
    - string
 
    
  
  
  
  resourceFlowMode
  
  
  
  
  
    public ResourceFlowMode resourceFlowMode { get; }
   
  Property Value
  
    - ResourceFlowMode
 
    
  
  
  
  resourceTransferMode
  
  
  
  
  
    public ResourceTransferMode resourceTransferMode { get; }
   
  Property Value
  
    - ResourceTransferMode
 
    
  
  
  
  specificHeatCapacity
  
  
  
  
  
    public float specificHeatCapacity { get; }
   
  Property Value
  
    - float
 
    
  
  
  
  type
  
  
  
  
  
    public ResourceType type { get; }
   
  Property Value
  
    - ResourceType
 
    
  
  
  
  unitCost
  
  
  
  
  
    public float unitCost { get; }
   
  Property Value
  
    - float
 
    
  
  
  
  volume
  
  
  
  
  
    public float volume { get; }
   
  Property Value
  
    - float
 
    
  
  Methods
  
  
  GetShortName(int)
  
  
  
  
  
    public string GetShortName(int length = 2)
   
  Parameters
  
    length int 
    
  
  Returns
  
    - string