import { IPlayer } from "./PersonObjects/IPlayer"; import { Bladeburner } from "./Bladeburner/Bladeburner"; import { IEngine } from "./IEngine"; import { IRouter } from "./ui/Router"; import { AugmentationNames } from "./Augmentation/data/AugmentationNames"; import React, { useEffect } from "react"; import { General } from "./DevMenu/ui/General"; import { Stats } from "./DevMenu/ui/Stats"; import { Factions } from "./DevMenu/ui/Factions"; import { Augmentations } from "./DevMenu/ui/Augmentations"; import { SourceFiles } from "./DevMenu/ui/SourceFiles"; import { Programs } from "./DevMenu/ui/Programs"; import { Servers } from "./DevMenu/ui/Servers"; import { Companies } from "./DevMenu/ui/Companies"; import { Bladeburner as BladeburnerElem } from "./DevMenu/ui/Bladeburner"; import { Gang } from "./DevMenu/ui/Gang"; import { Corporation } from "./DevMenu/ui/Corporation"; import { CodingContracts } from "./DevMenu/ui/CodingContracts"; import { StockMarket } from "./DevMenu/ui/StockMarket"; import { Sleeves } from "./DevMenu/ui/Sleeves"; import { Stanek } from "./DevMenu/ui/Stanek"; import { TimeSkip } from "./DevMenu/ui/TimeSkip"; import { Achievements } from "./DevMenu/ui/Achievements"; import { Entropy } from "./DevMenu/ui/Entropy"; import Typography from "@mui/material/Typography"; import { Exploit } from "./Exploits/Exploit"; interface IProps { player: IPlayer; engine: IEngine; router: IRouter; } export function DevMenuRoot(props: IProps): React.ReactElement { useEffect(() => { props.player.giveExploit(Exploit.YoureNotMeantToAccessThis); }, []); return ( <> Development Menu - Only meant to be used for testing/debugging {props.player.bladeburner instanceof Bladeburner && } {props.player.inGang() && } {props.player.hasCorporation() && } {props.player.hasWseAccount && } {props.player.sleeves.length > 0 && } {props.player.augmentations.some((aug) => aug.name === AugmentationNames.StaneksGift1) && } ); }