A PartResource object represents the store of a single type of resource within a Part. More...
Public Types | |
| enum | FlowMode { FlowMode.Both = 0, FlowMode.Out = 1, FlowMode.In = 2, FlowMode.None = 3 } |
Public Member Functions | |
| PartResource () | |
| string | GetInfo () |
| void | Load (ConfigNode node) |
| void | Save (ConfigNode node) |
| void | SetInfo (PartResourceDefinition info) |
Public Attributes | |
| double | amount |
| How much of the resource is in this part, in whatever units the resource uses. More... | |
| PartResource.FlowMode | flowMode |
| bool | flowState |
| PartResourceDefinition | info |
| The definition of this type of resource, which contains all information about this resource type. More... | |
| double | maxAmount |
| The maximum amount of this resource that this part can hold. More... | |
| Part | part |
| The part whose stored resource this object represents More... | |
| string | resourceName |
| The name of this resource, as a string, e.g. "ElectricCharge" More... | |
A PartResource object represents the store of a single type of resource within a Part.
| PartResource.PartResource | ( | ) |
| string PartResource.GetInfo | ( | ) |
| void PartResource.Load | ( | ConfigNode | node | ) |
| void PartResource.Save | ( | ConfigNode | node | ) |
| void PartResource.SetInfo | ( | PartResourceDefinition | info | ) |
| double PartResource.amount |
How much of the resource is in this part, in whatever units the resource uses.
| PartResource.FlowMode PartResource.flowMode |
| bool PartResource.flowState |
| PartResourceDefinition PartResource.info |
The definition of this type of resource, which contains all information about this resource type.
| double PartResource.maxAmount |
The maximum amount of this resource that this part can hold.
| Part PartResource.part |
The part whose stored resource this object represents
| string PartResource.resourceName |
The name of this resource, as a string, e.g. "ElectricCharge"
1.8.7