Skip to content

Commit

Permalink
Moved EntryType into its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Chomp committed Dec 31, 2024
1 parent dbed08a commit 00814dc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
9 changes: 1 addition & 8 deletions project/src/Program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@ import { ErrorHandler } from "@spt/ErrorHandler";
import { Container } from "@spt/di/Container";
import buildInfo from "@spt/entry/build.json" assert { type: "json" };
import type { PreSptModLoader } from "@spt/loaders/PreSptModLoader";
import { EntryType } from "@spt/models/enums/EntryType";
import { App } from "@spt/utils/App";
import { Watermark } from "@spt/utils/Watermark";
import { container } from "tsyringe";

export enum EntryType {
LOCAL = "LOCAL",
DEBUG = "DEBUG",
RELEASE = "RELEASE",
BLEEDING_EDGE = "BLEEDING_EDGE",
BLEEDING_EDGE_MODS = "BLEEDING_EDGE_MODS",
}

export class Program {
private static _ENTRY_TYPE: EntryType;

Expand Down
3 changes: 2 additions & 1 deletion project/src/callbacks/ClientLogCallbacks.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { EntryType, Program } from "@spt/Program";
import { Program } from "@spt/Program";
import { ClientLogController } from "@spt/controllers/ClientLogController";
import { ModLoadOrder } from "@spt/loaders/ModLoadOrder";
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
import { EntryType } from "@spt/models/enums/EntryType";
import { IBsgLogging, ICoreConfig, IRelease } from "@spt/models/spt/config/ICoreConfig";
import { IClientLogRequest } from "@spt/models/spt/logging/IClientLogRequest";
import { ConfigServer } from "@spt/servers/ConfigServer";
Expand Down
7 changes: 7 additions & 0 deletions project/src/models/enums/EntryType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export enum EntryType {
LOCAL = "LOCAL",
DEBUG = "DEBUG",
RELEASE = "RELEASE",
BLEEDING_EDGE = "BLEEDING_EDGE",
BLEEDING_EDGE_MODS = "BLEEDING_EDGE_MODS",
}
3 changes: 2 additions & 1 deletion project/src/servers/http/SptHttpListener.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from "node:http";
import util from "node:util";
import zlib from "node:zlib";
import { EntryType, Program } from "@spt/Program";
import { Program } from "@spt/Program";
import { Serializer } from "@spt/di/Serializer";
import { EntryType } from "@spt/models/enums/EntryType";
import { ILogger } from "@spt/models/spt/utils/ILogger";
import { HttpRouter } from "@spt/routers/HttpRouter";
import { IHttpListener } from "@spt/servers/http/IHttpListener";
Expand Down

0 comments on commit 00814dc

Please sign in to comment.