KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Properties | List of all members
PartResourceDefinition Class Reference

A PartResourceDefinition contains the basic information defining a type of resource. More...

Public Member Functions

 PartResourceDefinition ()
 
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 

Properties

float density [get]
 The mass of this resource, per unit. This is not necessarily per unit volume, as resources don't have defined volumes. Instead resource "density" is the mass of one units of the resourc.e More...
 
int id [get]
 The integer ID of this resource type. More...
 
string name [get]
 The string ID of this resource type More...
 
ResourceFlowMode resourceFlowMode [get]
 How this resource does or does not flow between parts on a ship in response to resource requests by engines and the like. More...
 
ResourceTransferMode resourceTransferMode [get]
 How this resource does or does not flow when using the resource transfer function? More...
 

Detailed Description

A PartResourceDefinition contains the basic information defining a type of resource.

Constructor & Destructor Documentation

PartResourceDefinition.PartResourceDefinition ( )

Member Function Documentation

void PartResourceDefinition.Load ( ConfigNode  node)
void PartResourceDefinition.Save ( ConfigNode  node)

Property Documentation

float PartResourceDefinition.density
get

The mass of this resource, per unit. This is not necessarily per unit volume, as resources don't have defined volumes. Instead resource "density" is the mass of one units of the resourc.e

int PartResourceDefinition.id
get

The integer ID of this resource type.

string PartResourceDefinition.name
get

The string ID of this resource type

ResourceFlowMode PartResourceDefinition.resourceFlowMode
get

How this resource does or does not flow between parts on a ship in response to resource requests by engines and the like.

ResourceTransferMode PartResourceDefinition.resourceTransferMode
get

How this resource does or does not flow when using the resource transfer function?


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