mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-07-03 01:03:41 -04:00
Nullability Updates
& Add missing file
This commit is contained in:
27
Pulsar/WebApp/src/types/api/LoadGame.ts
Normal file
27
Pulsar/WebApp/src/types/api/LoadGame.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import type JournalBase from "./JournalBase";
|
||||
|
||||
export interface LoadGame extends JournalBase {
|
||||
event: "LoadGame";
|
||||
commander: string;
|
||||
fid: string;
|
||||
horizons: boolean;
|
||||
odyssey: boolean;
|
||||
ship: string;
|
||||
ship_Localised: string;
|
||||
shipID: number;
|
||||
startLanded: boolean;
|
||||
startDead: boolean;
|
||||
gameMode: string;
|
||||
credits: number;
|
||||
loan: number;
|
||||
shipName: string;
|
||||
shipIdent: string;
|
||||
fuelLevel: number;
|
||||
fuelCapacity: number;
|
||||
language: string;
|
||||
gameversion: string;
|
||||
build: string;
|
||||
}
|
||||
export function IsLoadGameEvent(message: JournalBase): message is LoadGame {
|
||||
return message.event === "LoadGame";
|
||||
}
|
Reference in New Issue
Block a user