mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 03:24:48 +01:00
92 lines
2.0 KiB
TypeScript
92 lines
2.0 KiB
TypeScript
import { Faction } from "../Faction/Faction";
|
|
import { Location } from "../Locations/Location";
|
|
|
|
/**
|
|
* The full-screen page the player is currently be on.
|
|
* These pages are mutually exclusive.
|
|
*/
|
|
export enum Page {
|
|
ActiveScripts,
|
|
Augmentations,
|
|
BitVerse,
|
|
Bladeburner,
|
|
City,
|
|
Corporation,
|
|
CreateProgram,
|
|
ScriptEditor,
|
|
DevMenu,
|
|
Faction,
|
|
Factions,
|
|
Gang,
|
|
Hacknet,
|
|
Infiltration,
|
|
Job,
|
|
Milestones,
|
|
Options,
|
|
Grafting,
|
|
Sleeves,
|
|
Stats,
|
|
StockMarket,
|
|
Terminal,
|
|
Travel,
|
|
Tutorial,
|
|
Work,
|
|
BladeburnerCinematic,
|
|
Location,
|
|
Loading,
|
|
StaneksGift,
|
|
Recovery,
|
|
Achievements,
|
|
ThemeBrowser,
|
|
ImportSave,
|
|
}
|
|
|
|
export interface ScriptEditorRouteOptions {
|
|
vim: boolean;
|
|
}
|
|
|
|
/**
|
|
* This class keeps track of player navigation/routing within the game.
|
|
*/
|
|
export interface IRouter {
|
|
// toCinematicText(): void;
|
|
// toInfiltration(): void;
|
|
// toMission(): void;
|
|
// toRedPill(): void;
|
|
// toworkInProgress(): void;
|
|
isInitialized: boolean;
|
|
page(): Page;
|
|
allowRouting(value: boolean): void;
|
|
toActiveScripts(): void;
|
|
toAugmentations(): void;
|
|
toBitVerse(flume: boolean, quick: boolean): void;
|
|
toBladeburner(): void;
|
|
toStats(): void;
|
|
toCity(): void; // travel ? city ?
|
|
toCorporation(): void;
|
|
toCreateProgram(): void;
|
|
toDevMenu(): void;
|
|
toFaction(faction: Faction, augPage?: boolean): void; // faction name
|
|
toFactions(): void;
|
|
toGameOptions(): void;
|
|
toGang(): void;
|
|
toHacknetNodes(): void;
|
|
toInfiltration(location: Location): void;
|
|
toJob(location: Location): void;
|
|
toMilestones(): void;
|
|
toGrafting(): void;
|
|
toScriptEditor(files?: Record<string, string>, options?: ScriptEditorRouteOptions): void;
|
|
toSleeves(): void;
|
|
toStockMarket(): void;
|
|
toTerminal(): void;
|
|
toTravel(): void;
|
|
toTutorial(): void;
|
|
toWork(): void;
|
|
toBladeburnerCinematic(): void;
|
|
toLocation(location: Location): void;
|
|
toStaneksGift(): void;
|
|
toAchievements(): void;
|
|
toThemeBrowser(): void;
|
|
toImportSave(base64Save: string, automatic?: boolean): void;
|
|
}
|