Table of Contents

Class PartResource

Namespace
KSP.Sim
Assembly
Assembly-CSharp.dll
public class PartResource
Inheritance
PartResource
Inherited Members
Extension Methods

Constructors

PartResource()

public PartResource()

Fields

info

public PartResourceDefinition info

Field Value

PartResourceDefinition

resourceData

public PartResourceData resourceData

Field Value

PartResourceData

resourceName

public string resourceName

Field Value

string

uiState

public PartResourceUIState uiState

Field Value

PartResourceUIState

Properties

amount

public double amount { get; set; }

Property Value

double

flowMode

public PartResource.FlowMode flowMode { get; set; }

Property Value

PartResource.FlowMode

flowState

public bool flowState { get; set; }

Property Value

bool

hideFlow

public bool hideFlow { get; set; }

Property Value

bool

isTweakable

public bool isTweakable { get; set; }

Property Value

bool

isVisible

public bool isVisible { get; set; }

Property Value

bool

maxAmount

public double maxAmount { get; set; }

Property Value

double

maxLocked

public bool maxLocked { get; set; }

Property Value

bool

type

public ResourceType type { get; set; }

Property Value

ResourceType

Methods

CanProvide(bool)

public bool CanProvide(bool pulling)

Parameters

pulling bool

Returns

bool

CanProvide(double)

public bool CanProvide(double demand)

Parameters

demand double

Returns

bool

Copy(PartResource)

public void Copy(PartResource res)

Parameters

res PartResource

Flowing(bool)

public bool Flowing(bool pulling)

Parameters

pulling bool

Returns

bool

GetInfo()

public string GetInfo()

Returns

string

SetInfo(PartResourceDefinition)

public void SetInfo(PartResourceDefinition info)

Parameters

info PartResourceDefinition