Contracts¶
-
type 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.
-
krpc_error_t krpc_SpaceCenter_ContractManager_AllContracts(krpc_connection_t connection, krpc_list_object_t *result)¶
A list of all contracts.
-
krpc_error_t krpc_SpaceCenter_ContractManager_ActiveContracts(krpc_connection_t connection, krpc_list_object_t *result)¶
A list of all active contracts.
-
krpc_error_t krpc_SpaceCenter_ContractManager_OfferedContracts(krpc_connection_t connection, krpc_list_object_t *result)¶
A list of all offered, but unaccepted, contracts.
-
krpc_error_t krpc_SpaceCenter_ContractManager_CompletedContracts(krpc_connection_t connection, krpc_list_object_t *result)¶
A list of all completed contracts.
-
krpc_error_t krpc_SpaceCenter_ContractManager_FailedContracts(krpc_connection_t connection, krpc_list_object_t *result)¶
A list of all failed contracts.
-
krpc_error_t krpc_SpaceCenter_ContractManager_Types(krpc_connection_t connection, krpc_set_string_t *result)¶
-
type 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.
-
krpc_error_t krpc_SpaceCenter_Contract_Title(krpc_connection_t connection, char **result)¶
Title of the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_Description(krpc_connection_t connection, char **result)¶
Description of the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_Notes(krpc_connection_t connection, char **result)¶
Notes for the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_Synopsis(krpc_connection_t connection, char **result)¶
Synopsis for the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_Keywords(krpc_connection_t connection, krpc_list_string_t *result)¶
Keywords for the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_State(krpc_connection_t connection, krpc_SpaceCenter_ContractState_t *result)¶
State of the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_Seen(krpc_connection_t connection, bool *result)¶
Whether the contract has been seen.
-
krpc_error_t krpc_SpaceCenter_Contract_Read(krpc_connection_t connection, bool *result)¶
Whether the contract has been read.
-
krpc_error_t krpc_SpaceCenter_Contract_Active(krpc_connection_t connection, bool *result)¶
Whether the contract is active.
-
krpc_error_t krpc_SpaceCenter_Contract_Failed(krpc_connection_t connection, bool *result)¶
Whether the contract has been failed.
-
krpc_error_t krpc_SpaceCenter_Contract_CanBeCanceled(krpc_connection_t connection, bool *result)¶
Whether the contract can be canceled.
-
krpc_error_t krpc_SpaceCenter_Contract_CanBeDeclined(krpc_connection_t connection, bool *result)¶
Whether the contract can be declined.
-
krpc_error_t krpc_SpaceCenter_Contract_CanBeFailed(krpc_connection_t connection, bool *result)¶
Whether the contract can be failed.
-
krpc_error_t krpc_SpaceCenter_Contract_Accept(krpc_connection_t connection)¶
Accept an offered contract.
-
krpc_error_t krpc_SpaceCenter_Contract_Cancel(krpc_connection_t connection)¶
Cancel an active contract.
-
krpc_error_t krpc_SpaceCenter_Contract_Decline(krpc_connection_t connection)¶
Decline an offered contract.
-
krpc_error_t krpc_SpaceCenter_Contract_FundsAdvance(krpc_connection_t connection, double *result)¶
Funds received when accepting the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_FundsCompletion(krpc_connection_t connection, double *result)¶
Funds received on completion of the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_FundsFailure(krpc_connection_t connection, double *result)¶
Funds lost if the contract is failed.
-
krpc_error_t krpc_SpaceCenter_Contract_ReputationCompletion(krpc_connection_t connection, double *result)¶
Reputation gained on completion of the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_ReputationFailure(krpc_connection_t connection, double *result)¶
Reputation lost if the contract is failed.
-
krpc_error_t krpc_SpaceCenter_Contract_ScienceCompletion(krpc_connection_t connection, double *result)¶
Science gained on completion of the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_Parameters(krpc_connection_t connection, krpc_list_object_t *result)¶
Parameters for the contract.
-
krpc_error_t krpc_SpaceCenter_Contract_Type(krpc_connection_t connection, char **result)¶
-
type 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_CONTRACTSTATE_ACTIVE¶
-
type 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.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_Notes(krpc_connection_t connection, char **result)¶
Notes for the parameter.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_Children(krpc_connection_t connection, krpc_list_object_t *result)¶
Child contract parameters.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_Completed(krpc_connection_t connection, bool *result)¶
Whether the parameter has been completed.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_Failed(krpc_connection_t connection, bool *result)¶
Whether the parameter has been failed.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_Optional(krpc_connection_t connection, bool *result)¶
Whether the contract parameter is optional.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_FundsCompletion(krpc_connection_t connection, double *result)¶
Funds received on completion of the contract parameter.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_FundsFailure(krpc_connection_t connection, double *result)¶
Funds lost if the contract parameter is failed.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_ReputationCompletion(krpc_connection_t connection, double *result)¶
Reputation gained on completion of the contract parameter.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_ReputationFailure(krpc_connection_t connection, double *result)¶
Reputation lost if the contract parameter is failed.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_ScienceCompletion(krpc_connection_t connection, double *result)¶
Science gained on completion of the contract parameter.
-
krpc_error_t krpc_SpaceCenter_ContractParameter_Title(krpc_connection_t connection, char **result)¶