C# Class kOS.Module.kOSProcessor

Inheritance: PartModule
Show file Open project: KSP-KOS/KOS Class Usage Examples

Public Methods

Method Description
AllInstances ( ) : List

Return a list of all existing runtime instances of this PartModule. The list is guaranteed to be ordered by the Vessel that it's on. (i.e. all the instances of no vessel are first ,then all the module instances on vessel A, then all the instances on vessel B, and so on)

AssignNewId ( ) : int
CheckCanBoot ( ) : bool
CloseWindow ( ) : void
ExecuteInterProcCommand ( kOS.InterProcessor.InterProcCommand command ) : void
FixedUpdate ( ) : void
GetInfo ( ) : string
GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
GetModuleCostChangeWhen ( ) : ModifierChangeWhen
GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
GetModuleMassChangeWhen ( ) : ModifierChangeWhen
GetScreen ( ) : IScreenBuffer
GetWindow ( ) : Screen.TermWindow
InitObjects ( ) : void
OnAwake ( ) : void
OnFixedUpdate ( ) : void
OnInactive ( ) : void
OnLoad ( ConfigNode node ) : void
OnSave ( ConfigNode node ) : void
OnStart ( StartState state ) : void
OpenWindow ( ) : void
PartIsKosProc ( Part input, kOSProcessor &proc ) : bool
RegisterkOSExternalFunction ( object parameters ) : void
Send ( Structure content ) : void
SetAutopilotMode ( int mode ) : void
SetMode ( ProcessorModes newProcessorMode ) : void
TelnetIsAttached ( ) : bool
ToggleWindow ( ) : void
Update ( ) : void
UpdateParts ( ) : void
WindowIsOpen ( ) : bool
kOSProcessor ( ) : System

Private Methods

Method Description
Activate ( ) : void
Activate ( KSPActionParam param ) : void
BootDirectoryFiles ( ) : IEnumerable
Deactivate ( KSPActionParam param ) : void
InitProcessorTracking ( ) : void
InitUI ( ) : void
IsAlive ( ) : bool
OnDestroyingMyHardware ( Part p ) : void
ProcessElectricity ( Part partObj, float time ) : void
ProcessorModeChanged ( ) : void
Toggle ( KSPActionParam param ) : void
TogglePower ( ) : void
TogglePower ( KSPActionParam param ) : void
UpdateCostAndMass ( ) : void
UpdateFixedObservers ( ) : void
UpdateObservers ( ) : void
UpdateVessel ( ) : void

Method Details

AllInstances() public static method

Return a list of all existing runtime instances of this PartModule. The list is guaranteed to be ordered by the Vessel that it's on. (i.e. all the instances of no vessel are first ,then all the module instances on vessel A, then all the instances on vessel B, and so on)
public static AllInstances ( ) : List
return List

AssignNewId() public static method

public static AssignNewId ( ) : int
return int

CheckCanBoot() public method

public CheckCanBoot ( ) : bool
return bool

CloseWindow() public method

public CloseWindow ( ) : void
return void

ExecuteInterProcCommand() public method

public ExecuteInterProcCommand ( kOS.InterProcessor.InterProcCommand command ) : void
command kOS.InterProcessor.InterProcCommand
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

GetInfo() public method

public GetInfo ( ) : string
return string

GetModuleCost() public method

public GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
defaultCost float
sit ModifierStagingSituation
return float

GetModuleCostChangeWhen() public method

public GetModuleCostChangeWhen ( ) : ModifierChangeWhen
return ModifierChangeWhen

GetModuleMass() public method

public GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
defaultMass float
sit ModifierStagingSituation
return float

GetModuleMassChangeWhen() public method

public GetModuleMassChangeWhen ( ) : ModifierChangeWhen
return ModifierChangeWhen

GetScreen() public method

public GetScreen ( ) : IScreenBuffer
return IScreenBuffer

GetWindow() public method

public GetWindow ( ) : Screen.TermWindow
return Screen.TermWindow

InitObjects() public method

public InitObjects ( ) : void
return void

OnAwake() public method

public OnAwake ( ) : void
return void

OnFixedUpdate() public method

public OnFixedUpdate ( ) : void
return void

OnInactive() public method

public OnInactive ( ) : void
return void

OnLoad() public method

public OnLoad ( ConfigNode node ) : void
node ConfigNode
return void

OnSave() public method

public OnSave ( ConfigNode node ) : void
node ConfigNode
return void

OnStart() public method

public OnStart ( StartState state ) : void
state StartState
return void

OpenWindow() public method

public OpenWindow ( ) : void
return void

PartIsKosProc() public method

public PartIsKosProc ( Part input, kOSProcessor &proc ) : bool
input Part
proc kOSProcessor
return bool

RegisterkOSExternalFunction() public method

public RegisterkOSExternalFunction ( object parameters ) : void
parameters object
return void

Send() public method

public Send ( Structure content ) : void
content Structure
return void

SetAutopilotMode() public method

public SetAutopilotMode ( int mode ) : void
mode int
return void

SetMode() public method

public SetMode ( ProcessorModes newProcessorMode ) : void
newProcessorMode ProcessorModes
return void

TelnetIsAttached() public method

public TelnetIsAttached ( ) : bool
return bool

ToggleWindow() public method

public ToggleWindow ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateParts() public method

public UpdateParts ( ) : void
return void

WindowIsOpen() public method

public WindowIsOpen ( ) : bool
return bool

kOSProcessor() public method

public kOSProcessor ( ) : System
return System