bitburner-src/src/ui/Router.ts

91 lines
1.9 KiB
TypeScript
Raw Normal View History

2021-09-17 08:04:44 +02:00
import { Faction } from "../Faction/Faction";
2021-09-18 10:01:07 +02:00
import { Location } from "../Locations/Location";
2021-09-17 08:04:44 +02:00
/**
* The full-screen page the player is currently be on.
* These pages are mutually exclusive.
*/
export enum Page {
ActiveScripts,
Augmentations,
2021-09-18 01:43:08 +02:00
BitVerse,
2021-09-17 08:04:44 +02:00
Bladeburner,
City,
Corporation,
CreateProgram,
ScriptEditor,
2021-09-17 08:04:44 +02:00
DevMenu,
Faction,
Factions,
Gang,
Hacknet,
2021-09-18 01:43:08 +02:00
Infiltration,
2021-09-17 08:04:44 +02:00
Job,
Milestones,
2021-09-18 01:43:08 +02:00
Options,
2021-09-17 08:04:44 +02:00
Resleeves,
Sleeves,
2021-09-18 01:43:08 +02:00
Stats,
2021-09-17 08:04:44 +02:00
StockMarket,
Terminal,
Travel,
Tutorial,
2021-09-18 01:43:08 +02:00
Work,
BladeburnerCinematic,
2021-09-18 10:01:07 +02:00
Location,
2021-09-20 00:04:12 +02:00
Loading,
2021-09-25 23:21:50 +02:00
StaneksGift,
2021-11-02 22:28:19 +01:00
Recovery,
Achievements,
ThemeBrowser,
ImportSave,
2021-09-17 08:04:44 +02:00
}
2021-12-17 18:48:34 +01:00
export interface ScriptEditorRouteOptions {
vim: boolean;
}
2021-09-17 08:04:44 +02:00
/**
* This class keeps track of player navigation/routing within the game.
*/
export interface IRouter {
// toCinematicText(): void;
// toInfiltration(): void;
// toMission(): void;
// toRedPill(): void;
// toworkInProgress(): void;
2021-09-18 01:43:08 +02:00
page(): Page;
allowRouting(value: boolean): void;
2021-09-17 08:04:44 +02:00
toActiveScripts(): void;
toAugmentations(): void;
2021-09-18 01:43:08 +02:00
toBitVerse(flume: boolean, quick: boolean): void;
2021-09-17 08:04:44 +02:00
toBladeburner(): void;
2021-09-18 18:13:20 +02:00
toStats(): void;
2021-09-18 01:43:08 +02:00
toCity(): void; // travel ? city ?
2021-09-17 08:04:44 +02:00
toCorporation(): void;
toCreateProgram(): void;
toDevMenu(): void;
2021-09-18 01:43:08 +02:00
toFaction(faction?: Faction): void; // faction name
2021-09-17 08:04:44 +02:00
toFactions(): void;
toGameOptions(): void;
toGang(): void;
toHacknetNodes(): void;
2021-09-18 10:01:07 +02:00
toInfiltration(location: Location): void;
2021-09-17 08:04:44 +02:00
toJob(): void;
toMilestones(): void;
toResleeves(): void;
toScriptEditor(files?: Record<string, string>, options?: ScriptEditorRouteOptions): void;
2021-09-17 08:04:44 +02:00
toSleeves(): void;
toStockMarket(): void;
toTerminal(): void;
toTravel(): void;
toTutorial(): void;
2021-09-18 01:43:08 +02:00
toWork(): void;
toBladeburnerCinematic(): void;
2021-09-18 10:01:07 +02:00
toLocation(location: Location): void;
2021-09-25 23:21:50 +02:00
toStaneksGift(): void;
toAchievements(): void;
toThemeBrowser(): void;
toImportSave(base64Save: string, automatic?: boolean): void;
2021-09-17 08:04:44 +02:00
}