![]() |
Kerbal Space Program
1.12.4
|
Represents the saved state of a part resource More...
Public Member Functions | |
| AvailablePart.ResourceInfo | GetCurrentResourceInfo () |
| Obtains the up-to-date resource information More... | |
| void | Load (Part hostPart) |
| ProtoPartResourceSnapshot (PartResource resource) | |
| ProtoPartResourceSnapshot (ConfigNode node) | |
| void | Save (ConfigNode node) |
| void | UpdateConfigNodeAmounts () |
Public Attributes | |
| double | amount |
| Current amount of resource More... | |
| bool | flowState |
| Flow state of the resource More... | |
| double | maxAmount |
| Max amount of resource More... | |
| string | resourceName |
| The name of the resource More... | |
| PartResource | resourceRef |
| Reference to the resource's PartResource More... | |
Protected Attributes | |
| ConfigNode | resourceValues |
Properties | |
| PartResourceDefinition | definition [get, set] |
Represents the saved state of a part resource
|
inline |
|
inline |
|
inline |
Obtains the up-to-date resource information
|
inline |
|
inline |
|
inline |
| double ProtoPartResourceSnapshot.amount |
Current amount of resource
| bool ProtoPartResourceSnapshot.flowState |
Flow state of the resource
| double ProtoPartResourceSnapshot.maxAmount |
Max amount of resource
| string ProtoPartResourceSnapshot.resourceName |
The name of the resource
| PartResource ProtoPartResourceSnapshot.resourceRef |
Reference to the resource's PartResource
|
protected |
|
getset |
1.8.7