mvp
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user