Update types for 3.5.4
This commit is contained in:
parent
33f835fb83
commit
c6e5f127a7
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
@ -11,13 +11,15 @@ import { IServerDetails } from "../models/eft/game/IServerDetails";
|
|||||||
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { Watermark } from "../utils/Watermark";
|
import { Watermark } from "../utils/Watermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
protected gameController: GameController;
|
protected gameController: GameController;
|
||||||
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, saveServer: SaveServer, gameController: GameController);
|
||||||
/**
|
/**
|
||||||
* Handle client/game/version/validate
|
* Handle client/game/version/validate
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
@ -30,6 +32,7 @@ declare class GameCallbacks {
|
|||||||
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/logout
|
* Handle client/game/logout
|
||||||
|
* Save profiles on game close
|
||||||
* @returns IGameLogoutResponseData
|
* @returns IGameLogoutResponseData
|
||||||
*/
|
*/
|
||||||
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
export declare class SaveCallbacks implements OnLoad, OnUpdate {
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(saveServer: SaveServer);
|
protected configServer: ConfigServer;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(saveServer: SaveServer, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -5,5 +5,6 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
projectName: string;
|
projectName: string;
|
||||||
compatibleTarkovVersion: string;
|
compatibleTarkovVersion: string;
|
||||||
serverName: string;
|
serverName: string;
|
||||||
|
profileSaveIntervalSeconds: number;
|
||||||
commit: string;
|
commit: string;
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,5 @@ export interface ILocaleBase {
|
|||||||
global: Record<string, Record<string, string>>;
|
global: Record<string, Record<string, string>>;
|
||||||
menu: Record<string, string>;
|
menu: Record<string, string>;
|
||||||
languages: Record<string, string>;
|
languages: Record<string, string>;
|
||||||
|
server: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
@ -18,9 +18,12 @@ export declare class HttpServer {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected webSocketServer: WebSocketServer;
|
protected webSocketServer: WebSocketServer;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
getCookies(req: http.IncomingMessage): any;
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, localisationService: LocalisationService, httpListeners: IHttpListener[], configServer: ConfigServer, applicationContext: ApplicationContext, webSocketServer: WebSocketServer);
|
||||||
handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
/**
|
||||||
|
* Handle server loading event
|
||||||
|
*/
|
||||||
load(): void;
|
load(): void;
|
||||||
|
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||||
|
protected getCookies(req: http.IncomingMessage): Record<string, string>;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user