Contracts

krpc_SpaceCenter_ContractManager_t

Contracts manager. Obtained by calling krpc_SpaceCenter_ContractManager().

krpc_error_t krpc_SpaceCenter_ContractManager_Types(krpc_connection_t connection, krpc_set_string_t * result)

A list of all contract types.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractManager_AllContracts(krpc_connection_t connection, krpc_list_object_t * result)

A list of all contracts.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractManager_ActiveContracts(krpc_connection_t connection, krpc_list_object_t * result)

A list of all active contracts.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractManager_OfferedContracts(krpc_connection_t connection, krpc_list_object_t * result)

A list of all offered, but unaccepted, contracts.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractManager_CompletedContracts(krpc_connection_t connection, krpc_list_object_t * result)

A list of all completed contracts.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractManager_FailedContracts(krpc_connection_t connection, krpc_list_object_t * result)

A list of all failed contracts.

Game Scenes:All
krpc_SpaceCenter_Contract_t

A contract. Can be accessed using krpc_SpaceCenter_ContractManager().

krpc_error_t krpc_SpaceCenter_Contract_Type(krpc_connection_t connection, char * * result)

Type of the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Title(krpc_connection_t connection, char * * result)

Title of the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Description(krpc_connection_t connection, char * * result)

Description of the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Notes(krpc_connection_t connection, char * * result)

Notes for the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Synopsis(krpc_connection_t connection, char * * result)

Synopsis for the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Keywords(krpc_connection_t connection, krpc_list_string_t * result)

Keywords for the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_State(krpc_connection_t connection, krpc_SpaceCenter_ContractState_t * result)

State of the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Seen(krpc_connection_t connection, bool * result)

Whether the contract has been seen.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Read(krpc_connection_t connection, bool * result)

Whether the contract has been read.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Active(krpc_connection_t connection, bool * result)

Whether the contract is active.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Failed(krpc_connection_t connection, bool * result)

Whether the contract has been failed.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_CanBeCanceled(krpc_connection_t connection, bool * result)

Whether the contract can be canceled.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_CanBeDeclined(krpc_connection_t connection, bool * result)

Whether the contract can be declined.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_CanBeFailed(krpc_connection_t connection, bool * result)

Whether the contract can be failed.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Accept(krpc_connection_t connection)

Accept an offered contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Cancel(krpc_connection_t connection)

Cancel an active contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Decline(krpc_connection_t connection)

Decline an offered contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_FundsAdvance(krpc_connection_t connection, double * result)

Funds received when accepting the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_FundsCompletion(krpc_connection_t connection, double * result)

Funds received on completion of the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_FundsFailure(krpc_connection_t connection, double * result)

Funds lost if the contract is failed.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_ReputationCompletion(krpc_connection_t connection, double * result)

Reputation gained on completion of the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_ReputationFailure(krpc_connection_t connection, double * result)

Reputation lost if the contract is failed.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_ScienceCompletion(krpc_connection_t connection, double * result)

Science gained on completion of the contract.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_Contract_Parameters(krpc_connection_t connection, krpc_list_object_t * result)

Parameters for the contract.

Game Scenes:All
krpc_SpaceCenter_ContractState_t

The state of a contract. See krpc_SpaceCenter_Contract_State().

KRPC_SPACECENTER_CONTRACTSTATE_ACTIVE

The contract is active.

KRPC_SPACECENTER_CONTRACTSTATE_CANCELED

The contract has been canceled.

KRPC_SPACECENTER_CONTRACTSTATE_COMPLETED

The contract has been completed.

KRPC_SPACECENTER_CONTRACTSTATE_DEADLINEEXPIRED

The deadline for the contract has expired.

KRPC_SPACECENTER_CONTRACTSTATE_DECLINED

The contract has been declined.

KRPC_SPACECENTER_CONTRACTSTATE_FAILED

The contract has been failed.

KRPC_SPACECENTER_CONTRACTSTATE_GENERATED

The contract has been generated.

KRPC_SPACECENTER_CONTRACTSTATE_OFFERED

The contract has been offered to the player.

KRPC_SPACECENTER_CONTRACTSTATE_OFFEREXPIRED

The contract was offered to the player, but the offer expired.

KRPC_SPACECENTER_CONTRACTSTATE_WITHDRAWN

The contract has been withdrawn.

krpc_SpaceCenter_ContractParameter_t

A contract parameter. See krpc_SpaceCenter_Contract_Parameters().

krpc_error_t krpc_SpaceCenter_ContractParameter_Title(krpc_connection_t connection, char * * result)

Title of the parameter.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_Notes(krpc_connection_t connection, char * * result)

Notes for the parameter.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_Children(krpc_connection_t connection, krpc_list_object_t * result)

Child contract parameters.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_Completed(krpc_connection_t connection, bool * result)

Whether the parameter has been completed.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_Failed(krpc_connection_t connection, bool * result)

Whether the parameter has been failed.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_Optional(krpc_connection_t connection, bool * result)

Whether the contract parameter is optional.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_FundsCompletion(krpc_connection_t connection, double * result)

Funds received on completion of the contract parameter.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_FundsFailure(krpc_connection_t connection, double * result)

Funds lost if the contract parameter is failed.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_ReputationCompletion(krpc_connection_t connection, double * result)

Reputation gained on completion of the contract parameter.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_ReputationFailure(krpc_connection_t connection, double * result)

Reputation lost if the contract parameter is failed.

Game Scenes:All
krpc_error_t krpc_SpaceCenter_ContractParameter_ScienceCompletion(krpc_connection_t connection, double * result)

Science gained on completion of the contract parameter.

Game Scenes:All