C# Class kOS.CPU

Inheritance: kOS.ExecutionContext
Exibir arquivo Open project: Nivekk/KOS Class Usage Examples

Public Properties

Property Type Description
ButtonStates kOS.TerminalButton[]
ClockSpeed int
Context String
FUNCTION_BUTTON_COUNT int
InternalDisplayEnabled bool
Mode Modes
Parent object
RunType kOSRunType
SessionTime float
archive Archive
bindingManager BindingManager

Public Methods

Method Description
AttachHardDisk ( Harddisk hardDisk ) : void
Boot ( ) : void
CPU ( object parent, string context ) : System
CallExternalFunction ( string name, string parameters ) : object
CreateBoundVariable ( string varName ) : BoundVariable
FindExternalFunction ( string name ) : bool
GetVolumeBestIdentifier ( Volume SelectedVolume ) : string
IsAlive ( ) : bool
OnLoad ( ConfigNode node ) : void
OnSave ( ConfigNode node ) : void
RegisterkOSExternalFunction ( String name, object parent, String methodName, int parameterCount ) : void
RegisterkOSExternalFunction ( object parameters ) : void
SendMessage ( SystemMessage message ) : void
SwitchToVolume ( int volID ) : bool
SwitchToVolume ( string targetVolume ) : bool
Update ( float time ) : void
VerifyMount ( ) : void
testFunction ( double x, double y ) : double

Private Methods

Method Description
ProcessElectricity ( Part part, float time ) : void
UpdateVolumeMounts ( List attachedVolumes ) : void

Method Details

AttachHardDisk() public method

public AttachHardDisk ( Harddisk hardDisk ) : void
hardDisk Harddisk
return void

Boot() public method

public Boot ( ) : void
return void

CPU() public method

public CPU ( object parent, string context ) : System
parent object
context string
return System

CallExternalFunction() public method

public CallExternalFunction ( string name, string parameters ) : object
name string
parameters string
return object

CreateBoundVariable() public method

public CreateBoundVariable ( string varName ) : BoundVariable
varName string
return BoundVariable

FindExternalFunction() public method

public FindExternalFunction ( string name ) : bool
name string
return bool

GetVolumeBestIdentifier() public method

public GetVolumeBestIdentifier ( Volume SelectedVolume ) : string
SelectedVolume Volume
return string

IsAlive() public method

public IsAlive ( ) : bool
return bool

OnLoad() public method

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

OnSave() public method

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

RegisterkOSExternalFunction() public method

public RegisterkOSExternalFunction ( String name, object parent, String methodName, int parameterCount ) : void
name String
parent object
methodName String
parameterCount int
return void

RegisterkOSExternalFunction() public method

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

SendMessage() public method

public SendMessage ( SystemMessage message ) : void
message SystemMessage
return void

SwitchToVolume() public method

public SwitchToVolume ( int volID ) : bool
volID int
return bool

SwitchToVolume() public method

public SwitchToVolume ( string targetVolume ) : bool
targetVolume string
return bool

Update() public method

public Update ( float time ) : void
time float
return void

VerifyMount() public method

public VerifyMount ( ) : void
return void

testFunction() public method

public testFunction ( double x, double y ) : double
x double
y double
return double

Property Details

ButtonStates public_oe property

public TerminalButton[],kOS ButtonStates
return kOS.TerminalButton[]

ClockSpeed public_oe property

public int ClockSpeed
return int

Context public_oe property

public String Context
return String

FUNCTION_BUTTON_COUNT public_oe static_oe property

public static int FUNCTION_BUTTON_COUNT
return int

InternalDisplayEnabled public_oe property

public bool InternalDisplayEnabled
return bool

Mode public_oe property

public Modes Mode
return Modes

Parent public_oe property

public object Parent
return object

RunType public_oe static_oe property

public static kOSRunType RunType
return kOSRunType

SessionTime public_oe property

public float SessionTime
return float

archive public_oe property

public Archive,kOS archive
return Archive

bindingManager public_oe property

public BindingManager,kOS bindingManager
return BindingManager