Something went wrong. Try again.
TypeScript client for accessing TLE Community.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182import { ServerDate, IntBool, EmpireName, MapLocation } from '.';import type { Ship } from './space-port';
export interface BodiesList { empire_id: number; empire_name: string; id: number; name: string; orbit: number; star_id: number; star_name: string; x: number; y: number; zone: string; /** Sent by the server but undocumented in the spec. See README "Spec Discrepancies". */ type: string;}
export interface EmpireBlock { alliance_id?: number; bodies: { colonies: BodiesList[]; mystations?: BodiesList[]; ourstations?: BodiesList[]; babies?: { [index: string]: { alliance_id?: number; id: number; sitter_expiry: ServerDate; planets: BodiesList[]; }; }; }; essentia: number; has_new_messages: number; home_planet_id: number; id: number; insurrect_value: number; is_isolationist: IntBool; latest_message_id: number; name: EmpireName; next_colony_cost: number; next_colony_srcs: number; next_station_cost: number; primary_embassy_id: number; rpc_count: number; self_destruct_active: IntBool; self_destruct_date: ServerDate; status_message: string; tech_level: number;}
export interface BodyBlock { id: number; x: number; y: number; zone: string; star_id: number; star_name: string; orbit: number; type: string; name: string; image: string; size: number; water: number;
ore: { anthracite: number; bauxite: number; beryl: number; chromite: number; chalcopyrite: number; fluorite: number; galena: number; goethite: number; gold: number; gypsum: number; halite: number; kerogen: number; magnetite: number; methane: number; monazite: number; rutile: number; sulfur: number; trona: number; uraninite: number; zircon: number; };
// // This section only exists if an empire occupies it // empire?: { id: number; name: string; alignment: 'ally' | 'self' | 'hostile'; is_isolationist: IntBool; };
// // This section is included if the body is under the influence of a space station // station?: { id: number; x: number; y: number; name: string; };
// // If the body belongs to us then extra information is included // needs_surface_refresh?: IntBool; building_count?: number; build_queue_size?: number; build_queue_len?: number; plots_available?: number; happiness?: number; happiness_hour?: number; unhappy_date?: ServerDate; neutral_entry?: ServerDate; propaganda_boost?: number; food_stored?: number; food_capacity?: number; food_hour?: number; energy_stored?: number; energy_capacity?: number; energy_hour?: number; ore_hour?: number; ore_capacity?: number; ore_stored?: number; population?: number; waste_hour?: number; waste_stored?: number; waste_capacity?: number; water_stored?: number; water_hour?: number; water_capacity?: number; skip_incoming_ships?: IntBool; num_incoming_enemy?: number; num_incoming_ally?: number; num_incoming_own?: number; incoming_enemy_ships?: Ship[]; incoming_ally_ships?: Ship[]; incoming_own_ships?: Ship[];
// // If the body is a station the follwing information will be included: // alliance?: { id: number; name: string; };
influence?: { total: number; spent: number; };}
export interface ServerBlock { rpc_limit: number; star_map_size: { x: MapLocation; y: MapLocation; z: MapLocation; }; time: string; version: string; /** * Raised (to 1) while the empire has an unseen server announcement. The * server only sends the key on the 0 -> 1 edge; treat absent as 0. */ announcement?: IntBool;}
export interface StatusBlock { empire?: EmpireBlock; body?: BodyBlock; server?: ServerBlock;}