Reference · Rockets, variants, parts and the fit check
Performancetype
What a ship can do, from its modules and engine cards.
Import it
import type { Performance } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Performance {
dry: number;
full: number;
thrust: number;
accelerationFull: number;
accelerationDry: number;
exhaustOfC: number;
topSpeed: number;
cruise: number;
massFlow: number;
burnDays: number;
}
Members
| Name | Type | Description |
|---|---|---|
dry | number | Dry and full mass in tonnes. |
full | number | |
thrust | number | Thrust of the main drive in newtons, and the acceleration it gives at full and at dry mass, in g. |
accelerationFull | number | |
accelerationDry | number | |
exhaustOfC | number | The exhaust speed of the main drive as a fraction of c. |
topSpeed | number | The most speed its fuel buys going one way, and the cruise speed it can reach and still stop, as fractions of c (relativistic rocket equation). |
cruise | number | |
massFlow | number | Fuel flow of the main drive at full thrust, kg/s, and how long the fuel lasts at that rate, in days. |
burnDays | number |
Examples
import { performanceOf, type Performance, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
const p: Performance = performanceOf(SAMPLE_SHIPS.scout);
console.log(p.accelerationFull, p.cruise);1.999443554858683 0.013306468590150222What it prints (run when this page was built)