Updated for 3.9.5 (#36)
Co-authored-by: Dev <dev@dev.sp-tarkov.com> Reviewed-on: #36
This commit is contained in:
parent
530aad88b9
commit
56e4fee0c3
@ -1,4 +1,4 @@
|
||||
# Mod examples for v3.9.4
|
||||
# Mod examples for v3.9.5
|
||||
|
||||
A collection of example mods that perform typical actions in SPT
|
||||
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
@ -22,19 +22,11 @@ export declare class BotLevelGenerator {
|
||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
||||
/**
|
||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxLevel Max possible level
|
||||
* @returns Highest level possible for bot
|
||||
*/
|
||||
protected getHighestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxLevel: number): number;
|
||||
/**
|
||||
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||
* Return the min and max bot level based on a relative delta from the PMC level
|
||||
* @param botGenerationDetails Details to help generate a bot
|
||||
* @param levelDetails
|
||||
* @param maxlevel Max level allowed
|
||||
* @returns Lowest level possible for bot
|
||||
* @returns A MinMax of the lowest and highest level to generate the bots
|
||||
*/
|
||||
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||
protected getRelativeBotLevelRange(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxAvailableLevel: number): MinMax;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export declare class HttpServer {
|
||||
* Handle server loading event
|
||||
*/
|
||||
load(): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): void;
|
||||
protected handleRequest(req: IncomingMessage, resp: ServerResponse): Promise<void>;
|
||||
/**
|
||||
* Check against hardcoded values that determine its from a local address
|
||||
* @param remoteAddress Address to check
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { SaveLoadRouter } from "@spt/di/Router";
|
||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||
import { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
||||
protected profiles: {};
|
||||
protected onBeforeSaveCallbacks: {};
|
||||
protected saveMd5: {};
|
||||
protected coreConfig: ICoreConfig;
|
||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||
/**
|
||||
* Add callback to occur prior to saving profile changes
|
||||
|
Loading…
x
Reference in New Issue
Block a user