SpaceNinjaServer/src/services/configService.ts

25 lines
653 B
TypeScript
Raw Normal View History

2024-05-15 21:55:59 +02:00
import rawConfig from "@/config.json";
interface IConfig {
mongodbUrl: string;
logger: ILoggerConfig;
myAddress: string;
autoCreateAccount?: boolean;
skipStoryModeChoice?: boolean;
skipTutorial?: boolean;
unlockAllScans?: boolean;
unlockAllMissions?: boolean;
unlockAllQuests?: boolean;
infiniteResources?: boolean;
unlockallShipFeatures?: boolean;
unlockAllShipDecorations?: boolean;
unlockAllFlavourItems?: boolean;
}
interface ILoggerConfig {
files: boolean;
level: string; // "fatal" | "error" | "warn" | "info" | "http" | "debug" | "trace";
}
export const config: IConfig = rawConfig;