KRPC¶
Service KRPC
Main kRPC service, used by clients to interact with basic server functionality.
- krpc_error_t krpc_KRPC_GetClientID(krpc_connection_t connection, krpc_bytes_t *result)¶
Returns the identifier for the current client.
- krpc_error_t krpc_KRPC_GetClientName(krpc_connection_t connection, char **result)¶
Returns the name of the current client. This is an empty string if the client has no name.
- krpc_error_t krpc_KRPC_Clients(krpc_connection_t connection, krpc_list_tuple_bytes_string_string_t *result)¶
A list of RPC clients that are currently connected to the server. Each entry in the list is a clients identifier, name and address.
- krpc_error_t krpc_KRPC_GetStatus(krpc_connection_t connection, krpc_schema_Status *result)¶
Returns some information about the server, such as the version.
- krpc_error_t krpc_KRPC_GetServices(krpc_connection_t connection, krpc_schema_Services *result)¶
Returns information on all services, procedures, classes, properties etc. provided by the server. Can be used by client libraries to automatically create functionality such as stubs.
- krpc_error_t krpc_KRPC_CurrentGameScene(krpc_connection_t connection, krpc_KRPC_GameScene_t *result)¶
Get the current game scene.
- krpc_error_t krpc_KRPC_Paused(krpc_connection_t connection, bool *result)¶
- void krpc_KRPC_set_Paused(bool value)¶
Whether the game is paused.
-
type krpc_KRPC_GameScene_t¶
The game scene. See
krpc_KRPC_CurrentGameScene()
.-
KRPC_KRPC_GAMESCENE_SPACECENTER¶
The game scene showing the Kerbal Space Center buildings.
-
KRPC_KRPC_GAMESCENE_FLIGHT¶
The game scene showing a vessel in flight (or on the launchpad/runway).
-
KRPC_KRPC_GAMESCENE_TRACKINGSTATION¶
The tracking station.
-
KRPC_KRPC_GAMESCENE_EDITORVAB¶
The Vehicle Assembly Building.
-
KRPC_KRPC_GAMESCENE_EDITORSPH¶
The Space Plane Hangar.
-
KRPC_KRPC_GAMESCENE_SPACECENTER¶
Exception class InvalidOperationException
A method call was made to a method that is invalid given the current state of the object.
Exception class ArgumentException
A method was invoked where at least one of the passed arguments does not meet the parameter specification of the method.
Exception class ArgumentNullException
A null reference was passed to a method that does not accept it as a valid argument.
Exception class ArgumentOutOfRangeException
The value of an argument is outside the allowable range of values as defined by the invoked method.