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
|
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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* 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;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
protected chooseBotLevel(min: number, max: number, shift: number, number: number): number;
|
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
|
* 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 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
|
|
||||||
* @param botGenerationDetails Details to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param levelDetails
|
* @param levelDetails
|
||||||
* @param maxlevel Max level allowed
|
* @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
|
* Handle server loading event
|
||||||
*/
|
*/
|
||||||
load(): void;
|
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
|
* Check against hardcoded values that determine its from a local address
|
||||||
* @param remoteAddress Address to check
|
* @param remoteAddress Address to check
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { SaveLoadRouter } from "@spt/di/Router";
|
import { SaveLoadRouter } from "@spt/di/Router";
|
||||||
import { ISptProfile, Info } from "@spt/models/eft/profile/ISptProfile";
|
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 { ILogger } from "@spt/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { LocalisationService } from "@spt/services/LocalisationService";
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
@ -18,6 +19,7 @@ export declare class SaveServer {
|
|||||||
protected profiles: {};
|
protected profiles: {};
|
||||||
protected onBeforeSaveCallbacks: {};
|
protected onBeforeSaveCallbacks: {};
|
||||||
protected saveMd5: {};
|
protected saveMd5: {};
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
constructor(vfs: VFS, saveLoadRouters: SaveLoadRouter[], jsonUtil: JsonUtil, hashUtil: HashUtil, localisationService: LocalisationService, logger: ILogger, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Add callback to occur prior to saving profile changes
|
* Add callback to occur prior to saving profile changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user