Nullability Updates
& Add missing file
This commit is contained in:
parent
e33326611a
commit
69593851aa
5 changed files with 41 additions and 14 deletions
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";
|
||||
}
|
||||
Loading…
Reference in a new issue