Contracts

class ContractManager

Contracts manager. Obtained by calling SpaceCenter.ContractManager.

ISet<String> Types { get; }

A list of all contract types.

Game Scenes:All
IList<Contract> AllContracts { get; }

A list of all contracts.

Game Scenes:All
IList<Contract> ActiveContracts { get; }

A list of all active contracts.

Game Scenes:All
IList<Contract> OfferedContracts { get; }

A list of all offered, but unaccepted, contracts.

Game Scenes:All
IList<Contract> CompletedContracts { get; }

A list of all completed contracts.

Game Scenes:All
IList<Contract> FailedContracts { get; }

A list of all failed contracts.

Game Scenes:All
class Contract

A contract. Can be accessed using SpaceCenter.ContractManager.

String Type { get; }

Type of the contract.

Game Scenes:All
String Title { get; }

Title of the contract.

Game Scenes:All
String Description { get; }

Description of the contract.

Game Scenes:All
String Notes { get; }

Notes for the contract.

Game Scenes:All
String Synopsis { get; }

Synopsis for the contract.

Game Scenes:All
IList<String> Keywords { get; }

Keywords for the contract.

Game Scenes:All
ContractState State { get; }

State of the contract.

Game Scenes:All
Boolean Seen { get; }

Whether the contract has been seen.

Game Scenes:All
Boolean Read { get; }

Whether the contract has been read.

Game Scenes:All
Boolean Active { get; }

Whether the contract is active.

Game Scenes:All
Boolean Failed { get; }

Whether the contract has been failed.

Game Scenes:All
Boolean CanBeCanceled { get; }

Whether the contract can be canceled.

Game Scenes:All
Boolean CanBeDeclined { get; }

Whether the contract can be declined.

Game Scenes:All
Boolean CanBeFailed { get; }

Whether the contract can be failed.

Game Scenes:All
void Accept ()

Accept an offered contract.

Game Scenes:All
void Cancel ()

Cancel an active contract.

Game Scenes:All
void Decline ()

Decline an offered contract.

Game Scenes:All
Double FundsAdvance { get; }

Funds received when accepting the contract.

Game Scenes:All
Double FundsCompletion { get; }

Funds received on completion of the contract.

Game Scenes:All
Double FundsFailure { get; }

Funds lost if the contract is failed.

Game Scenes:All
Double ReputationCompletion { get; }

Reputation gained on completion of the contract.

Game Scenes:All
Double ReputationFailure { get; }

Reputation lost if the contract is failed.

Game Scenes:All
Double ScienceCompletion { get; }

Science gained on completion of the contract.

Game Scenes:All
IList<ContractParameter> Parameters { get; }

Parameters for the contract.

Game Scenes:All
enum ContractState

The state of a contract. See Contract.State.

Active

The contract is active.

Canceled

The contract has been canceled.

Completed

The contract has been completed.

DeadlineExpired

The deadline for the contract has expired.

Declined

The contract has been declined.

Failed

The contract has been failed.

Generated

The contract has been generated.

Offered

The contract has been offered to the player.

OfferExpired

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

Withdrawn

The contract has been withdrawn.

class ContractParameter

A contract parameter. See Contract.Parameters.

String Title { get; }

Title of the parameter.

Game Scenes:All
String Notes { get; }

Notes for the parameter.

Game Scenes:All
IList<ContractParameter> Children { get; }

Child contract parameters.

Game Scenes:All
Boolean Completed { get; }

Whether the parameter has been completed.

Game Scenes:All
Boolean Failed { get; }

Whether the parameter has been failed.

Game Scenes:All
Boolean Optional { get; }

Whether the contract parameter is optional.

Game Scenes:All
Double FundsCompletion { get; }

Funds received on completion of the contract parameter.

Game Scenes:All
Double FundsFailure { get; }

Funds lost if the contract parameter is failed.

Game Scenes:All
Double ReputationCompletion { get; }

Reputation gained on completion of the contract parameter.

Game Scenes:All
Double ReputationFailure { get; }

Reputation lost if the contract parameter is failed.

Game Scenes:All
Double ScienceCompletion { get; }

Science gained on completion of the contract parameter.

Game Scenes:All