This commit is contained in:
StrangeD0s
2026-02-07 20:11:26 +01:00
parent 817cdc7906
commit 81a53e441e
15 changed files with 1069 additions and 86 deletions
+41
View File
@@ -0,0 +1,41 @@
// types/swapi.ts
// Die korrigierten Rohdaten von der SWAPI
export interface SWAPIPlanet { // <-- Jetzt mit korrektem 'n'
name: string;
rotation_period: string;
orbital_period: string;
diameter: string;
climate: string;
gravity: string;
terrain: string;
surface_water: string;
population: string;
url: string;
}
export interface SWAPIStarship {
name: string;
model: string;
manufacturer: string;
cost_in_credits: string;
length: string;
max_atmosphering_speed: string;
crew: string;
passengers: string;
cargo_capacity: string;
starship_class: string;
url: string;
}
// Unsere erweiterten Typen für das Spiel
export interface Planet extends SWAPIPlanet {
id: string;
x: number;
y: number;
}
export interface Starship extends SWAPIStarship {
id: string;
ds: number; // Difficulty Score für Tunnel Goons
}