feature: Add cooldown/navigation timers, move credits display to header

This commit is contained in:
Keith Solomon
2026-02-10 14:32:02 -06:00
parent 7c3e003088
commit 0f4e59f514
5 changed files with 587 additions and 34 deletions

View File

@@ -291,6 +291,33 @@ class SpacetradersApi {
);
}
/**
* Deliver cargo for a contract using a ship at the delivery destination.
*
* @param string $contractId The contract ID.
* @param string $shipSymbol The ship symbol delivering cargo.
* @param string $tradeSymbol The trade symbol being delivered.
* @param int $units The number of units to deliver.
*
* @return array<string,mixed>
*/
public function deliverContractCargo(
string $contractId,
string $shipSymbol,
string $tradeSymbol,
int $units
): array {
return $this->request(
'POST',
'/my/contracts/' . rawurlencode( $contractId ) . '/deliver',
array(
'shipSymbol' => $shipSymbol,
'tradeSymbol' => $tradeSymbol,
'units' => $units,
)
);
}
/**
* Get a list of all systems in the universe.
*