C# Class kOS.Execution.TransferManager

Inheritance: IFixedUpdateObserver
Mostra file Open project: KSP-KOS/KOS Class Usage Examples

Public Methods

Method Description
CreateTransfer ( PartResourceDefinition resourceInfo, object transferTo, object transferFrom ) : ResourceTransferValue
CreateTransfer ( PartResourceDefinition resourceInfo, object transferTo, object transferFrom, double amount ) : ResourceTransferValue
Dispose ( ) : void
KOSFixedUpdate ( double deltaTime ) : void
ParseResource ( string resourceName ) : PartResourceDefinition
ReregisterTransfer ( ResourceTransferValue resourceTransferValue ) : void
TransferManager ( kOS.Safe.SharedObjects shared ) : System

Method Details

CreateTransfer() public method

public CreateTransfer ( PartResourceDefinition resourceInfo, object transferTo, object transferFrom ) : ResourceTransferValue
resourceInfo PartResourceDefinition
transferTo object
transferFrom object
return kOS.Suffixed.ResourceTransferValue

CreateTransfer() public method

public CreateTransfer ( PartResourceDefinition resourceInfo, object transferTo, object transferFrom, double amount ) : ResourceTransferValue
resourceInfo PartResourceDefinition
transferTo object
transferFrom object
amount double
return kOS.Suffixed.ResourceTransferValue

Dispose() public method

public Dispose ( ) : void
return void

KOSFixedUpdate() public method

public KOSFixedUpdate ( double deltaTime ) : void
deltaTime double
return void

ParseResource() public static method

public static ParseResource ( string resourceName ) : PartResourceDefinition
resourceName string
return PartResourceDefinition

ReregisterTransfer() public method

public ReregisterTransfer ( ResourceTransferValue resourceTransferValue ) : void
resourceTransferValue kOS.Suffixed.ResourceTransferValue
return void

TransferManager() public method

public TransferManager ( kOS.Safe.SharedObjects shared ) : System
shared kOS.Safe.SharedObjects
return System