3.9.0-DEV (#29)
Co-authored-by: Dev <dev@dev.sp-tarkov.com> Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com> Reviewed-on: #29
This commit is contained in:
parent
6218d6d4bd
commit
d79477a98f
@ -1,4 +1,4 @@
|
|||||||
# Mod examples for v3.8.3
|
# Mod examples for v3.9.0
|
||||||
|
|
||||||
A collection of example mods that perform typical actions in SPT
|
A collection of example mods that perform typical actions in SPT
|
||||||
|
|
||||||
@ -8,4 +8,4 @@ Dive into a specific mod folder and follow the instructions in the `README.md` f
|
|||||||
|
|
||||||
# Mod Upgrade Guide
|
# Mod Upgrade Guide
|
||||||
|
|
||||||
Read [Here](https://hub.sp-tarkov.com/doc/entry/51-modding-in-2-4-0/)
|
Read [Here](https://hub.sp-tarkov.com/doc/entry/51-modding-in-spt-3-x-x/)
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
# Exclude these folders from linting
|
# Exclude these folders from linting
|
||||||
node_modules
|
**/node_modules
|
||||||
dist/
|
/tmp
|
||||||
types/
|
/dist
|
||||||
|
/types
|
||||||
|
|
||||||
# Exclude these filetypes from linting
|
# Exclude these filetypes from linting
|
||||||
*.json
|
*.json
|
||||||
*.txt
|
*.txt
|
||||||
*.exe
|
*.exe
|
||||||
|
@ -95,4 +95,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ Some resources to get you started:
|
|||||||
|
|
||||||
## **Coding Guidelines**
|
## **Coding Guidelines**
|
||||||
|
|
||||||
Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"license"`, `"author"`, and `"akiVersion"`.
|
Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`.
|
||||||
|
|
||||||
New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/).
|
New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/).
|
||||||
|
|
||||||
|
@ -29,11 +29,10 @@
|
|||||||
* @version v1.0.0
|
* @version v1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import os from "node:os";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
import fs from "fs-extra";
|
import fs from "fs-extra";
|
||||||
import os from "os";
|
|
||||||
import path from "path";
|
|
||||||
import { fileURLToPath } from "url";
|
|
||||||
import { dirname } from "path";
|
|
||||||
import ignore from "ignore";
|
import ignore from "ignore";
|
||||||
import archiver from "archiver";
|
import archiver from "archiver";
|
||||||
import winston from "winston";
|
import winston from "winston";
|
||||||
@ -165,7 +164,7 @@ async function main() {
|
|||||||
* @returns {string} The absolute path of the current working directory.
|
* @returns {string} The absolute path of the current working directory.
|
||||||
*/
|
*/
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
return dirname(fileURLToPath(import.meta.url));
|
return path.dirname(fileURLToPath(import.meta.url));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -225,10 +224,9 @@ function createProjectName(packageJson) {
|
|||||||
// Remove any non-alphanumeric characters from the author and name.
|
// Remove any non-alphanumeric characters from the author and name.
|
||||||
const author = packageJson.author.replace(/\W/g, "");
|
const author = packageJson.author.replace(/\W/g, "");
|
||||||
const name = packageJson.name.replace(/\W/g, "");
|
const name = packageJson.name.replace(/\W/g, "");
|
||||||
const version = packageJson.version;
|
|
||||||
|
|
||||||
// Ensure the name is lowercase, as per the package.json specification.
|
// Ensure the name is lowercase, as per the package.json specification.
|
||||||
return `${author}-${name}-${version}`.toLowerCase();
|
return `${author}-${name}`.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"dbaeumer.vscode-eslint"
|
"dbaeumer.vscode-eslint",
|
||||||
]
|
"refringe.spt-id-highlighter"
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ScopesAndTypes",
|
"name": "ScopesAndTypes",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"akiVersion": "~3.9",
|
||||||
|
"loadBefore": [],
|
||||||
|
"loadAfter": [],
|
||||||
|
"incompatibilities": [],
|
||||||
|
"isBundleMod": false,
|
||||||
"main": "src/mod.js",
|
"main": "src/mod.js",
|
||||||
"license": "MIT",
|
|
||||||
"author": "Chomp",
|
|
||||||
"akiVersion": "~3.8",
|
|
||||||
"loadBefore": [],
|
|
||||||
"loadAfter": [],
|
|
||||||
"incompatibilities": [],
|
|
||||||
"contributors": [],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "npm i",
|
"setup": "npm i",
|
||||||
"build": "node ./build.mjs",
|
"build": "node ./build.mjs",
|
||||||
@ -22,9 +20,11 @@
|
|||||||
"eslint": "8.57",
|
"eslint": "8.57",
|
||||||
"fs-extra": "11.2",
|
"fs-extra": "11.2",
|
||||||
"ignore": "^5.2",
|
"ignore": "^5.2",
|
||||||
"os": "^0.1",
|
|
||||||
"tsyringe": "4.8.0",
|
"tsyringe": "4.8.0",
|
||||||
"typescript": "5.4",
|
"typescript": "5.4",
|
||||||
"winston": "3.12"
|
"winston": "3.12"
|
||||||
}
|
},
|
||||||
|
"author": "Chomp",
|
||||||
|
"contributors": [],
|
||||||
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
import { inject, injectable } from "tsyringe";
|
import { inject, injectable } from "tsyringe";
|
||||||
|
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { Processing } from "./Processing";
|
import { Processing } from "./Processing";
|
||||||
|
|
||||||
@injectable()
|
@injectable()
|
||||||
export class MyMod
|
export class MyMod
|
||||||
{
|
{
|
||||||
// Since this is a singleton this class will only have 1 object/bean
|
// Since this is a singleton this class will only have 1 object/bean
|
||||||
private calls = 0;
|
private calls = 0;
|
||||||
@ -11,15 +12,15 @@ export class MyMod
|
|||||||
// All these types are automatically wired when the container resolves the bean creation
|
// All these types are automatically wired when the container resolves the bean creation
|
||||||
constructor(
|
constructor(
|
||||||
@inject("Processing") private processing: Processing,
|
@inject("Processing") private processing: Processing,
|
||||||
@inject("WinstonLogger") private logger: ILogger
|
@inject("WinstonLogger") private logger: ILogger,
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
public runModLogic(): void
|
public runModLogic(): void
|
||||||
{
|
{
|
||||||
this.processing.doProcess();
|
this.processing.doProcess();
|
||||||
this.logger.info(`This is a singleton bean, so everytime its called the same entity will be returned. This is the call number: ${this.calls}`);
|
this.logger.info(`This is a singleton bean, so everytime its called the same entity will be returned. This is the call number: ${this.calls}`);
|
||||||
this.calls++;
|
this.calls++;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,22 @@
|
|||||||
import { inject, injectable } from "tsyringe";
|
import { inject, injectable } from "tsyringe";
|
||||||
|
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
|
|
||||||
@injectable()
|
@injectable()
|
||||||
export class Processing
|
export class Processing
|
||||||
{
|
{
|
||||||
// Since this is a transient type, this class will have many of this type
|
// Since this is a transient type, this class will have many of this type
|
||||||
// Anything left in variables will always be discarded
|
// Anything left in variables will always be discarded
|
||||||
private calls = 0;
|
private calls = 0;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@inject("WinstonLogger") private logger: ILogger
|
@inject("WinstonLogger") private logger: ILogger,
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
public doProcess(): void
|
public doProcess(): void
|
||||||
{
|
{
|
||||||
this.logger.info(`Process was triggered, since this is a singleton the calls value is always 0: ${this.calls}`);
|
this.logger.info(`Process was triggered, since this is a singleton the calls value is always 0: ${this.calls}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { DependencyContainer, Lifecycle } from "tsyringe";
|
import { DependencyContainer, Lifecycle } from "tsyringe";
|
||||||
|
|
||||||
import { IPreAkiLoadMod } from "@spt-aki/models/external/IPreAkiLoadMod";
|
import { IPreAkiLoadMod } from "@spt-aki/models/external/IPreAkiLoadMod";
|
||||||
import { IPostAkiLoadMod } from "@spt-aki/models/external/IPostAkiLoadMod";
|
import { IPostAkiLoadMod } from "@spt-aki/models/external/IPostAkiLoadMod";
|
||||||
import { MyMod } from "./MyMod";
|
import { MyMod } from "./MyMod";
|
||||||
@ -12,16 +13,16 @@ class Mod implements IPreAkiLoadMod, IPostAkiLoadMod
|
|||||||
// This class is registered as a singleton. This means ONE and only ONE bean
|
// This class is registered as a singleton. This means ONE and only ONE bean
|
||||||
// of this class will ever exist.
|
// of this class will ever exist.
|
||||||
container.register<MyMod>("MyMod", MyMod, {lifecycle: Lifecycle.Singleton});
|
container.register<MyMod>("MyMod", MyMod, {lifecycle: Lifecycle.Singleton});
|
||||||
|
|
||||||
// This class is being registered as default or transient. This means that
|
// This class is being registered as default or transient. This means that
|
||||||
// every time a class requests a bean of this type a new one will be created
|
// every time a class requests a bean of this type a new one will be created
|
||||||
container.register<Processing>("Processing", Processing);
|
container.register<Processing>("Processing", Processing);
|
||||||
}
|
}
|
||||||
|
|
||||||
public postAkiLoad(container: DependencyContainer): void
|
public postAkiLoad(container: DependencyContainer): void
|
||||||
{
|
{
|
||||||
// We will run this in a quick 5 loop to show how singletons and transients work
|
// We will run this in a quick 5 loop to show how singletons and transients work
|
||||||
for (let i = 0; i < 5; i++)
|
for (let i = 0; i < 5; i++)
|
||||||
{
|
{
|
||||||
// every resolution will return the same MyMod bean
|
// every resolution will return the same MyMod bean
|
||||||
container.resolve<MyMod>("MyMod").runModLogic();
|
container.resolve<MyMod>("MyMod").runModLogic();
|
||||||
@ -29,4 +30,4 @@ class Mod implements IPreAkiLoadMod, IPostAkiLoadMod
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { mod: new Mod() }
|
export const mod = new Mod();
|
||||||
|
@ -1,22 +1,18 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"module": "CommonJS",
|
"module": "NodeNext",
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"moduleResolution": "Node10",
|
"moduleResolution": "NodeNext",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"outDir": "tmp",
|
"outDir": "tmp",
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"@spt-aki/*": ["./types/*"]
|
"@spt-aki/*": ["./types/*"],
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"include": [
|
"exclude": ["node_modules", "dist", "tmp"],
|
||||||
"src/*",
|
}
|
||||||
"src/**/*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
@ -29,7 +29,7 @@ export declare class BotCallbacks {
|
|||||||
* Handle client/game/bot/generate
|
* Handle client/game/bot/generate
|
||||||
* @returns IGetBodyResponseData
|
* @returns IGetBodyResponseData
|
||||||
*/
|
*/
|
||||||
generateBots(url: string, info: IGenerateBotsRequestData, sessionID: string): IGetBodyResponseData<IBotBase[]>;
|
generateBots(url: string, info: IGenerateBotsRequestData, sessionID: string): Promise<IGetBodyResponseData<IBotBase[]>>;
|
||||||
/**
|
/**
|
||||||
* Handle singleplayer/settings/bot/maxCap
|
* Handle singleplayer/settings/bot/maxCap
|
||||||
* @returns string
|
* @returns string
|
||||||
|
@ -3,8 +3,11 @@ import { OnUpdate } from "@spt-aki/di/OnUpdate";
|
|||||||
import { IEmptyRequestData } from "@spt-aki/models/eft/common/IEmptyRequestData";
|
import { IEmptyRequestData } from "@spt-aki/models/eft/common/IEmptyRequestData";
|
||||||
import { IUIDRequestData } from "@spt-aki/models/eft/common/request/IUIDRequestData";
|
import { IUIDRequestData } from "@spt-aki/models/eft/common/request/IUIDRequestData";
|
||||||
import { IAcceptFriendRequestData, ICancelFriendRequestData, IDeclineFriendRequestData } from "@spt-aki/models/eft/dialog/IAcceptFriendRequestData";
|
import { IAcceptFriendRequestData, ICancelFriendRequestData, IDeclineFriendRequestData } from "@spt-aki/models/eft/dialog/IAcceptFriendRequestData";
|
||||||
|
import { IAddUserGroupMailRequest } from "@spt-aki/models/eft/dialog/IAddUserGroupMailRequest";
|
||||||
|
import { IChangeGroupMailOwnerRequest } from "@spt-aki/models/eft/dialog/IChangeGroupMailOwnerRequest";
|
||||||
import { IChatServer } from "@spt-aki/models/eft/dialog/IChatServer";
|
import { IChatServer } from "@spt-aki/models/eft/dialog/IChatServer";
|
||||||
import { IClearMailMessageRequest } from "@spt-aki/models/eft/dialog/IClearMailMessageRequest";
|
import { IClearMailMessageRequest } from "@spt-aki/models/eft/dialog/IClearMailMessageRequest";
|
||||||
|
import { ICreateGroupMailRequest } from "@spt-aki/models/eft/dialog/ICreateGroupMailRequest";
|
||||||
import { IDeleteFriendRequest } from "@spt-aki/models/eft/dialog/IDeleteFriendRequest";
|
import { IDeleteFriendRequest } from "@spt-aki/models/eft/dialog/IDeleteFriendRequest";
|
||||||
import { IFriendRequestData } from "@spt-aki/models/eft/dialog/IFriendRequestData";
|
import { IFriendRequestData } from "@spt-aki/models/eft/dialog/IFriendRequestData";
|
||||||
import { IFriendRequestSendResponse } from "@spt-aki/models/eft/dialog/IFriendRequestSendResponse";
|
import { IFriendRequestSendResponse } from "@spt-aki/models/eft/dialog/IFriendRequestSendResponse";
|
||||||
@ -19,6 +22,7 @@ import { IGetMailDialogViewResponseData } from "@spt-aki/models/eft/dialog/IGetM
|
|||||||
import { IPinDialogRequestData } from "@spt-aki/models/eft/dialog/IPinDialogRequestData";
|
import { IPinDialogRequestData } from "@spt-aki/models/eft/dialog/IPinDialogRequestData";
|
||||||
import { IRemoveDialogRequestData } from "@spt-aki/models/eft/dialog/IRemoveDialogRequestData";
|
import { IRemoveDialogRequestData } from "@spt-aki/models/eft/dialog/IRemoveDialogRequestData";
|
||||||
import { IRemoveMailMessageRequest } from "@spt-aki/models/eft/dialog/IRemoveMailMessageRequest";
|
import { IRemoveMailMessageRequest } from "@spt-aki/models/eft/dialog/IRemoveMailMessageRequest";
|
||||||
|
import { IRemoveUserGroupMailRequest } from "@spt-aki/models/eft/dialog/IRemoveUserGroupMailRequest";
|
||||||
import { ISendMessageRequest } from "@spt-aki/models/eft/dialog/ISendMessageRequest";
|
import { ISendMessageRequest } from "@spt-aki/models/eft/dialog/ISendMessageRequest";
|
||||||
import { ISetDialogReadRequestData } from "@spt-aki/models/eft/dialog/ISetDialogReadRequestData";
|
import { ISetDialogReadRequestData } from "@spt-aki/models/eft/dialog/ISetDialogReadRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt-aki/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt-aki/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
@ -98,6 +102,10 @@ export declare class DialogueCallbacks implements OnUpdate {
|
|||||||
unIgnoreFriend(url: string, request: IUIDRequestData, sessionID: string): INullResponseData;
|
unIgnoreFriend(url: string, request: IUIDRequestData, sessionID: string): INullResponseData;
|
||||||
clearMail(url: string, request: IClearMailMessageRequest, sessionID: string): IGetBodyResponseData<any[]>;
|
clearMail(url: string, request: IClearMailMessageRequest, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
removeMail(url: string, request: IRemoveMailMessageRequest, sessionID: string): IGetBodyResponseData<any[]>;
|
removeMail(url: string, request: IRemoveMailMessageRequest, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
createGroupMail(url: string, info: ICreateGroupMailRequest, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
changeMailGroupOwner(url: string, info: IChangeGroupMailOwnerRequest, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
addUserToMail(url: string, info: IAddUserGroupMailRequest, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
removeUserFromMail(url: string, info: IRemoveUserGroupMailRequest, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@ import { IGameConfigResponse } from "@spt-aki/models/eft/game/IGameConfigRespons
|
|||||||
import { IGameEmptyCrcRequestData } from "@spt-aki/models/eft/game/IGameEmptyCrcRequestData";
|
import { IGameEmptyCrcRequestData } from "@spt-aki/models/eft/game/IGameEmptyCrcRequestData";
|
||||||
import { IGameKeepAliveResponse } from "@spt-aki/models/eft/game/IGameKeepAliveResponse";
|
import { IGameKeepAliveResponse } from "@spt-aki/models/eft/game/IGameKeepAliveResponse";
|
||||||
import { IGameLogoutResponseData } from "@spt-aki/models/eft/game/IGameLogoutResponseData";
|
import { IGameLogoutResponseData } from "@spt-aki/models/eft/game/IGameLogoutResponseData";
|
||||||
|
import { IGameModeRequestData } from "@spt-aki/models/eft/game/IGameModeRequestData";
|
||||||
|
import { IGameModeResponse } from "@spt-aki/models/eft/game/IGameModeResponse";
|
||||||
import { IGameStartResponse } from "@spt-aki/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt-aki/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt-aki/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt-aki/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt-aki/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt-aki/models/eft/game/IGetRaidTimeResponse";
|
||||||
@ -47,6 +49,11 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* @returns IGameConfigResponse
|
* @returns IGameConfigResponse
|
||||||
*/
|
*/
|
||||||
getGameConfig(url: string, info: IGameEmptyCrcRequestData, sessionID: string): IGetBodyResponseData<IGameConfigResponse>;
|
getGameConfig(url: string, info: IGameEmptyCrcRequestData, sessionID: string): IGetBodyResponseData<IGameConfigResponse>;
|
||||||
|
/**
|
||||||
|
* Handle client/game/mode
|
||||||
|
* @returns IGameModeResponse
|
||||||
|
*/
|
||||||
|
getGameMode(url: string, info: IGameModeRequestData, sessionID: string): IGetBodyResponseData<IGameModeResponse>;
|
||||||
/**
|
/**
|
||||||
* Handle client/server/list
|
* Handle client/server/list
|
||||||
*/
|
*/
|
||||||
|
@ -8,7 +8,7 @@ export declare class ItemEventCallbacks {
|
|||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected itemEventRouter: ItemEventRouter;
|
protected itemEventRouter: ItemEventRouter;
|
||||||
constructor(httpResponse: HttpResponseUtil, itemEventRouter: ItemEventRouter);
|
constructor(httpResponse: HttpResponseUtil, itemEventRouter: ItemEventRouter);
|
||||||
handleEvents(url: string, info: IItemEventRouterRequest, sessionID: string): IGetBodyResponseData<IItemEventRouterResponse>;
|
handleEvents(url: string, info: IItemEventRouterRequest, sessionID: string): Promise<IGetBodyResponseData<IItemEventRouterResponse>>;
|
||||||
/**
|
/**
|
||||||
* Return true if the passed in list of warnings contains critical issues
|
* Return true if the passed in list of warnings contains critical issues
|
||||||
* @param warnings The list of warnings to check for critical errors
|
* @param warnings The list of warnings to check for critical errors
|
||||||
|
@ -2,20 +2,19 @@ import { MatchController } from "@spt-aki/controllers/MatchController";
|
|||||||
import { IEmptyRequestData } from "@spt-aki/models/eft/common/IEmptyRequestData";
|
import { IEmptyRequestData } from "@spt-aki/models/eft/common/IEmptyRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt-aki/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt-aki/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt-aki/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt-aki/models/eft/httpResponse/INullResponseData";
|
||||||
import { IAcceptGroupInviteRequest } from "@spt-aki/models/eft/match/IAcceptGroupInviteRequest";
|
|
||||||
import { IAcceptGroupInviteResponse } from "@spt-aki/models/eft/match/IAcceptGroupInviteResponse";
|
|
||||||
import { ICancelGroupInviteRequest } from "@spt-aki/models/eft/match/ICancelGroupInviteRequest";
|
|
||||||
import { IDeclineGroupInviteRequest } from "@spt-aki/models/eft/match/IDeclineGroupInviteRequest";
|
|
||||||
import { IEndOfflineRaidRequestData } from "@spt-aki/models/eft/match/IEndOfflineRaidRequestData";
|
import { IEndOfflineRaidRequestData } from "@spt-aki/models/eft/match/IEndOfflineRaidRequestData";
|
||||||
import { IGetGroupStatusRequestData } from "@spt-aki/models/eft/match/IGetGroupStatusRequestData";
|
|
||||||
import { IGetGroupStatusResponse } from "@spt-aki/models/eft/match/IGetGroupStatusResponse";
|
|
||||||
import { IGetRaidConfigurationRequestData } from "@spt-aki/models/eft/match/IGetRaidConfigurationRequestData";
|
import { IGetRaidConfigurationRequestData } from "@spt-aki/models/eft/match/IGetRaidConfigurationRequestData";
|
||||||
import { IJoinMatchRequestData } from "@spt-aki/models/eft/match/IJoinMatchRequestData";
|
import { IGroupCharacter } from "@spt-aki/models/eft/match/IGroupCharacter";
|
||||||
import { IJoinMatchResult } from "@spt-aki/models/eft/match/IJoinMatchResult";
|
import { IMatchGroupCurrentResponse } from "@spt-aki/models/eft/match/IMatchGroupCurrentResponse";
|
||||||
|
import { IMatchGroupInviteSendRequest } from "@spt-aki/models/eft/match/IMatchGroupInviteSendRequest";
|
||||||
|
import { IMatchGroupPlayerRemoveRequest } from "@spt-aki/models/eft/match/IMatchGroupPlayerRemoveRequest";
|
||||||
|
import { IMatchGroupStartGameRequest } from "@spt-aki/models/eft/match/IMatchGroupStartGameRequest";
|
||||||
|
import { IMatchGroupStatusRequest } from "@spt-aki/models/eft/match/IMatchGroupStatusRequest";
|
||||||
|
import { IMatchGroupStatusResponse } from "@spt-aki/models/eft/match/IMatchGroupStatusResponse";
|
||||||
|
import { IMatchGroupTransferRequest } from "@spt-aki/models/eft/match/IMatchGroupTransferRequest";
|
||||||
|
import { IProfileStatusResponse } from "@spt-aki/models/eft/match/IProfileStatusResponse";
|
||||||
import { IPutMetricsRequestData } from "@spt-aki/models/eft/match/IPutMetricsRequestData";
|
import { IPutMetricsRequestData } from "@spt-aki/models/eft/match/IPutMetricsRequestData";
|
||||||
import { IRemovePlayerFromGroupRequest } from "@spt-aki/models/eft/match/IRemovePlayerFromGroupRequest";
|
import { IRequestIdRequest } from "@spt-aki/models/eft/match/IRequestIdRequest";
|
||||||
import { ISendGroupInviteRequest } from "@spt-aki/models/eft/match/ISendGroupInviteRequest";
|
|
||||||
import { ITransferGroupRequest } from "@spt-aki/models/eft/match/ITransferGroupRequest";
|
|
||||||
import { IUpdatePingRequestData } from "@spt-aki/models/eft/match/IUpdatePingRequestData";
|
import { IUpdatePingRequestData } from "@spt-aki/models/eft/match/IUpdatePingRequestData";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
@ -31,25 +30,26 @@ export declare class MatchCallbacks {
|
|||||||
exitMatch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
exitMatch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
||||||
/** Handle client/match/group/exit_from_menu */
|
/** Handle client/match/group/exit_from_menu */
|
||||||
exitToMenu(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
exitToMenu(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
||||||
|
groupCurrent(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IMatchGroupCurrentResponse>;
|
||||||
startGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
startGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
||||||
stopGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
stopGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
||||||
/** Handle client/match/group/invite/send */
|
/** Handle client/match/group/invite/send */
|
||||||
sendGroupInvite(url: string, info: ISendGroupInviteRequest, sessionID: string): IGetBodyResponseData<string>;
|
sendGroupInvite(url: string, info: IMatchGroupInviteSendRequest, sessionID: string): IGetBodyResponseData<string>;
|
||||||
/** Handle client/match/group/invite/accept */
|
/** Handle client/match/group/invite/accept */
|
||||||
acceptGroupInvite(url: string, info: IAcceptGroupInviteRequest, sessionID: string): IGetBodyResponseData<IAcceptGroupInviteResponse[]>;
|
acceptGroupInvite(url: string, info: IRequestIdRequest, sessionId: string): IGetBodyResponseData<IGroupCharacter[]>;
|
||||||
/** Handle client/match/group/invite/decline */
|
/** Handle client/match/group/invite/decline */
|
||||||
declineGroupInvite(url: string, info: IDeclineGroupInviteRequest, sessionID: string): IGetBodyResponseData<any>;
|
declineGroupInvite(url: string, info: IRequestIdRequest, sessionId: string): IGetBodyResponseData<boolean>;
|
||||||
/** Handle client/match/group/invite/cancel */
|
/** Handle client/match/group/invite/cancel */
|
||||||
cancelGroupInvite(url: string, info: ICancelGroupInviteRequest, sessionID: string): IGetBodyResponseData<boolean>;
|
cancelGroupInvite(url: string, info: IRequestIdRequest, sessionID: string): IGetBodyResponseData<boolean>;
|
||||||
/** Handle client/match/group/transfer */
|
/** Handle client/match/group/transfer */
|
||||||
transferGroup(url: string, info: ITransferGroupRequest, sessionID: string): IGetBodyResponseData<boolean>;
|
transferGroup(url: string, info: IMatchGroupTransferRequest, sessionId: string): IGetBodyResponseData<boolean>;
|
||||||
/** Handle client/match/group/invite/cancel-all */
|
/** Handle client/match/group/invite/cancel-all */
|
||||||
cancelAllGroupInvite(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
cancelAllGroupInvite(url: string, info: IEmptyRequestData, sessionId: string): IGetBodyResponseData<boolean>;
|
||||||
/** @deprecated - not called on raid start/end or game start/exit */
|
/** @deprecated - not called on raid start/end or game start/exit */
|
||||||
putMetrics(url: string, info: IPutMetricsRequestData, sessionID: string): INullResponseData;
|
putMetrics(url: string, info: IPutMetricsRequestData, sessionId: string): INullResponseData;
|
||||||
serverAvailable(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<boolean>;
|
serverAvailable(url: string, info: IEmptyRequestData, sessionId: string): IGetBodyResponseData<boolean>;
|
||||||
/** Handle match/group/start_game */
|
/** Handle match/group/start_game */
|
||||||
joinMatch(url: string, info: IJoinMatchRequestData, sessionID: string): IGetBodyResponseData<IJoinMatchResult>;
|
joinMatch(url: string, info: IMatchGroupStartGameRequest, sessionID: string): IGetBodyResponseData<IProfileStatusResponse>;
|
||||||
/** Handle client/getMetricsConfig */
|
/** Handle client/getMetricsConfig */
|
||||||
getMetrics(url: string, info: any, sessionID: string): IGetBodyResponseData<string>;
|
getMetrics(url: string, info: any, sessionID: string): IGetBodyResponseData<string>;
|
||||||
/**
|
/**
|
||||||
@ -57,16 +57,20 @@ export declare class MatchCallbacks {
|
|||||||
* Handle client/match/group/status
|
* Handle client/match/group/status
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
getGroupStatus(url: string, info: IGetGroupStatusRequestData, sessionID: string): IGetBodyResponseData<IGetGroupStatusResponse>;
|
getGroupStatus(url: string, info: IMatchGroupStatusRequest, sessionID: string): IGetBodyResponseData<IMatchGroupStatusResponse>;
|
||||||
/** Handle client/match/group/delete */
|
/** Handle client/match/group/delete */
|
||||||
deleteGroup(url: string, info: any, sessionID: string): INullResponseData;
|
deleteGroup(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<boolean>;
|
||||||
leaveGroup(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<boolean>;
|
leaveGroup(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<boolean>;
|
||||||
/** Handle client/match/group/player/remove */
|
/** Handle client/match/group/player/remove */
|
||||||
removePlayerFromGroup(url: string, info: IRemovePlayerFromGroupRequest, sessionID: string): INullResponseData;
|
removePlayerFromGroup(url: string, info: IMatchGroupPlayerRemoveRequest, sessionID: string): IGetBodyResponseData<boolean>;
|
||||||
/** Handle client/match/offline/end */
|
/** Handle client/match/offline/end */
|
||||||
endOfflineRaid(url: string, info: IEndOfflineRaidRequestData, sessionID: string): INullResponseData;
|
endOfflineRaid(url: string, info: IEndOfflineRaidRequestData, sessionID: string): INullResponseData;
|
||||||
/** Handle client/raid/configuration */
|
/** Handle client/raid/configuration */
|
||||||
getRaidConfiguration(url: string, info: IGetRaidConfigurationRequestData, sessionID: string): INullResponseData;
|
getRaidConfiguration(url: string, info: IGetRaidConfigurationRequestData, sessionID: string): INullResponseData;
|
||||||
/** Handle client/raid/configuration-by-profile */
|
/** Handle client/raid/configuration-by-profile */
|
||||||
getConfigurationByProfile(url: string, info: IGetRaidConfigurationRequestData, sessionID: string): INullResponseData;
|
getConfigurationByProfile(url: string, info: IGetRaidConfigurationRequestData, sessionID: string): INullResponseData;
|
||||||
|
/** Handle client/match/group/raid/ready */
|
||||||
|
raidReady(url: string, info: IEmptyRequestData, sessionId: string): IGetBodyResponseData<boolean>;
|
||||||
|
/** Handle client/match/group/raid/not-ready */
|
||||||
|
notRaidReady(url: string, info: IEmptyRequestData, sessionId: string): IGetBodyResponseData<boolean>;
|
||||||
}
|
}
|
||||||
|
@ -22,19 +22,17 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
|||||||
import { RagfairServer } from "@spt-aki/servers/RagfairServer";
|
import { RagfairServer } from "@spt-aki/servers/RagfairServer";
|
||||||
import { RagfairTaxService } from "@spt-aki/services/RagfairTaxService";
|
import { RagfairTaxService } from "@spt-aki/services/RagfairTaxService";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
/**
|
/**
|
||||||
* Handle ragfair related callback events
|
* Handle ragfair related callback events
|
||||||
*/
|
*/
|
||||||
export declare class RagfairCallbacks implements OnLoad, OnUpdate {
|
export declare class RagfairCallbacks implements OnLoad, OnUpdate {
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected ragfairServer: RagfairServer;
|
protected ragfairServer: RagfairServer;
|
||||||
protected ragfairController: RagfairController;
|
protected ragfairController: RagfairController;
|
||||||
protected ragfairTaxService: RagfairTaxService;
|
protected ragfairTaxService: RagfairTaxService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(httpResponse: HttpResponseUtil, jsonUtil: JsonUtil, ragfairServer: RagfairServer, ragfairController: RagfairController, ragfairTaxService: RagfairTaxService, configServer: ConfigServer);
|
constructor(httpResponse: HttpResponseUtil, ragfairServer: RagfairServer, ragfairController: RagfairController, ragfairTaxService: RagfairTaxService, configServer: ConfigServer);
|
||||||
onLoad(): Promise<void>;
|
onLoad(): Promise<void>;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
||||||
|
@ -3,11 +3,13 @@ import { BotGenerator } from "@spt-aki/generators/BotGenerator";
|
|||||||
import { BotDifficultyHelper } from "@spt-aki/helpers/BotDifficultyHelper";
|
import { BotDifficultyHelper } from "@spt-aki/helpers/BotDifficultyHelper";
|
||||||
import { BotHelper } from "@spt-aki/helpers/BotHelper";
|
import { BotHelper } from "@spt-aki/helpers/BotHelper";
|
||||||
import { ProfileHelper } from "@spt-aki/helpers/ProfileHelper";
|
import { ProfileHelper } from "@spt-aki/helpers/ProfileHelper";
|
||||||
import { IGenerateBotsRequestData } from "@spt-aki/models/eft/bot/IGenerateBotsRequestData";
|
import { MinMax } from "@spt-aki/models/common/MinMax";
|
||||||
|
import { Condition, IGenerateBotsRequestData } from "@spt-aki/models/eft/bot/IGenerateBotsRequestData";
|
||||||
import { IPmcData } from "@spt-aki/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt-aki/models/eft/common/IPmcData";
|
||||||
import { IBotBase } from "@spt-aki/models/eft/common/tables/IBotBase";
|
import { IBotBase } from "@spt-aki/models/eft/common/tables/IBotBase";
|
||||||
import { IBotCore } from "@spt-aki/models/eft/common/tables/IBotCore";
|
import { IBotCore } from "@spt-aki/models/eft/common/tables/IBotCore";
|
||||||
import { Difficulty } from "@spt-aki/models/eft/common/tables/IBotType";
|
import { Difficulty } from "@spt-aki/models/eft/common/tables/IBotType";
|
||||||
|
import { BotGenerationDetails } from "@spt-aki/models/spt/bots/BotGenerationDetails";
|
||||||
import { IBotConfig } from "@spt-aki/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt-aki/models/spt/config/IBotConfig";
|
||||||
import { IPmcConfig } from "@spt-aki/models/spt/config/IPmcConfig";
|
import { IPmcConfig } from "@spt-aki/models/spt/config/IPmcConfig";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -17,7 +19,7 @@ import { BotGenerationCacheService } from "@spt-aki/services/BotGenerationCacheS
|
|||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { MatchBotDetailsCacheService } from "@spt-aki/services/MatchBotDetailsCacheService";
|
import { MatchBotDetailsCacheService } from "@spt-aki/services/MatchBotDetailsCacheService";
|
||||||
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
export declare class BotController {
|
export declare class BotController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
@ -33,10 +35,10 @@ export declare class BotController {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
protected cloner: ICloner;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
protected pmcConfig: IPmcConfig;
|
protected pmcConfig: IPmcConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, botGenerator: BotGenerator, botHelper: BotHelper, botDifficultyHelper: BotDifficultyHelper, botGenerationCacheService: BotGenerationCacheService, matchBotDetailsCacheService: MatchBotDetailsCacheService, localisationService: LocalisationService, seasonalEventService: SeasonalEventService, profileHelper: ProfileHelper, configServer: ConfigServer, applicationContext: ApplicationContext, randomUtil: RandomUtil, jsonUtil: JsonUtil);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, botGenerator: BotGenerator, botHelper: BotHelper, botDifficultyHelper: BotDifficultyHelper, botGenerationCacheService: BotGenerationCacheService, matchBotDetailsCacheService: MatchBotDetailsCacheService, localisationService: LocalisationService, seasonalEventService: SeasonalEventService, profileHelper: ProfileHelper, configServer: ConfigServer, applicationContext: ApplicationContext, randomUtil: RandomUtil, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Return the number of bot load-out varieties to be generated
|
* Return the number of bot load-out varieties to be generated
|
||||||
* @param type bot Type we want the load-out gen count for
|
* @param type bot Type we want the load-out gen count for
|
||||||
@ -65,7 +67,7 @@ export declare class BotController {
|
|||||||
* @param info bot generation request info
|
* @param info bot generation request info
|
||||||
* @returns IBotBase array
|
* @returns IBotBase array
|
||||||
*/
|
*/
|
||||||
generate(sessionId: string, info: IGenerateBotsRequestData): IBotBase[];
|
generate(sessionId: string, info: IGenerateBotsRequestData): Promise<IBotBase[]>;
|
||||||
/**
|
/**
|
||||||
* On first bot generation bots are generated and stored inside a cache, ready to be used later
|
* On first bot generation bots are generated and stored inside a cache, ready to be used later
|
||||||
* @param request Bot generation request object
|
* @param request Bot generation request object
|
||||||
@ -73,14 +75,47 @@ export declare class BotController {
|
|||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
protected generateBotsFirstTime(request: IGenerateBotsRequestData, pmcProfile: IPmcData, sessionId: string): IBotBase[];
|
protected generateBotsFirstTime(request: IGenerateBotsRequestData, pmcProfile: IPmcData, sessionId: string): Promise<IBotBase[]>;
|
||||||
|
/**
|
||||||
|
* Create a BotGenerationDetails for the bot generator to use
|
||||||
|
* @param condition Client data defining bot type and difficulty
|
||||||
|
* @param pmcProfile Player who is generating bots
|
||||||
|
* @param allPmcsHaveSameNameAsPlayer Should all PMCs have same name as player
|
||||||
|
* @param pmcLevelRangeForMap Min/max levels for PMCs to generate within
|
||||||
|
* @param botCountToGenerate How many bots to generate
|
||||||
|
* @param generateAsPmc Force bot being generated a PMC
|
||||||
|
* @returns BotGenerationDetails
|
||||||
|
*/
|
||||||
|
protected getBotGenerationDetailsForWave(condition: Condition, pmcProfile: IPmcData, allPmcsHaveSameNameAsPlayer: boolean, pmcLevelRangeForMap: MinMax, botCountToGenerate: number, generateAsPmc: boolean): BotGenerationDetails;
|
||||||
|
/**
|
||||||
|
* Get players profile level
|
||||||
|
* @param pmcProfile Profile to get level from
|
||||||
|
* @returns Level as number
|
||||||
|
*/
|
||||||
|
protected getPlayerLevelFromProfile(pmcProfile: IPmcData): number;
|
||||||
|
/**
|
||||||
|
* Generate many bots and store then on the cache
|
||||||
|
* @param condition the condition details to generate the bots with
|
||||||
|
* @param botGenerationDetails the bot details to generate the bot with
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @returns A promise for the bots to be done generating
|
||||||
|
*/
|
||||||
|
protected generateWithBotDetails(condition: Condition, botGenerationDetails: BotGenerationDetails, sessionId: string): Promise<void>;
|
||||||
|
/**
|
||||||
|
* Generate a single bot and store it in the cache
|
||||||
|
* @param botGenerationDetails the bot details to generate the bot with
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @param cacheKey the cache key to store the bot with
|
||||||
|
* @returns A promise for the bot to be stored
|
||||||
|
*/
|
||||||
|
protected generateSingleBotAndStoreInCache(botGenerationDetails: BotGenerationDetails, sessionId: string, cacheKey: string): Promise<void>;
|
||||||
/**
|
/**
|
||||||
* Pull a single bot out of cache and return, if cache is empty add bots to it and then return
|
* Pull a single bot out of cache and return, if cache is empty add bots to it and then return
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
* @param request Bot generation request object
|
* @param request Bot generation request object
|
||||||
* @returns Single IBotBase object
|
* @returns Single IBotBase object
|
||||||
*/
|
*/
|
||||||
protected returnSingleBotFromCache(sessionId: string, request: IGenerateBotsRequestData): IBotBase[];
|
protected returnSingleBotFromCache(sessionId: string, request: IGenerateBotsRequestData): Promise<IBotBase[]>;
|
||||||
/**
|
/**
|
||||||
* Get the difficulty passed in, if its not "asonline", get selected difficulty from config
|
* Get the difficulty passed in, if its not "asonline", get selected difficulty from config
|
||||||
* @param requestedDifficulty
|
* @param requestedDifficulty
|
||||||
|
@ -8,18 +8,18 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
|||||||
import { EventOutputHolder } from "@spt-aki/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt-aki/routers/EventOutputHolder";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
export declare class BuildController {
|
export declare class BuildController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, jsonUtil: JsonUtil, databaseServer: DatabaseServer, profileHelper: ProfileHelper, itemHelper: ItemHelper, saveServer: SaveServer);
|
protected cloner: ICloner;
|
||||||
|
constructor(logger: ILogger, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, profileHelper: ProfileHelper, itemHelper: ItemHelper, saveServer: SaveServer, cloner: ICloner);
|
||||||
/** Handle client/handbook/builds/my/list */
|
/** Handle client/handbook/builds/my/list */
|
||||||
getUserBuilds(sessionID: string): IUserBuilds;
|
getUserBuilds(sessionID: string): IUserBuilds;
|
||||||
/** Handle client/builds/weapon/save */
|
/** Handle client/builds/weapon/save */
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { IDialogueChatBot } from "@spt-aki/helpers/Dialogue/IDialogueChatBot";
|
import { IDialogueChatBot } from "@spt-aki/helpers/Dialogue/IDialogueChatBot";
|
||||||
import { DialogueHelper } from "@spt-aki/helpers/DialogueHelper";
|
import { DialogueHelper } from "@spt-aki/helpers/DialogueHelper";
|
||||||
|
import { IFriendRequestData } from "@spt-aki/models/eft/dialog/IFriendRequestData";
|
||||||
|
import { IFriendRequestSendResponse } from "@spt-aki/models/eft/dialog/IFriendRequestSendResponse";
|
||||||
import { IGetAllAttachmentsResponse } from "@spt-aki/models/eft/dialog/IGetAllAttachmentsResponse";
|
import { IGetAllAttachmentsResponse } from "@spt-aki/models/eft/dialog/IGetAllAttachmentsResponse";
|
||||||
import { IGetFriendListDataResponse } from "@spt-aki/models/eft/dialog/IGetFriendListDataResponse";
|
import { IGetFriendListDataResponse } from "@spt-aki/models/eft/dialog/IGetFriendListDataResponse";
|
||||||
import { IGetMailDialogViewRequestData } from "@spt-aki/models/eft/dialog/IGetMailDialogViewRequestData";
|
import { IGetMailDialogViewRequestData } from "@spt-aki/models/eft/dialog/IGetMailDialogViewRequestData";
|
||||||
@ -145,4 +147,6 @@ export declare class DialogueController {
|
|||||||
* @returns true or false
|
* @returns true or false
|
||||||
*/
|
*/
|
||||||
protected messageHasExpired(message: Message): boolean;
|
protected messageHasExpired(message: Message): boolean;
|
||||||
|
/** Handle client/friend/request/send */
|
||||||
|
sendFriendRequest(sessionID: string, request: IFriendRequestData): IFriendRequestSendResponse;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import { ICheckVersionResponse } from "@spt-aki/models/eft/game/ICheckVersionRes
|
|||||||
import { ICurrentGroupResponse } from "@spt-aki/models/eft/game/ICurrentGroupResponse";
|
import { ICurrentGroupResponse } from "@spt-aki/models/eft/game/ICurrentGroupResponse";
|
||||||
import { IGameConfigResponse } from "@spt-aki/models/eft/game/IGameConfigResponse";
|
import { IGameConfigResponse } from "@spt-aki/models/eft/game/IGameConfigResponse";
|
||||||
import { IGameKeepAliveResponse } from "@spt-aki/models/eft/game/IGameKeepAliveResponse";
|
import { IGameKeepAliveResponse } from "@spt-aki/models/eft/game/IGameKeepAliveResponse";
|
||||||
|
import { IGameModeRequestData } from "@spt-aki/models/eft/game/IGameModeRequestData";
|
||||||
import { IGetRaidTimeRequest } from "@spt-aki/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt-aki/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt-aki/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt-aki/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt-aki/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt-aki/models/eft/game/IServerDetails";
|
||||||
@ -33,14 +34,13 @@ import { ProfileActivityService } from "@spt-aki/services/ProfileActivityService
|
|||||||
import { ProfileFixerService } from "@spt-aki/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt-aki/services/ProfileFixerService";
|
||||||
import { RaidTimeAdjustmentService } from "@spt-aki/services/RaidTimeAdjustmentService";
|
import { RaidTimeAdjustmentService } from "@spt-aki/services/RaidTimeAdjustmentService";
|
||||||
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class GameController {
|
export declare class GameController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected preAkiModLoader: PreAkiModLoader;
|
protected preAkiModLoader: PreAkiModLoader;
|
||||||
@ -59,6 +59,7 @@ export declare class GameController {
|
|||||||
protected profileActivityService: ProfileActivityService;
|
protected profileActivityService: ProfileActivityService;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected httpConfig: IHttpConfig;
|
protected httpConfig: IHttpConfig;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
@ -67,7 +68,7 @@ export declare class GameController {
|
|||||||
protected pmcConfig: IPmcConfig;
|
protected pmcConfig: IPmcConfig;
|
||||||
protected lootConfig: ILootConfig;
|
protected lootConfig: ILootConfig;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, hashUtil: HashUtil, preAkiModLoader: PreAkiModLoader, httpServerHelper: HttpServerHelper, randomUtil: RandomUtil, hideoutHelper: HideoutHelper, profileHelper: ProfileHelper, profileFixerService: ProfileFixerService, localisationService: LocalisationService, customLocationWaveService: CustomLocationWaveService, openZoneService: OpenZoneService, seasonalEventService: SeasonalEventService, itemBaseClassService: ItemBaseClassService, giftService: GiftService, raidTimeAdjustmentService: RaidTimeAdjustmentService, profileActivityService: ProfileActivityService, applicationContext: ApplicationContext, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, timeUtil: TimeUtil, hashUtil: HashUtil, preAkiModLoader: PreAkiModLoader, httpServerHelper: HttpServerHelper, randomUtil: RandomUtil, hideoutHelper: HideoutHelper, profileHelper: ProfileHelper, profileFixerService: ProfileFixerService, localisationService: LocalisationService, customLocationWaveService: CustomLocationWaveService, openZoneService: OpenZoneService, seasonalEventService: SeasonalEventService, itemBaseClassService: ItemBaseClassService, giftService: GiftService, raidTimeAdjustmentService: RaidTimeAdjustmentService, profileActivityService: ProfileActivityService, applicationContext: ApplicationContext, configServer: ConfigServer, cloner: ICloner);
|
||||||
load(): void;
|
load(): void;
|
||||||
/**
|
/**
|
||||||
* Handle client/game/start
|
* Handle client/game/start
|
||||||
@ -88,6 +89,10 @@ export declare class GameController {
|
|||||||
* Handle client/game/config
|
* Handle client/game/config
|
||||||
*/
|
*/
|
||||||
getGameConfig(sessionID: string): IGameConfigResponse;
|
getGameConfig(sessionID: string): IGameConfigResponse;
|
||||||
|
/**
|
||||||
|
* Handle client/game/mode
|
||||||
|
*/
|
||||||
|
getGameMode(sessionID: string, info: IGameModeRequestData): any;
|
||||||
/**
|
/**
|
||||||
* Handle client/server/list
|
* Handle client/server/list
|
||||||
*/
|
*/
|
||||||
|
@ -12,11 +12,10 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
|||||||
import { EventOutputHolder } from "@spt-aki/routers/EventOutputHolder";
|
import { EventOutputHolder } from "@spt-aki/routers/EventOutputHolder";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { PaymentService } from "@spt-aki/services/PaymentService";
|
import { PaymentService } from "@spt-aki/services/PaymentService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
export declare class HealthController {
|
export declare class HealthController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected paymentService: PaymentService;
|
protected paymentService: PaymentService;
|
||||||
@ -24,7 +23,8 @@ export declare class HealthController {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected healthHelper: HealthHelper;
|
protected healthHelper: HealthHelper;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, eventOutputHolder: EventOutputHolder, itemHelper: ItemHelper, paymentService: PaymentService, inventoryHelper: InventoryHelper, localisationService: LocalisationService, httpResponse: HttpResponseUtil, healthHelper: HealthHelper);
|
protected cloner: ICloner;
|
||||||
|
constructor(logger: ILogger, eventOutputHolder: EventOutputHolder, itemHelper: ItemHelper, paymentService: PaymentService, inventoryHelper: InventoryHelper, localisationService: LocalisationService, httpResponse: HttpResponseUtil, healthHelper: HealthHelper, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* stores in-raid player health
|
* stores in-raid player health
|
||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
|
@ -35,9 +35,9 @@ import { FenceService } from "@spt-aki/services/FenceService";
|
|||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { PlayerService } from "@spt-aki/services/PlayerService";
|
import { PlayerService } from "@spt-aki/services/PlayerService";
|
||||||
import { ProfileActivityService } from "@spt-aki/services/ProfileActivityService";
|
import { ProfileActivityService } from "@spt-aki/services/ProfileActivityService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class HideoutController {
|
export declare class HideoutController {
|
||||||
@ -60,12 +60,12 @@ export declare class HideoutController {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected profileActivityService: ProfileActivityService;
|
protected profileActivityService: ProfileActivityService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected fenceService: FenceService;
|
protected fenceService: FenceService;
|
||||||
|
protected cloner: ICloner;
|
||||||
/** Key used in TaskConditionCounters array */
|
/** Key used in TaskConditionCounters array */
|
||||||
protected static nameTaskConditionCountersCrafting: string;
|
protected static nameTaskConditionCountersCrafting: string;
|
||||||
protected hideoutConfig: IHideoutConfig;
|
protected hideoutConfig: IHideoutConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, randomUtil: RandomUtil, inventoryHelper: InventoryHelper, itemHelper: ItemHelper, saveServer: SaveServer, playerService: PlayerService, presetHelper: PresetHelper, paymentHelper: PaymentHelper, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, profileHelper: ProfileHelper, hideoutHelper: HideoutHelper, scavCaseRewardGenerator: ScavCaseRewardGenerator, localisationService: LocalisationService, profileActivityService: ProfileActivityService, configServer: ConfigServer, jsonUtil: JsonUtil, fenceService: FenceService);
|
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, randomUtil: RandomUtil, inventoryHelper: InventoryHelper, itemHelper: ItemHelper, saveServer: SaveServer, playerService: PlayerService, presetHelper: PresetHelper, paymentHelper: PaymentHelper, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, profileHelper: ProfileHelper, hideoutHelper: HideoutHelper, scavCaseRewardGenerator: ScavCaseRewardGenerator, localisationService: LocalisationService, profileActivityService: ProfileActivityService, configServer: ConfigServer, fenceService: FenceService, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Handle HideoutUpgrade event
|
* Handle HideoutUpgrade event
|
||||||
* Start a hideout area upgrade
|
* Start a hideout area upgrade
|
||||||
|
@ -28,7 +28,6 @@ import { MailSendService } from "@spt-aki/services/MailSendService";
|
|||||||
import { MatchBotDetailsCacheService } from "@spt-aki/services/MatchBotDetailsCacheService";
|
import { MatchBotDetailsCacheService } from "@spt-aki/services/MatchBotDetailsCacheService";
|
||||||
import { PmcChatResponseService } from "@spt-aki/services/PmcChatResponseService";
|
import { PmcChatResponseService } from "@spt-aki/services/PmcChatResponseService";
|
||||||
import { TraderServicesService } from "@spt-aki/services/TraderServicesService";
|
import { TraderServicesService } from "@spt-aki/services/TraderServicesService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
@ -37,7 +36,6 @@ import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
|||||||
export declare class InraidController {
|
export declare class InraidController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected pmcChatResponseService: PmcChatResponseService;
|
protected pmcChatResponseService: PmcChatResponseService;
|
||||||
@ -62,7 +60,7 @@ export declare class InraidController {
|
|||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected hideoutConfig: IHideoutConfig;
|
protected hideoutConfig: IHideoutConfig;
|
||||||
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
constructor(logger: ILogger, saveServer: SaveServer, timeUtil: TimeUtil, databaseServer: DatabaseServer, pmcChatResponseService: PmcChatResponseService, matchBotDetailsCacheService: MatchBotDetailsCacheService, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, traderServicesService: TraderServicesService, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, applicationContext: ApplicationContext, configServer: ConfigServer, mailSendService: MailSendService, randomUtil: RandomUtil);
|
||||||
/**
|
/**
|
||||||
* Save locationId to active profiles inraid object AND app context
|
* Save locationId to active profiles inraid object AND app context
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
|
@ -20,8 +20,8 @@ import { InsuranceService } from "@spt-aki/services/InsuranceService";
|
|||||||
import { MailSendService } from "@spt-aki/services/MailSendService";
|
import { MailSendService } from "@spt-aki/services/MailSendService";
|
||||||
import { PaymentService } from "@spt-aki/services/PaymentService";
|
import { PaymentService } from "@spt-aki/services/PaymentService";
|
||||||
import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
@ -29,7 +29,6 @@ export declare class InsuranceController {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
@ -45,9 +44,10 @@ export declare class InsuranceController {
|
|||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected ragfairPriceService: RagfairPriceService;
|
protected ragfairPriceService: RagfairPriceService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected insuranceConfig: IInsuranceConfig;
|
protected insuranceConfig: IInsuranceConfig;
|
||||||
protected roubleTpl: string;
|
protected roubleTpl: string;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, mathUtil: MathUtil, jsonUtil: JsonUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileHelper: ProfileHelper, dialogueHelper: DialogueHelper, weightedRandomHelper: WeightedRandomHelper, traderHelper: TraderHelper, paymentService: PaymentService, insuranceService: InsuranceService, mailSendService: MailSendService, ragfairPriceService: RagfairPriceService, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, mathUtil: MathUtil, hashUtil: HashUtil, eventOutputHolder: EventOutputHolder, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileHelper: ProfileHelper, dialogueHelper: DialogueHelper, weightedRandomHelper: WeightedRandomHelper, traderHelper: TraderHelper, paymentService: PaymentService, insuranceService: InsuranceService, mailSendService: MailSendService, ragfairPriceService: RagfairPriceService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Process insurance items of all profiles prior to being given back to the player through the mail service.
|
* Process insurance items of all profiles prior to being given back to the player through the mail service.
|
||||||
*
|
*
|
||||||
|
@ -35,14 +35,13 @@ import { FenceService } from "@spt-aki/services/FenceService";
|
|||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { PlayerService } from "@spt-aki/services/PlayerService";
|
import { PlayerService } from "@spt-aki/services/PlayerService";
|
||||||
import { RagfairOfferService } from "@spt-aki/services/RagfairOfferService";
|
import { RagfairOfferService } from "@spt-aki/services/RagfairOfferService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
export declare class InventoryController {
|
export declare class InventoryController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
@ -59,7 +58,8 @@ export declare class InventoryController {
|
|||||||
protected lootGenerator: LootGenerator;
|
protected lootGenerator: LootGenerator;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected httpResponseUtil: HttpResponseUtil;
|
protected httpResponseUtil: HttpResponseUtil;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, jsonUtil: JsonUtil, itemHelper: ItemHelper, randomUtil: RandomUtil, databaseServer: DatabaseServer, fenceService: FenceService, presetHelper: PresetHelper, inventoryHelper: InventoryHelper, questHelper: QuestHelper, hideoutHelper: HideoutHelper, ragfairOfferService: RagfairOfferService, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, playerService: PlayerService, lootGenerator: LootGenerator, eventOutputHolder: EventOutputHolder, httpResponseUtil: HttpResponseUtil);
|
protected cloner: ICloner;
|
||||||
|
constructor(logger: ILogger, hashUtil: HashUtil, itemHelper: ItemHelper, randomUtil: RandomUtil, databaseServer: DatabaseServer, fenceService: FenceService, presetHelper: PresetHelper, inventoryHelper: InventoryHelper, questHelper: QuestHelper, hideoutHelper: HideoutHelper, ragfairOfferService: RagfairOfferService, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, playerService: PlayerService, lootGenerator: LootGenerator, eventOutputHolder: EventOutputHolder, httpResponseUtil: HttpResponseUtil, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Move Item
|
* Move Item
|
||||||
* change location of item with parentId and slotId
|
* change location of item with parentId and slotId
|
||||||
|
@ -16,12 +16,11 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RaidTimeAdjustmentService } from "@spt-aki/services/RaidTimeAdjustmentService";
|
import { RaidTimeAdjustmentService } from "@spt-aki/services/RaidTimeAdjustmentService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class LocationController {
|
export declare class LocationController {
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected weightedRandomHelper: WeightedRandomHelper;
|
protected weightedRandomHelper: WeightedRandomHelper;
|
||||||
@ -35,9 +34,10 @@ export declare class LocationController {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected airdropConfig: IAirdropConfig;
|
protected airdropConfig: IAirdropConfig;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(jsonUtil: JsonUtil, hashUtil: HashUtil, randomUtil: RandomUtil, weightedRandomHelper: WeightedRandomHelper, logger: ILogger, locationGenerator: LocationGenerator, localisationService: LocalisationService, raidTimeAdjustmentService: RaidTimeAdjustmentService, itemFilterService: ItemFilterService, lootGenerator: LootGenerator, databaseServer: DatabaseServer, timeUtil: TimeUtil, configServer: ConfigServer, applicationContext: ApplicationContext);
|
constructor(hashUtil: HashUtil, randomUtil: RandomUtil, weightedRandomHelper: WeightedRandomHelper, logger: ILogger, locationGenerator: LocationGenerator, localisationService: LocalisationService, raidTimeAdjustmentService: RaidTimeAdjustmentService, itemFilterService: ItemFilterService, lootGenerator: LootGenerator, databaseServer: DatabaseServer, timeUtil: TimeUtil, configServer: ConfigServer, applicationContext: ApplicationContext, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Handle client/location/getLocalloot
|
* Handle client/location/getLocalloot
|
||||||
* Get a location (map) with generated loot data
|
* Get a location (map) with generated loot data
|
||||||
|
@ -4,11 +4,11 @@ import { ProfileHelper } from "@spt-aki/helpers/ProfileHelper";
|
|||||||
import { TraderHelper } from "@spt-aki/helpers/TraderHelper";
|
import { TraderHelper } from "@spt-aki/helpers/TraderHelper";
|
||||||
import { IPmcData } from "@spt-aki/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt-aki/models/eft/common/IPmcData";
|
||||||
import { IEndOfflineRaidRequestData } from "@spt-aki/models/eft/match/IEndOfflineRaidRequestData";
|
import { IEndOfflineRaidRequestData } from "@spt-aki/models/eft/match/IEndOfflineRaidRequestData";
|
||||||
import { IGetGroupStatusRequestData } from "@spt-aki/models/eft/match/IGetGroupStatusRequestData";
|
|
||||||
import { IGetGroupStatusResponse } from "@spt-aki/models/eft/match/IGetGroupStatusResponse";
|
|
||||||
import { IGetRaidConfigurationRequestData } from "@spt-aki/models/eft/match/IGetRaidConfigurationRequestData";
|
import { IGetRaidConfigurationRequestData } from "@spt-aki/models/eft/match/IGetRaidConfigurationRequestData";
|
||||||
import { IJoinMatchRequestData } from "@spt-aki/models/eft/match/IJoinMatchRequestData";
|
import { IMatchGroupStartGameRequest } from "@spt-aki/models/eft/match/IMatchGroupStartGameRequest";
|
||||||
import { IJoinMatchResult } from "@spt-aki/models/eft/match/IJoinMatchResult";
|
import { IMatchGroupStatusRequest } from "@spt-aki/models/eft/match/IMatchGroupStatusRequest";
|
||||||
|
import { IMatchGroupStatusResponse } from "@spt-aki/models/eft/match/IMatchGroupStatusResponse";
|
||||||
|
import { IProfileStatusResponse } from "@spt-aki/models/eft/match/IProfileStatusResponse";
|
||||||
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
import { IInRaidConfig } from "@spt-aki/models/spt/config/IInRaidConfig";
|
||||||
import { IMatchConfig } from "@spt-aki/models/spt/config/IMatchConfig";
|
import { IMatchConfig } from "@spt-aki/models/spt/config/IMatchConfig";
|
||||||
import { IPmcConfig } from "@spt-aki/models/spt/config/IPmcConfig";
|
import { IPmcConfig } from "@spt-aki/models/spt/config/IPmcConfig";
|
||||||
@ -49,9 +49,9 @@ export declare class MatchController {
|
|||||||
/** Handle client/match/group/delete */
|
/** Handle client/match/group/delete */
|
||||||
deleteGroup(info: any): void;
|
deleteGroup(info: any): void;
|
||||||
/** Handle match/group/start_game */
|
/** Handle match/group/start_game */
|
||||||
joinMatch(info: IJoinMatchRequestData, sessionId: string): IJoinMatchResult;
|
joinMatch(info: IMatchGroupStartGameRequest, sessionId: string): IProfileStatusResponse;
|
||||||
/** Handle client/match/group/status */
|
/** Handle client/match/group/status */
|
||||||
getGroupStatus(info: IGetGroupStatusRequestData): IGetGroupStatusResponse;
|
getGroupStatus(info: IMatchGroupStatusRequest): IMatchGroupStatusResponse;
|
||||||
/**
|
/**
|
||||||
* Handle /client/raid/configuration
|
* Handle /client/raid/configuration
|
||||||
* @param request Raid config request
|
* @param request Raid config request
|
||||||
|
@ -24,13 +24,12 @@ import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
|||||||
import { MailSendService } from "@spt-aki/services/MailSendService";
|
import { MailSendService } from "@spt-aki/services/MailSendService";
|
||||||
import { PlayerService } from "@spt-aki/services/PlayerService";
|
import { PlayerService } from "@spt-aki/services/PlayerService";
|
||||||
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class QuestController {
|
export declare class QuestController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected httpResponseUtil: HttpResponseUtil;
|
protected httpResponseUtil: HttpResponseUtil;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
@ -46,8 +45,9 @@ export declare class QuestController {
|
|||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, jsonUtil: JsonUtil, httpResponseUtil: HttpResponseUtil, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, itemHelper: ItemHelper, dialogueHelper: DialogueHelper, mailSendService: MailSendService, profileHelper: ProfileHelper, traderHelper: TraderHelper, questHelper: QuestHelper, questConditionHelper: QuestConditionHelper, playerService: PlayerService, localeService: LocaleService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, httpResponseUtil: HttpResponseUtil, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, itemHelper: ItemHelper, dialogueHelper: DialogueHelper, mailSendService: MailSendService, profileHelper: ProfileHelper, traderHelper: TraderHelper, questHelper: QuestHelper, questConditionHelper: QuestConditionHelper, playerService: PlayerService, localeService: LocaleService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Handle client/quest/list
|
* Handle client/quest/list
|
||||||
* Get all quests visible to player
|
* Get all quests visible to player
|
||||||
|
@ -16,8 +16,8 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
|||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { PaymentService } from "@spt-aki/services/PaymentService";
|
import { PaymentService } from "@spt-aki/services/PaymentService";
|
||||||
import { ProfileFixerService } from "@spt-aki/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt-aki/services/ProfileFixerService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
@ -27,7 +27,6 @@ export declare class RepeatableQuestController {
|
|||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected profileFixerService: ProfileFixerService;
|
protected profileFixerService: ProfileFixerService;
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
@ -37,8 +36,9 @@ export declare class RepeatableQuestController {
|
|||||||
protected repeatableQuestHelper: RepeatableQuestHelper;
|
protected repeatableQuestHelper: RepeatableQuestHelper;
|
||||||
protected questHelper: QuestHelper;
|
protected questHelper: QuestHelper;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, timeUtil: TimeUtil, randomUtil: RandomUtil, httpResponse: HttpResponseUtil, jsonUtil: JsonUtil, profileHelper: ProfileHelper, profileFixerService: ProfileFixerService, eventOutputHolder: EventOutputHolder, paymentService: PaymentService, objectId: ObjectId, repeatableQuestGenerator: RepeatableQuestGenerator, repeatableQuestHelper: RepeatableQuestHelper, questHelper: QuestHelper, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, timeUtil: TimeUtil, randomUtil: RandomUtil, httpResponse: HttpResponseUtil, profileHelper: ProfileHelper, profileFixerService: ProfileFixerService, eventOutputHolder: EventOutputHolder, paymentService: PaymentService, objectId: ObjectId, repeatableQuestGenerator: RepeatableQuestGenerator, repeatableQuestHelper: RepeatableQuestHelper, questHelper: QuestHelper, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Handle client/repeatalbeQuests/activityPeriods
|
* Handle client/repeatalbeQuests/activityPeriods
|
||||||
* Returns an array of objects in the format of repeatable quests to the client.
|
* Returns an array of objects in the format of repeatable quests to the client.
|
||||||
|
@ -23,7 +23,6 @@ import { MailSendService } from "@spt-aki/services/MailSendService";
|
|||||||
import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class TradeController {
|
export declare class TradeController {
|
||||||
@ -37,7 +36,6 @@ export declare class TradeController {
|
|||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected ragfairServer: RagfairServer;
|
protected ragfairServer: RagfairServer;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
@ -47,7 +45,7 @@ export declare class TradeController {
|
|||||||
protected roubleTpl: string;
|
protected roubleTpl: string;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, eventOutputHolder: EventOutputHolder, tradeHelper: TradeHelper, timeUtil: TimeUtil, randomUtil: RandomUtil, hashUtil: HashUtil, itemHelper: ItemHelper, profileHelper: ProfileHelper, traderHelper: TraderHelper, jsonUtil: JsonUtil, ragfairServer: RagfairServer, httpResponse: HttpResponseUtil, localisationService: LocalisationService, ragfairPriceService: RagfairPriceService, mailSendService: MailSendService, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, eventOutputHolder: EventOutputHolder, tradeHelper: TradeHelper, timeUtil: TimeUtil, randomUtil: RandomUtil, hashUtil: HashUtil, itemHelper: ItemHelper, profileHelper: ProfileHelper, traderHelper: TraderHelper, ragfairServer: RagfairServer, httpResponse: HttpResponseUtil, localisationService: LocalisationService, ragfairPriceService: RagfairPriceService, mailSendService: MailSendService, configServer: ConfigServer);
|
||||||
/** Handle TradingConfirm event */
|
/** Handle TradingConfirm event */
|
||||||
confirmTrading(pmcData: IPmcData, request: IProcessBaseTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
confirmTrading(pmcData: IPmcData, request: IProcessBaseTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
/** Handle RagFairBuyOffer event */
|
/** Handle RagFairBuyOffer event */
|
||||||
|
@ -10,7 +10,7 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { FenceService } from "@spt-aki/services/FenceService";
|
import { FenceService } from "@spt-aki/services/FenceService";
|
||||||
import { TraderAssortService } from "@spt-aki/services/TraderAssortService";
|
import { TraderAssortService } from "@spt-aki/services/TraderAssortService";
|
||||||
import { TraderPurchasePersisterService } from "@spt-aki/services/TraderPurchasePersisterService";
|
import { TraderPurchasePersisterService } from "@spt-aki/services/TraderPurchasePersisterService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class TraderController {
|
export declare class TraderController {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
@ -23,10 +23,10 @@ export declare class TraderController {
|
|||||||
protected traderPurchasePersisterService: TraderPurchasePersisterService;
|
protected traderPurchasePersisterService: TraderPurchasePersisterService;
|
||||||
protected fenceService: FenceService;
|
protected fenceService: FenceService;
|
||||||
protected fenceBaseAssortGenerator: FenceBaseAssortGenerator;
|
protected fenceBaseAssortGenerator: FenceBaseAssortGenerator;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, databaseServer: DatabaseServer, traderAssortHelper: TraderAssortHelper, profileHelper: ProfileHelper, traderHelper: TraderHelper, traderAssortService: TraderAssortService, traderPurchasePersisterService: TraderPurchasePersisterService, fenceService: FenceService, fenceBaseAssortGenerator: FenceBaseAssortGenerator, jsonUtil: JsonUtil, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, databaseServer: DatabaseServer, traderAssortHelper: TraderAssortHelper, profileHelper: ProfileHelper, traderHelper: TraderHelper, traderAssortService: TraderAssortService, traderPurchasePersisterService: TraderPurchasePersisterService, fenceService: FenceService, fenceBaseAssortGenerator: FenceBaseAssortGenerator, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Runs when onLoad event is fired
|
* Runs when onLoad event is fired
|
||||||
* Iterate over traders, ensure a pristine copy of their assorts is stored in traderAssortService
|
* Iterate over traders, ensure a pristine copy of their assorts is stored in traderAssortService
|
||||||
|
10
TypeScript/10ScopesAndTypes/types/di/Router.d.ts
vendored
10
TypeScript/10ScopesAndTypes/types/di/Router.d.ts
vendored
@ -11,17 +11,17 @@ export declare class Router {
|
|||||||
export declare class StaticRouter extends Router {
|
export declare class StaticRouter extends Router {
|
||||||
private routes;
|
private routes;
|
||||||
constructor(routes: RouteAction[]);
|
constructor(routes: RouteAction[]);
|
||||||
handleStatic(url: string, info: any, sessionID: string, output: string): any;
|
handleStatic(url: string, info: any, sessionID: string, output: string): Promise<any>;
|
||||||
getHandledRoutes(): HandledRoute[];
|
getHandledRoutes(): HandledRoute[];
|
||||||
}
|
}
|
||||||
export declare class DynamicRouter extends Router {
|
export declare class DynamicRouter extends Router {
|
||||||
private routes;
|
private routes;
|
||||||
constructor(routes: RouteAction[]);
|
constructor(routes: RouteAction[]);
|
||||||
handleDynamic(url: string, info: any, sessionID: string, output: string): any;
|
handleDynamic(url: string, info: any, sessionID: string, output: string): Promise<any>;
|
||||||
getHandledRoutes(): HandledRoute[];
|
getHandledRoutes(): HandledRoute[];
|
||||||
}
|
}
|
||||||
export declare class ItemEventRouterDefinition extends Router {
|
export declare class ItemEventRouterDefinition extends Router {
|
||||||
handleItemEvent(url: string, pmcData: IPmcData, body: any, sessionID: string, output: IItemEventRouterResponse): void;
|
handleItemEvent(url: string, pmcData: IPmcData, body: any, sessionID: string, output: IItemEventRouterResponse): Promise<any>;
|
||||||
}
|
}
|
||||||
export declare class SaveLoadRouter extends Router {
|
export declare class SaveLoadRouter extends Router {
|
||||||
handleLoad(profile: IAkiProfile): IAkiProfile;
|
handleLoad(profile: IAkiProfile): IAkiProfile;
|
||||||
@ -33,6 +33,6 @@ export declare class HandledRoute {
|
|||||||
}
|
}
|
||||||
export declare class RouteAction {
|
export declare class RouteAction {
|
||||||
url: string;
|
url: string;
|
||||||
action: (url: string, info: any, sessionID: string, output: string) => any;
|
action: (url: string, info: any, sessionID: string, output: string) => Promise<any>;
|
||||||
constructor(url: string, action: (url: string, info: any, sessionID: string, output: string) => any);
|
constructor(url: string, action: (url: string, info: any, sessionID: string, output: string) => Promise<any>);
|
||||||
}
|
}
|
||||||
|
@ -21,14 +21,13 @@ import { BotEquipmentModPoolService } from "@spt-aki/services/BotEquipmentModPoo
|
|||||||
import { BotModLimits, BotWeaponModLimitService } from "@spt-aki/services/BotWeaponModLimitService";
|
import { BotModLimits, BotWeaponModLimitService } from "@spt-aki/services/BotWeaponModLimitService";
|
||||||
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { IGenerateEquipmentProperties } from "./BotInventoryGenerator";
|
import { IGenerateEquipmentProperties } from "./BotInventoryGenerator";
|
||||||
import { IFilterPlateModsForSlotByLevelResult } from "./IFilterPlateModsForSlotByLevelResult";
|
import { IFilterPlateModsForSlotByLevelResult } from "./IFilterPlateModsForSlotByLevelResult";
|
||||||
export declare class BotEquipmentModGenerator {
|
export declare class BotEquipmentModGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected probabilityHelper: ProbabilityHelper;
|
protected probabilityHelper: ProbabilityHelper;
|
||||||
@ -46,8 +45,9 @@ export declare class BotEquipmentModGenerator {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected botEquipmentModPoolService: BotEquipmentModPoolService;
|
protected botEquipmentModPoolService: BotEquipmentModPoolService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, hashUtil: HashUtil, randomUtil: RandomUtil, probabilityHelper: ProbabilityHelper, databaseServer: DatabaseServer, itemHelper: ItemHelper, botEquipmentFilterService: BotEquipmentFilterService, itemFilterService: ItemFilterService, profileHelper: ProfileHelper, botWeaponModLimitService: BotWeaponModLimitService, botHelper: BotHelper, botGeneratorHelper: BotGeneratorHelper, botWeaponGeneratorHelper: BotWeaponGeneratorHelper, weightedRandomHelper: WeightedRandomHelper, presetHelper: PresetHelper, localisationService: LocalisationService, botEquipmentModPoolService: BotEquipmentModPoolService, configServer: ConfigServer);
|
constructor(logger: ILogger, hashUtil: HashUtil, randomUtil: RandomUtil, probabilityHelper: ProbabilityHelper, databaseServer: DatabaseServer, itemHelper: ItemHelper, botEquipmentFilterService: BotEquipmentFilterService, itemFilterService: ItemFilterService, profileHelper: ProfileHelper, botWeaponModLimitService: BotWeaponModLimitService, botHelper: BotHelper, botGeneratorHelper: BotGeneratorHelper, botWeaponGeneratorHelper: BotWeaponGeneratorHelper, weightedRandomHelper: WeightedRandomHelper, presetHelper: PresetHelper, localisationService: LocalisationService, botEquipmentModPoolService: BotEquipmentModPoolService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Check mods are compatible and add to array
|
* Check mods are compatible and add to array
|
||||||
* @param equipment Equipment item to add mods to
|
* @param equipment Equipment item to add mods to
|
||||||
@ -151,7 +151,7 @@ export declare class BotEquipmentModGenerator {
|
|||||||
* Get default preset for weapon, get specific weapon presets for edge cases (mp5/silenced dvl)
|
* Get default preset for weapon, get specific weapon presets for edge cases (mp5/silenced dvl)
|
||||||
* @param weaponTemplate
|
* @param weaponTemplate
|
||||||
* @param parentItemTpl
|
* @param parentItemTpl
|
||||||
* @returns
|
* @returns Default preset found
|
||||||
*/
|
*/
|
||||||
protected getMatchingPreset(weaponTemplate: ITemplateItem, parentItemTpl: string): IPreset;
|
protected getMatchingPreset(weaponTemplate: ITemplateItem, parentItemTpl: string): IPreset;
|
||||||
/**
|
/**
|
||||||
|
@ -15,8 +15,8 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { BotEquipmentFilterService } from "@spt-aki/services/BotEquipmentFilterService";
|
import { BotEquipmentFilterService } from "@spt-aki/services/BotEquipmentFilterService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class BotGenerator {
|
export declare class BotGenerator {
|
||||||
@ -24,7 +24,6 @@ export declare class BotGenerator {
|
|||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected botInventoryGenerator: BotInventoryGenerator;
|
protected botInventoryGenerator: BotInventoryGenerator;
|
||||||
@ -36,9 +35,10 @@ export declare class BotGenerator {
|
|||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
protected pmcConfig: IPmcConfig;
|
protected pmcConfig: IPmcConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, randomUtil: RandomUtil, timeUtil: TimeUtil, jsonUtil: JsonUtil, profileHelper: ProfileHelper, databaseServer: DatabaseServer, botInventoryGenerator: BotInventoryGenerator, botLevelGenerator: BotLevelGenerator, botEquipmentFilterService: BotEquipmentFilterService, weightedRandomHelper: WeightedRandomHelper, botHelper: BotHelper, botDifficultyHelper: BotDifficultyHelper, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, hashUtil: HashUtil, randomUtil: RandomUtil, timeUtil: TimeUtil, profileHelper: ProfileHelper, databaseServer: DatabaseServer, botInventoryGenerator: BotInventoryGenerator, botLevelGenerator: BotLevelGenerator, botEquipmentFilterService: BotEquipmentFilterService, weightedRandomHelper: WeightedRandomHelper, botHelper: BotHelper, botDifficultyHelper: BotDifficultyHelper, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Generate a player scav bot object
|
* Generate a player scav bot object
|
||||||
* @param role e.g. assault / pmcbot
|
* @param role e.g. assault / pmcbot
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { MinMax } from "@spt-aki/models/common/MinMax";
|
import { MinMax } from "@spt-aki/models/common/MinMax";
|
||||||
import { IRandomisedBotLevelResult } from "@spt-aki/models/eft/bot/IRandomisedBotLevelResult";
|
import { IRandomisedBotLevelResult } from "@spt-aki/models/eft/bot/IRandomisedBotLevelResult";
|
||||||
import { IExpTable } from "@spt-aki/models/eft/common/IGlobals";
|
|
||||||
import { IBotBase } from "@spt-aki/models/eft/common/tables/IBotBase";
|
import { IBotBase } from "@spt-aki/models/eft/common/tables/IBotBase";
|
||||||
import { BotGenerationDetails } from "@spt-aki/models/spt/bots/BotGenerationDetails";
|
import { BotGenerationDetails } from "@spt-aki/models/spt/bots/BotGenerationDetails";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
@ -13,24 +12,26 @@ export declare class BotLevelGenerator {
|
|||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer);
|
||||||
/**
|
/**
|
||||||
* Return a randomised bot level and exp value
|
* Return a randomised bot level and exp value
|
||||||
* @param levelDetails min and max of level for bot
|
* @param levelDetails Min and max of level for bot
|
||||||
* @param botGenerationDetails Deatils to help generate a bot
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param bot being level is being generated for
|
* @param bot Bot the level is being generated for
|
||||||
* @returns IRandomisedBotLevelResult object
|
* @returns IRandomisedBotLevelResult object
|
||||||
*/
|
*/
|
||||||
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
generateBotLevel(levelDetails: MinMax, botGenerationDetails: BotGenerationDetails, bot: IBotBase): IRandomisedBotLevelResult;
|
||||||
/**
|
/**
|
||||||
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
* Get the highest level a bot can be relative to the players level, but no further than the max size from globals.exp_table
|
||||||
* @param playerLevel Players current level
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param relativeDeltaMax max delta above player level to go
|
* @param levelDetails
|
||||||
* @returns highest level possible for bot
|
* @param maxLevel Max possible level
|
||||||
|
* @returns Highest level possible for bot
|
||||||
*/
|
*/
|
||||||
protected getHighestRelativeBotLevel(playerLevel: number, relativeDeltaMax: number, levelDetails: MinMax, expTable: IExpTable[]): number;
|
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
|
* Get the lowest level a bot can be relative to the players level, but no lower than 1
|
||||||
* @param playerLevel Players current level
|
* @param botGenerationDetails Details to help generate a bot
|
||||||
* @param relativeDeltaMin Min delta below player level to go
|
* @param levelDetails
|
||||||
* @returns lowest level possible for bot
|
* @param maxlevel Max level allowed
|
||||||
|
* @returns Lowest level possible for bot
|
||||||
*/
|
*/
|
||||||
protected getLowestRelativeBotLevel(playerLevel: number, relativeDeltaMin: number, levelDetails: MinMax, expTable: IExpTable[]): number;
|
protected getLowestRelativeBotLevel(botGenerationDetails: BotGenerationDetails, levelDetails: MinMax, maxlevel: number): number;
|
||||||
}
|
}
|
||||||
|
@ -18,15 +18,14 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
|||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { BotLootCacheService } from "@spt-aki/services/BotLootCacheService";
|
import { BotLootCacheService } from "@spt-aki/services/BotLootCacheService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
export declare class BotLootGenerator {
|
export declare class BotLootGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected inventoryHelper: InventoryHelper;
|
protected inventoryHelper: InventoryHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
@ -37,9 +36,10 @@ export declare class BotLootGenerator {
|
|||||||
protected botLootCacheService: BotLootCacheService;
|
protected botLootCacheService: BotLootCacheService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
protected pmcConfig: IPmcConfig;
|
protected pmcConfig: IPmcConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, randomUtil: RandomUtil, itemHelper: ItemHelper, jsonUtil: JsonUtil, inventoryHelper: InventoryHelper, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, botGeneratorHelper: BotGeneratorHelper, botWeaponGenerator: BotWeaponGenerator, weightedRandomHelper: WeightedRandomHelper, botHelper: BotHelper, botLootCacheService: BotLootCacheService, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, hashUtil: HashUtil, randomUtil: RandomUtil, itemHelper: ItemHelper, inventoryHelper: InventoryHelper, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, botGeneratorHelper: BotGeneratorHelper, botWeaponGenerator: BotWeaponGenerator, weightedRandomHelper: WeightedRandomHelper, botHelper: BotHelper, botLootCacheService: BotLootCacheService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
protected getItemSpawnLimitsForBot(botRole: string): IItemSpawnLimitSettings;
|
protected getItemSpawnLimitsForBot(botRole: string): IItemSpawnLimitSettings;
|
||||||
/**
|
/**
|
||||||
* Add loot to bots containers
|
* Add loot to bots containers
|
||||||
|
@ -18,11 +18,10 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { BotWeaponModLimitService } from "@spt-aki/services/BotWeaponModLimitService";
|
import { BotWeaponModLimitService } from "@spt-aki/services/BotWeaponModLimitService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RepairService } from "@spt-aki/services/RepairService";
|
import { RepairService } from "@spt-aki/services/RepairService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
export declare class BotWeaponGenerator {
|
export declare class BotWeaponGenerator {
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
@ -37,11 +36,12 @@ export declare class BotWeaponGenerator {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected repairService: RepairService;
|
protected repairService: RepairService;
|
||||||
protected inventoryMagGenComponents: IInventoryMagGen[];
|
protected inventoryMagGenComponents: IInventoryMagGen[];
|
||||||
|
protected cloner: ICloner;
|
||||||
protected readonly modMagazineSlotId = "mod_magazine";
|
protected readonly modMagazineSlotId = "mod_magazine";
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
protected pmcConfig: IPmcConfig;
|
protected pmcConfig: IPmcConfig;
|
||||||
protected repairConfig: IRepairConfig;
|
protected repairConfig: IRepairConfig;
|
||||||
constructor(jsonUtil: JsonUtil, logger: ILogger, hashUtil: HashUtil, databaseServer: DatabaseServer, itemHelper: ItemHelper, weightedRandomHelper: WeightedRandomHelper, botGeneratorHelper: BotGeneratorHelper, randomUtil: RandomUtil, configServer: ConfigServer, botWeaponGeneratorHelper: BotWeaponGeneratorHelper, botWeaponModLimitService: BotWeaponModLimitService, botEquipmentModGenerator: BotEquipmentModGenerator, localisationService: LocalisationService, repairService: RepairService, inventoryMagGenComponents: IInventoryMagGen[]);
|
constructor(logger: ILogger, hashUtil: HashUtil, databaseServer: DatabaseServer, itemHelper: ItemHelper, weightedRandomHelper: WeightedRandomHelper, botGeneratorHelper: BotGeneratorHelper, randomUtil: RandomUtil, configServer: ConfigServer, botWeaponGeneratorHelper: BotWeaponGeneratorHelper, botWeaponModLimitService: BotWeaponModLimitService, botEquipmentModGenerator: BotEquipmentModGenerator, localisationService: LocalisationService, repairService: RepairService, inventoryMagGenComponents: IInventoryMagGen[], cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Pick a random weapon based on weightings and generate a functional weapon
|
* Pick a random weapon based on weightings and generate a functional weapon
|
||||||
* @param equipmentSlot Primary/secondary/holster
|
* @param equipmentSlot Primary/secondary/holster
|
||||||
|
@ -11,11 +11,9 @@ import { FenceService } from "@spt-aki/services/FenceService";
|
|||||||
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
||||||
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
export declare class FenceBaseAssortGenerator {
|
export declare class FenceBaseAssortGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -25,7 +23,7 @@ export declare class FenceBaseAssortGenerator {
|
|||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected fenceService: FenceService;
|
protected fenceService: FenceService;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, jsonUtil: JsonUtil, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, itemHelper: ItemHelper, presetHelper: PresetHelper, itemFilterService: ItemFilterService, seasonalEventService: SeasonalEventService, configServer: ConfigServer, fenceService: FenceService);
|
constructor(logger: ILogger, hashUtil: HashUtil, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, itemHelper: ItemHelper, presetHelper: PresetHelper, itemFilterService: ItemFilterService, seasonalEventService: SeasonalEventService, configServer: ConfigServer, fenceService: FenceService);
|
||||||
/**
|
/**
|
||||||
* Create base fence assorts dynamically and store in memory
|
* Create base fence assorts dynamically and store in memory
|
||||||
*/
|
*/
|
||||||
|
@ -1,18 +1,17 @@
|
|||||||
import { ContainerHelper } from "@spt-aki/helpers/ContainerHelper";
|
import { ContainerHelper } from "@spt-aki/helpers/ContainerHelper";
|
||||||
import { ItemHelper } from "@spt-aki/helpers/ItemHelper";
|
import { ItemHelper } from "@spt-aki/helpers/ItemHelper";
|
||||||
import { PresetHelper } from "@spt-aki/helpers/PresetHelper";
|
import { PresetHelper } from "@spt-aki/helpers/PresetHelper";
|
||||||
import { IContainerMinMax, IStaticContainer } from "@spt-aki/models/eft/common/ILocation";
|
import { IContainerMinMax, IStaticAmmoDetails, IStaticContainer, IStaticContainerData, IStaticForcedProps, IStaticLootDetails } from "@spt-aki/models/eft/common/ILocation";
|
||||||
import { ILocationBase } from "@spt-aki/models/eft/common/ILocationBase";
|
import { ILocationBase } from "@spt-aki/models/eft/common/ILocationBase";
|
||||||
import { ILooseLoot, Spawnpoint, SpawnpointTemplate, SpawnpointsForced } from "@spt-aki/models/eft/common/ILooseLoot";
|
import { ILooseLoot, Spawnpoint, SpawnpointTemplate, SpawnpointsForced } from "@spt-aki/models/eft/common/ILooseLoot";
|
||||||
import { Item } from "@spt-aki/models/eft/common/tables/IItem";
|
import { Item } from "@spt-aki/models/eft/common/tables/IItem";
|
||||||
import { IStaticAmmoDetails, IStaticContainerData, IStaticForcedProps, IStaticLootDetails } from "@spt-aki/models/eft/common/tables/ILootBase";
|
|
||||||
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
import { ILocationConfig } from "@spt-aki/models/spt/config/ILocationConfig";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
||||||
import { ProbabilityObjectArray, RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { ProbabilityObjectArray, RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
@ -30,7 +29,6 @@ export interface IContainerGroupCount {
|
|||||||
export declare class LocationGenerator {
|
export declare class LocationGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected objectId: ObjectId;
|
protected objectId: ObjectId;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -40,8 +38,9 @@ export declare class LocationGenerator {
|
|||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected locationConfig: ILocationConfig;
|
protected locationConfig: ILocationConfig;
|
||||||
constructor(logger: ILogger, databaseServer: DatabaseServer, jsonUtil: JsonUtil, objectId: ObjectId, randomUtil: RandomUtil, itemHelper: ItemHelper, mathUtil: MathUtil, seasonalEventService: SeasonalEventService, containerHelper: ContainerHelper, presetHelper: PresetHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, objectId: ObjectId, randomUtil: RandomUtil, itemHelper: ItemHelper, mathUtil: MathUtil, seasonalEventService: SeasonalEventService, containerHelper: ContainerHelper, presetHelper: PresetHelper, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Create an array of container objects with randomised loot
|
* Create an array of container objects with randomised loot
|
||||||
* @param locationBase Map base to generate containers for
|
* @param locationBase Map base to generate containers for
|
||||||
|
@ -14,7 +14,6 @@ import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
|||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RagfairLinkedItemService } from "@spt-aki/services/RagfairLinkedItemService";
|
import { RagfairLinkedItemService } from "@spt-aki/services/RagfairLinkedItemService";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
type ItemLimit = {
|
type ItemLimit = {
|
||||||
current: number;
|
current: number;
|
||||||
@ -25,7 +24,6 @@ export declare class LootGenerator {
|
|||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected inventoryHelper: InventoryHelper;
|
protected inventoryHelper: InventoryHelper;
|
||||||
@ -33,7 +31,7 @@ export declare class LootGenerator {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected ragfairLinkedItemService: RagfairLinkedItemService;
|
protected ragfairLinkedItemService: RagfairLinkedItemService;
|
||||||
protected itemFilterService: ItemFilterService;
|
protected itemFilterService: ItemFilterService;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, databaseServer: DatabaseServer, randomUtil: RandomUtil, jsonUtil: JsonUtil, itemHelper: ItemHelper, presetHelper: PresetHelper, inventoryHelper: InventoryHelper, weightedRandomHelper: WeightedRandomHelper, localisationService: LocalisationService, ragfairLinkedItemService: RagfairLinkedItemService, itemFilterService: ItemFilterService);
|
constructor(logger: ILogger, hashUtil: HashUtil, databaseServer: DatabaseServer, randomUtil: RandomUtil, itemHelper: ItemHelper, presetHelper: PresetHelper, inventoryHelper: InventoryHelper, weightedRandomHelper: WeightedRandomHelper, localisationService: LocalisationService, ragfairLinkedItemService: RagfairLinkedItemService, itemFilterService: ItemFilterService);
|
||||||
/**
|
/**
|
||||||
* Generate a list of items based on configuration options parameter
|
* Generate a list of items based on configuration options parameter
|
||||||
* @param options parameters to adjust how loot is generated
|
* @param options parameters to adjust how loot is generated
|
||||||
|
@ -14,8 +14,8 @@ import { SaveServer } from "@spt-aki/servers/SaveServer";
|
|||||||
import { BotLootCacheService } from "@spt-aki/services/BotLootCacheService";
|
import { BotLootCacheService } from "@spt-aki/services/BotLootCacheService";
|
||||||
import { FenceService } from "@spt-aki/services/FenceService";
|
import { FenceService } from "@spt-aki/services/FenceService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
export declare class PlayerScavGenerator {
|
export declare class PlayerScavGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
@ -27,14 +27,14 @@ export declare class PlayerScavGenerator {
|
|||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected profileHelper: ProfileHelper;
|
protected profileHelper: ProfileHelper;
|
||||||
protected botHelper: BotHelper;
|
protected botHelper: BotHelper;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected fenceService: FenceService;
|
protected fenceService: FenceService;
|
||||||
protected botLootCacheService: BotLootCacheService;
|
protected botLootCacheService: BotLootCacheService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected botGenerator: BotGenerator;
|
protected botGenerator: BotGenerator;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected playerScavConfig: IPlayerScavConfig;
|
protected playerScavConfig: IPlayerScavConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, hashUtil: HashUtil, itemHelper: ItemHelper, botGeneratorHelper: BotGeneratorHelper, saveServer: SaveServer, profileHelper: ProfileHelper, botHelper: BotHelper, jsonUtil: JsonUtil, fenceService: FenceService, botLootCacheService: BotLootCacheService, localisationService: LocalisationService, botGenerator: BotGenerator, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, hashUtil: HashUtil, itemHelper: ItemHelper, botGeneratorHelper: BotGeneratorHelper, saveServer: SaveServer, profileHelper: ProfileHelper, botHelper: BotHelper, fenceService: FenceService, botLootCacheService: BotLootCacheService, localisationService: LocalisationService, botGenerator: BotGenerator, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Update a player profile to include a new player scav profile
|
* Update a player profile to include a new player scav profile
|
||||||
* @param sessionID session id to specify what profile is updated
|
* @param sessionID session id to specify what profile is updated
|
||||||
|
@ -7,9 +7,7 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
|||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
export declare class RagfairAssortGenerator {
|
export declare class RagfairAssortGenerator {
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
@ -19,7 +17,7 @@ export declare class RagfairAssortGenerator {
|
|||||||
protected generatedAssortItems: Item[][];
|
protected generatedAssortItems: Item[][];
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected ragfairItemInvalidBaseTypes: string[];
|
protected ragfairItemInvalidBaseTypes: string[];
|
||||||
constructor(jsonUtil: JsonUtil, hashUtil: HashUtil, itemHelper: ItemHelper, presetHelper: PresetHelper, databaseServer: DatabaseServer, seasonalEventService: SeasonalEventService, configServer: ConfigServer);
|
constructor(hashUtil: HashUtil, itemHelper: ItemHelper, presetHelper: PresetHelper, databaseServer: DatabaseServer, seasonalEventService: SeasonalEventService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get an array of arrays that can be sold on the flea
|
* Get an array of arrays that can be sold on the flea
|
||||||
* Each sub array contains item + children (if any)
|
* Each sub array contains item + children (if any)
|
||||||
|
@ -17,13 +17,12 @@ import { FenceService } from "@spt-aki/services/FenceService";
|
|||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { RagfairOfferService } from "@spt-aki/services/RagfairOfferService";
|
import { RagfairOfferService } from "@spt-aki/services/RagfairOfferService";
|
||||||
import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class RagfairOfferGenerator {
|
export declare class RagfairOfferGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
@ -40,6 +39,7 @@ export declare class RagfairOfferGenerator {
|
|||||||
protected fenceService: FenceService;
|
protected fenceService: FenceService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected allowedFleaPriceItemsForBarter: {
|
protected allowedFleaPriceItemsForBarter: {
|
||||||
tpl: string;
|
tpl: string;
|
||||||
@ -47,7 +47,7 @@ export declare class RagfairOfferGenerator {
|
|||||||
}[];
|
}[];
|
||||||
/** Internal counter to ensure each offer created has a unique value for its intId property */
|
/** Internal counter to ensure each offer created has a unique value for its intId property */
|
||||||
protected offerCounter: number;
|
protected offerCounter: number;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, hashUtil: HashUtil, randomUtil: RandomUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, ragfairServerHelper: RagfairServerHelper, handbookHelper: HandbookHelper, saveServer: SaveServer, presetHelper: PresetHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferService: RagfairOfferService, ragfairPriceService: RagfairPriceService, localisationService: LocalisationService, paymentHelper: PaymentHelper, fenceService: FenceService, itemHelper: ItemHelper, configServer: ConfigServer);
|
constructor(logger: ILogger, hashUtil: HashUtil, randomUtil: RandomUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, ragfairServerHelper: RagfairServerHelper, handbookHelper: HandbookHelper, saveServer: SaveServer, presetHelper: PresetHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferService: RagfairOfferService, ragfairPriceService: RagfairPriceService, localisationService: LocalisationService, paymentHelper: PaymentHelper, fenceService: FenceService, itemHelper: ItemHelper, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Create a flea offer and store it in the Ragfair server offers array
|
* Create a flea offer and store it in the Ragfair server offers array
|
||||||
* @param userID Owner of the offer
|
* @param userID Owner of the offer
|
||||||
|
@ -11,7 +11,7 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
||||||
import { ProbabilityObjectArray, RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { ProbabilityObjectArray, RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
@ -19,7 +19,6 @@ export declare class RepeatableQuestGenerator {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
@ -27,8 +26,9 @@ export declare class RepeatableQuestGenerator {
|
|||||||
protected repeatableQuestHelper: RepeatableQuestHelper;
|
protected repeatableQuestHelper: RepeatableQuestHelper;
|
||||||
protected repeatableQuestRewardGenerator: RepeatableQuestRewardGenerator;
|
protected repeatableQuestRewardGenerator: RepeatableQuestRewardGenerator;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, mathUtil: MathUtil, jsonUtil: JsonUtil, databaseServer: DatabaseServer, itemHelper: ItemHelper, localisationService: LocalisationService, objectId: ObjectId, repeatableQuestHelper: RepeatableQuestHelper, repeatableQuestRewardGenerator: RepeatableQuestRewardGenerator, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, mathUtil: MathUtil, databaseServer: DatabaseServer, itemHelper: ItemHelper, localisationService: LocalisationService, objectId: ObjectId, repeatableQuestHelper: RepeatableQuestHelper, repeatableQuestRewardGenerator: RepeatableQuestRewardGenerator, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* This method is called by /GetClientRepeatableQuests/ and creates one element of quest type format (see assets/database/templates/repeatableQuests.json).
|
* This method is called by /GetClientRepeatableQuests/ and creates one element of quest type format (see assets/database/templates/repeatableQuests.json).
|
||||||
* It randomly draws a quest type (currently Elimination, Completion or Exploration) as well as a trader who is providing the quest
|
* It randomly draws a quest type (currently Elimination, Completion or Exploration) as well as a trader who is providing the quest
|
||||||
|
@ -11,7 +11,7 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
||||||
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
@ -19,7 +19,6 @@ export declare class RepeatableQuestRewardGenerator {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
@ -29,8 +28,9 @@ export declare class RepeatableQuestRewardGenerator {
|
|||||||
protected itemFilterService: ItemFilterService;
|
protected itemFilterService: ItemFilterService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, mathUtil: MathUtil, jsonUtil: JsonUtil, databaseServer: DatabaseServer, itemHelper: ItemHelper, presetHelper: PresetHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, objectId: ObjectId, itemFilterService: ItemFilterService, seasonalEventService: SeasonalEventService, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, mathUtil: MathUtil, databaseServer: DatabaseServer, itemHelper: ItemHelper, presetHelper: PresetHelper, handbookHelper: HandbookHelper, localisationService: LocalisationService, objectId: ObjectId, itemFilterService: ItemFilterService, seasonalEventService: SeasonalEventService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Generate the reward for a mission. A reward can consist of
|
* Generate the reward for a mission. A reward can consist of
|
||||||
* - Experience
|
* - Experience
|
||||||
|
@ -12,7 +12,6 @@ import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
|||||||
import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService";
|
import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService";
|
||||||
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
/**
|
/**
|
||||||
* Handle the creation of randomised scav case rewards
|
* Handle the creation of randomised scav case rewards
|
||||||
@ -20,7 +19,6 @@ import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
|||||||
export declare class ScavCaseRewardGenerator {
|
export declare class ScavCaseRewardGenerator {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
@ -32,7 +30,7 @@ export declare class ScavCaseRewardGenerator {
|
|||||||
protected scavCaseConfig: IScavCaseConfig;
|
protected scavCaseConfig: IScavCaseConfig;
|
||||||
protected dbItemsCache: ITemplateItem[];
|
protected dbItemsCache: ITemplateItem[];
|
||||||
protected dbAmmoItemsCache: ITemplateItem[];
|
protected dbAmmoItemsCache: ITemplateItem[];
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, jsonUtil: JsonUtil, hashUtil: HashUtil, itemHelper: ItemHelper, presetHelper: PresetHelper, databaseServer: DatabaseServer, ragfairPriceService: RagfairPriceService, seasonalEventService: SeasonalEventService, itemFilterService: ItemFilterService, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, hashUtil: HashUtil, itemHelper: ItemHelper, presetHelper: PresetHelper, databaseServer: DatabaseServer, ragfairPriceService: RagfairPriceService, seasonalEventService: SeasonalEventService, itemFilterService: ItemFilterService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Create an array of rewards that will be given to the player upon completing their scav case build
|
* Create an array of rewards that will be given to the player upon completing their scav case build
|
||||||
* @param recipeId recipe of the scav case craft
|
* @param recipeId recipe of the scav case craft
|
||||||
|
@ -5,6 +5,7 @@ import { WindDirection } from "@spt-aki/models/enums/WindDirection";
|
|||||||
import { IWeatherConfig } from "@spt-aki/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt-aki/models/spt/config/IWeatherConfig";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
|
import { SeasonalEventService } from "@spt-aki/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class WeatherGenerator {
|
export declare class WeatherGenerator {
|
||||||
@ -12,11 +13,12 @@ export declare class WeatherGenerator {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
protected seasonalEventService: SeasonalEventService;
|
||||||
protected applicationContext: ApplicationContext;
|
protected applicationContext: ApplicationContext;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
private serverStartTimestampMS;
|
private serverStartTimestampMS;
|
||||||
constructor(weightedRandomHelper: WeightedRandomHelper, logger: ILogger, randomUtil: RandomUtil, timeUtil: TimeUtil, applicationContext: ApplicationContext, configServer: ConfigServer);
|
constructor(weightedRandomHelper: WeightedRandomHelper, logger: ILogger, randomUtil: RandomUtil, timeUtil: TimeUtil, seasonalEventService: SeasonalEventService, applicationContext: ApplicationContext, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get current + raid datetime and format into correct BSG format and return
|
* Get current + raid datetime and format into correct BSG format and return
|
||||||
* @param data Weather data
|
* @param data Weather data
|
||||||
|
@ -5,18 +5,18 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
export declare class BotDifficultyHelper {
|
export declare class BotDifficultyHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected botHelper: BotHelper;
|
protected botHelper: BotHelper;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected pmcConfig: IPmcConfig;
|
protected pmcConfig: IPmcConfig;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, databaseServer: DatabaseServer, randomUtil: RandomUtil, localisationService: LocalisationService, botHelper: BotHelper, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, randomUtil: RandomUtil, localisationService: LocalisationService, botHelper: BotHelper, configServer: ConfigServer, cloner: ICloner);
|
||||||
getPmcDifficultySettings(pmcType: "bear" | "usec", difficulty: string, usecType: string, bearType: string): Difficulty;
|
getPmcDifficultySettings(pmcType: "bear" | "usec", difficulty: string, usecType: string, bearType: string): Difficulty;
|
||||||
/**
|
/**
|
||||||
* Get difficulty settings for desired bot type, if not found use assault bot types
|
* Get difficulty settings for desired bot type, if not found use assault bot types
|
||||||
|
@ -6,18 +6,16 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
export declare class BotHelper {
|
export declare class BotHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected botConfig: IBotConfig;
|
protected botConfig: IBotConfig;
|
||||||
protected pmcConfig: IPmcConfig;
|
protected pmcConfig: IPmcConfig;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, databaseServer: DatabaseServer, randomUtil: RandomUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, randomUtil: RandomUtil, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
/**
|
/**
|
||||||
* Get a template object for the specified botRole from bots.types db
|
* Get a template object for the specified botRole from bots.types db
|
||||||
* @param role botRole to get template for
|
* @param role botRole to get template for
|
||||||
|
@ -10,18 +10,18 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
||||||
import { LocaleService } from "@spt-aki/services/LocaleService";
|
import { LocaleService } from "@spt-aki/services/LocaleService";
|
||||||
import { MailSendService } from "@spt-aki/services/MailSendService";
|
import { MailSendService } from "@spt-aki/services/MailSendService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
export declare class GiveSptCommand implements ISptCommand {
|
export declare class GiveSptCommand implements ISptCommand {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected itemFilterService: ItemFilterService;
|
protected itemFilterService: ItemFilterService;
|
||||||
|
protected cloner: ICloner;
|
||||||
/**
|
/**
|
||||||
* Regex to account for all these cases:
|
* Regex to account for all these cases:
|
||||||
* spt give "item name" 5
|
* spt give "item name" 5
|
||||||
@ -32,8 +32,9 @@ export declare class GiveSptCommand implements ISptCommand {
|
|||||||
*/
|
*/
|
||||||
private static commandRegex;
|
private static commandRegex;
|
||||||
private static acceptableConfidence;
|
private static acceptableConfidence;
|
||||||
|
private static excludedPresetItems;
|
||||||
protected savedCommand: Map<string, SavedCommand>;
|
protected savedCommand: Map<string, SavedCommand>;
|
||||||
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, jsonUtil: JsonUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer, itemFilterService: ItemFilterService);
|
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer, itemFilterService: ItemFilterService, cloner: ICloner);
|
||||||
getCommand(): string;
|
getCommand(): string;
|
||||||
getCommandHelp(): string;
|
getCommandHelp(): string;
|
||||||
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
||||||
|
@ -11,12 +11,10 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { LocaleService } from "@spt-aki/services/LocaleService";
|
import { LocaleService } from "@spt-aki/services/LocaleService";
|
||||||
import { MailSendService } from "@spt-aki/services/MailSendService";
|
import { MailSendService } from "@spt-aki/services/MailSendService";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
export declare class ProfileSptCommand implements ISptCommand {
|
export declare class ProfileSptCommand implements ISptCommand {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
@ -29,7 +27,7 @@ export declare class ProfileSptCommand implements ISptCommand {
|
|||||||
*/
|
*/
|
||||||
private static commandRegex;
|
private static commandRegex;
|
||||||
protected savedCommand: SavedCommand;
|
protected savedCommand: SavedCommand;
|
||||||
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, jsonUtil: JsonUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer, profileHelper: ProfileHelper);
|
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer, profileHelper: ProfileHelper);
|
||||||
getCommand(): string;
|
getCommand(): string;
|
||||||
getCommandHelp(): string;
|
getCommandHelp(): string;
|
||||||
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
||||||
|
@ -9,12 +9,10 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { LocaleService } from "@spt-aki/services/LocaleService";
|
import { LocaleService } from "@spt-aki/services/LocaleService";
|
||||||
import { MailSendService } from "@spt-aki/services/MailSendService";
|
import { MailSendService } from "@spt-aki/services/MailSendService";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
export declare class TraderSptCommand implements ISptCommand {
|
export declare class TraderSptCommand implements ISptCommand {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
@ -26,7 +24,7 @@ export declare class TraderSptCommand implements ISptCommand {
|
|||||||
*/
|
*/
|
||||||
private static commandRegex;
|
private static commandRegex;
|
||||||
protected savedCommand: SavedCommand;
|
protected savedCommand: SavedCommand;
|
||||||
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, jsonUtil: JsonUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer);
|
constructor(logger: ILogger, itemHelper: ItemHelper, hashUtil: HashUtil, presetHelper: PresetHelper, mailSendService: MailSendService, localeService: LocaleService, databaseServer: DatabaseServer);
|
||||||
getCommand(): string;
|
getCommand(): string;
|
||||||
getCommandHelp(): string;
|
getCommandHelp(): string;
|
||||||
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
performAction(commandHandler: IUserDialogInfo, sessionId: string, request: ISendMessageRequest): string;
|
||||||
|
@ -3,7 +3,7 @@ import { Item } from "@spt-aki/models/eft/common/tables/IItem";
|
|||||||
import { IItemConfig } from "@spt-aki/models/spt/config/IItemConfig";
|
import { IItemConfig } from "@spt-aki/models/spt/config/IItemConfig";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
declare class LookupItem<T, I> {
|
declare class LookupItem<T, I> {
|
||||||
readonly byId: Map<string, T>;
|
readonly byId: Map<string, T>;
|
||||||
readonly byParent: Map<string, I[]>;
|
readonly byParent: Map<string, I[]>;
|
||||||
@ -16,12 +16,12 @@ export declare class LookupCollection {
|
|||||||
}
|
}
|
||||||
export declare class HandbookHelper {
|
export declare class HandbookHelper {
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected itemConfig: IItemConfig;
|
protected itemConfig: IItemConfig;
|
||||||
protected lookupCacheGenerated: boolean;
|
protected lookupCacheGenerated: boolean;
|
||||||
protected handbookPriceCache: LookupCollection;
|
protected handbookPriceCache: LookupCollection;
|
||||||
constructor(databaseServer: DatabaseServer, jsonUtil: JsonUtil, configServer: ConfigServer);
|
constructor(databaseServer: DatabaseServer, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Create an in-memory cache of all items with associated handbook price in handbookPriceCache class
|
* Create an in-memory cache of all items with associated handbook price in handbookPriceCache class
|
||||||
*/
|
*/
|
||||||
|
@ -5,16 +5,16 @@ import { IHealthConfig } from "@spt-aki/models/spt/config/IHealthConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class HealthHelper {
|
export declare class HealthHelper {
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected healthConfig: IHealthConfig;
|
protected healthConfig: IHealthConfig;
|
||||||
constructor(jsonUtil: JsonUtil, logger: ILogger, timeUtil: TimeUtil, saveServer: SaveServer, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, saveServer: SaveServer, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Resets the profiles vitality/health and vitality/effects properties to their defaults
|
* Resets the profiles vitality/health and vitality/effects properties to their defaults
|
||||||
* @param sessionID Session Id
|
* @param sessionID Session Id
|
||||||
|
@ -18,9 +18,9 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
|||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { PlayerService } from "@spt-aki/services/PlayerService";
|
import { PlayerService } from "@spt-aki/services/PlayerService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class HideoutHelper {
|
export declare class HideoutHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
@ -35,7 +35,7 @@ export declare class HideoutHelper {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected jsonUtil: JsonUtil;
|
protected cloner: ICloner;
|
||||||
static bitcoinFarm: string;
|
static bitcoinFarm: string;
|
||||||
static bitcoinProductionId: string;
|
static bitcoinProductionId: string;
|
||||||
static waterCollector: string;
|
static waterCollector: string;
|
||||||
@ -43,7 +43,7 @@ export declare class HideoutHelper {
|
|||||||
static expeditionaryFuelTank: string;
|
static expeditionaryFuelTank: string;
|
||||||
static maxSkillPoint: number;
|
static maxSkillPoint: number;
|
||||||
protected hideoutConfig: IHideoutConfig;
|
protected hideoutConfig: IHideoutConfig;
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, profileHelper: ProfileHelper, inventoryHelper: InventoryHelper, playerService: PlayerService, localisationService: LocalisationService, itemHelper: ItemHelper, configServer: ConfigServer, jsonUtil: JsonUtil);
|
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, profileHelper: ProfileHelper, inventoryHelper: InventoryHelper, playerService: PlayerService, localisationService: LocalisationService, itemHelper: ItemHelper, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Add production to profiles' Hideout.Production array
|
* Add production to profiles' Hideout.Production array
|
||||||
* @param pmcData Profile to add production to
|
* @param pmcData Profile to add production to
|
||||||
|
@ -14,7 +14,7 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { ProfileFixerService } from "@spt-aki/services/ProfileFixerService";
|
import { ProfileFixerService } from "@spt-aki/services/ProfileFixerService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
import { ProfileHelper } from "./ProfileHelper";
|
import { ProfileHelper } from "./ProfileHelper";
|
||||||
@ -22,7 +22,6 @@ export declare class InRaidHelper {
|
|||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected inventoryHelper: InventoryHelper;
|
protected inventoryHelper: InventoryHelper;
|
||||||
@ -33,9 +32,10 @@ export declare class InRaidHelper {
|
|||||||
protected profileFixerService: ProfileFixerService;
|
protected profileFixerService: ProfileFixerService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected lostOnDeathConfig: ILostOnDeathConfig;
|
protected lostOnDeathConfig: ILostOnDeathConfig;
|
||||||
protected inRaidConfig: IInRaidConfig;
|
protected inRaidConfig: IInRaidConfig;
|
||||||
constructor(logger: ILogger, timeUtil: TimeUtil, saveServer: SaveServer, jsonUtil: JsonUtil, itemHelper: ItemHelper, databaseServer: DatabaseServer, inventoryHelper: InventoryHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, profileFixerService: ProfileFixerService, configServer: ConfigServer, randomUtil: RandomUtil);
|
constructor(logger: ILogger, timeUtil: TimeUtil, saveServer: SaveServer, itemHelper: ItemHelper, databaseServer: DatabaseServer, inventoryHelper: InventoryHelper, profileHelper: ProfileHelper, questHelper: QuestHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, profileFixerService: ProfileFixerService, configServer: ConfigServer, randomUtil: RandomUtil, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Lookup quest item loss from lostOnDeath config
|
* Lookup quest item loss from lostOnDeath config
|
||||||
* @returns True if items should be removed from inventory
|
* @returns True if items should be removed from inventory
|
||||||
|
@ -24,9 +24,9 @@ import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
|||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { FenceService } from "@spt-aki/services/FenceService";
|
import { FenceService } from "@spt-aki/services/FenceService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
export interface IOwnerInventoryItems {
|
export interface IOwnerInventoryItems {
|
||||||
/** Inventory items from source */
|
/** Inventory items from source */
|
||||||
from: Item[];
|
from: Item[];
|
||||||
@ -37,7 +37,6 @@ export interface IOwnerInventoryItems {
|
|||||||
}
|
}
|
||||||
export declare class InventoryHelper {
|
export declare class InventoryHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected httpResponse: HttpResponseUtil;
|
protected httpResponse: HttpResponseUtil;
|
||||||
protected fenceService: FenceService;
|
protected fenceService: FenceService;
|
||||||
@ -51,8 +50,9 @@ export declare class InventoryHelper {
|
|||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected inventoryConfig: IInventoryConfig;
|
protected inventoryConfig: IInventoryConfig;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, hashUtil: HashUtil, httpResponse: HttpResponseUtil, fenceService: FenceService, databaseServer: DatabaseServer, paymentHelper: PaymentHelper, traderAssortHelper: TraderAssortHelper, dialogueHelper: DialogueHelper, itemHelper: ItemHelper, containerHelper: ContainerHelper, profileHelper: ProfileHelper, presetHelper: PresetHelper, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, hashUtil: HashUtil, httpResponse: HttpResponseUtil, fenceService: FenceService, databaseServer: DatabaseServer, paymentHelper: PaymentHelper, traderAssortHelper: TraderAssortHelper, dialogueHelper: DialogueHelper, itemHelper: ItemHelper, containerHelper: ContainerHelper, profileHelper: ProfileHelper, presetHelper: PresetHelper, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Add multiple items to player stash (assuming they all fit)
|
* Add multiple items to player stash (assuming they all fit)
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { HandbookHelper } from "@spt-aki/helpers/HandbookHelper";
|
import { HandbookHelper } from "@spt-aki/helpers/HandbookHelper";
|
||||||
|
import { IStaticAmmoDetails } from "@spt-aki/models/eft/common/ILocation";
|
||||||
import { IPmcData } from "@spt-aki/models/eft/common/IPmcData";
|
import { IPmcData } from "@spt-aki/models/eft/common/IPmcData";
|
||||||
import { InsuredItem } from "@spt-aki/models/eft/common/tables/IBotBase";
|
import { InsuredItem } from "@spt-aki/models/eft/common/tables/IBotBase";
|
||||||
import { Item, Repairable, Upd } from "@spt-aki/models/eft/common/tables/IItem";
|
import { Item, Repairable, Upd } from "@spt-aki/models/eft/common/tables/IItem";
|
||||||
import { IStaticAmmoDetails } from "@spt-aki/models/eft/common/tables/ILootBase";
|
|
||||||
import { ITemplateItem } from "@spt-aki/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt-aki/models/eft/common/tables/ITemplateItem";
|
||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
@ -10,6 +10,7 @@ import { ItemBaseClassService } from "@spt-aki/services/ItemBaseClassService";
|
|||||||
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
||||||
import { LocaleService } from "@spt-aki/services/LocaleService";
|
import { LocaleService } from "@spt-aki/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { CompareUtil } from "@spt-aki/utils/CompareUtil";
|
import { CompareUtil } from "@spt-aki/utils/CompareUtil";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
||||||
@ -30,8 +31,9 @@ export declare class ItemHelper {
|
|||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected compareUtil: CompareUtil;
|
protected compareUtil: CompareUtil;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected readonly defaultInvalidBaseTypes: string[];
|
protected readonly defaultInvalidBaseTypes: string[];
|
||||||
constructor(logger: ILogger, hashUtil: HashUtil, jsonUtil: JsonUtil, randomUtil: RandomUtil, objectId: ObjectId, mathUtil: MathUtil, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, itemBaseClassService: ItemBaseClassService, itemFilterService: ItemFilterService, localisationService: LocalisationService, localeService: LocaleService, compareUtil: CompareUtil);
|
constructor(logger: ILogger, hashUtil: HashUtil, jsonUtil: JsonUtil, randomUtil: RandomUtil, objectId: ObjectId, mathUtil: MathUtil, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, itemBaseClassService: ItemBaseClassService, itemFilterService: ItemFilterService, localisationService: LocalisationService, localeService: LocaleService, compareUtil: CompareUtil, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* This method will compare two items (with all its children) and see if the are equivalent.
|
* This method will compare two items (with all its children) and see if the are equivalent.
|
||||||
* This method will NOT compare IDs on the items
|
* This method will NOT compare IDs on the items
|
||||||
@ -368,9 +370,10 @@ export declare class ItemHelper {
|
|||||||
* @param staticAmmoDist Cartridge distribution
|
* @param staticAmmoDist Cartridge distribution
|
||||||
* @param caliber Caliber of cartridge to add to magazine
|
* @param caliber Caliber of cartridge to add to magazine
|
||||||
* @param minSizePercent % the magazine must be filled to
|
* @param minSizePercent % the magazine must be filled to
|
||||||
|
* @param defaultCartridgeTpl Cartridge to use when none found
|
||||||
* @param weapon Weapon the magazine will be used for (if passed in uses Chamber as whitelist)
|
* @param weapon Weapon the magazine will be used for (if passed in uses Chamber as whitelist)
|
||||||
*/
|
*/
|
||||||
fillMagazineWithRandomCartridge(magazine: Item[], magTemplate: ITemplateItem, staticAmmoDist: Record<string, IStaticAmmoDetails[]>, caliber?: string, minSizePercent?: number, weapon?: ITemplateItem): void;
|
fillMagazineWithRandomCartridge(magazine: Item[], magTemplate: ITemplateItem, staticAmmoDist: Record<string, IStaticAmmoDetails[]>, caliber?: string, minSizePercent?: number, defaultCartridgeTpl?: string, weapon?: ITemplateItem): void;
|
||||||
/**
|
/**
|
||||||
* Add child items to a magazine of a specific cartridge
|
* Add child items to a magazine of a specific cartridge
|
||||||
* @param magazineWithChildCartridges Magazine to add child items to
|
* @param magazineWithChildCartridges Magazine to add child items to
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
import { INotification } from "@spt-aki/models/eft/notifier/INotifier";
|
|
||||||
import { Dialogue, IUserDialogInfo } from "@spt-aki/models/eft/profile/IAkiProfile";
|
import { Dialogue, IUserDialogInfo } from "@spt-aki/models/eft/profile/IAkiProfile";
|
||||||
|
import { IWsNotificationEvent } from "@spt-aki/models/eft/ws/IWsNotificationEvent";
|
||||||
import { MessageType } from "@spt-aki/models/enums/MessageType";
|
import { MessageType } from "@spt-aki/models/enums/MessageType";
|
||||||
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
||||||
import { WebSocketServer } from "@spt-aki/servers/WebSocketServer";
|
import { AkiWebSocketConnectionHandler } from "@spt-aki/servers/ws/AkiWebSocketConnectionHandler";
|
||||||
import { NotificationService } from "@spt-aki/services/NotificationService";
|
import { NotificationService } from "@spt-aki/services/NotificationService";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
export declare class NotificationSendHelper {
|
export declare class NotificationSendHelper {
|
||||||
protected webSocketServer: WebSocketServer;
|
protected akiWebSocketConnection: AkiWebSocketConnectionHandler;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected saveServer: SaveServer;
|
protected saveServer: SaveServer;
|
||||||
protected notificationService: NotificationService;
|
protected notificationService: NotificationService;
|
||||||
constructor(webSocketServer: WebSocketServer, hashUtil: HashUtil, saveServer: SaveServer, notificationService: NotificationService);
|
constructor(akiWebSocketConnection: AkiWebSocketConnectionHandler, hashUtil: HashUtil, saveServer: SaveServer, notificationService: NotificationService);
|
||||||
/**
|
/**
|
||||||
* Send notification message to the appropriate channel
|
* Send notification message to the appropriate channel
|
||||||
* @param sessionID
|
* @param sessionID
|
||||||
* @param notificationMessage
|
* @param notificationMessage
|
||||||
*/
|
*/
|
||||||
sendMessage(sessionID: string, notificationMessage: INotification): void;
|
sendMessage(sessionID: string, notificationMessage: IWsNotificationEvent): void;
|
||||||
/**
|
/**
|
||||||
* Send a message directly to the player
|
* Send a message directly to the player
|
||||||
* @param sessionId Session id
|
* @param sessionId Session id
|
||||||
|
@ -1,26 +1,28 @@
|
|||||||
import { HttpServerHelper } from "@spt-aki/helpers/HttpServerHelper";
|
import { HttpServerHelper } from "@spt-aki/helpers/HttpServerHelper";
|
||||||
import { INotification } from "@spt-aki/models/eft/notifier/INotifier";
|
|
||||||
import { Message, MessageContentRagfair } from "@spt-aki/models/eft/profile/IAkiProfile";
|
import { Message, MessageContentRagfair } from "@spt-aki/models/eft/profile/IAkiProfile";
|
||||||
|
import { IWsChatMessageReceived } from "@spt-aki/models/eft/ws/IWsChatMessageReceived";
|
||||||
|
import { IWsNotificationEvent } from "@spt-aki/models/eft/ws/IWsNotificationEvent";
|
||||||
|
import { IWsRagfairOfferSold } from "@spt-aki/models/eft/ws/IWsRagfairOfferSold";
|
||||||
export declare class NotifierHelper {
|
export declare class NotifierHelper {
|
||||||
protected httpServerHelper: HttpServerHelper;
|
protected httpServerHelper: HttpServerHelper;
|
||||||
/**
|
/**
|
||||||
* The default notification sent when waiting times out.
|
* The default notification sent when waiting times out.
|
||||||
*/
|
*/
|
||||||
protected defaultNotification: INotification;
|
protected defaultNotification: IWsNotificationEvent;
|
||||||
constructor(httpServerHelper: HttpServerHelper);
|
constructor(httpServerHelper: HttpServerHelper);
|
||||||
getDefaultNotification(): INotification;
|
getDefaultNotification(): IWsNotificationEvent;
|
||||||
/**
|
/**
|
||||||
* Create a new notification that displays the "Your offer was sold!" prompt and removes sold offer from "My Offers" on clientside
|
* Create a new notification that displays the "Your offer was sold!" prompt and removes sold offer from "My Offers" on clientside
|
||||||
* @param dialogueMessage Message from dialog that was sent
|
* @param dialogueMessage Message from dialog that was sent
|
||||||
* @param ragfairData Ragfair data to attach to notification
|
* @param ragfairData Ragfair data to attach to notification
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
createRagfairOfferSoldNotification(dialogueMessage: Message, ragfairData: MessageContentRagfair): INotification;
|
createRagfairOfferSoldNotification(dialogueMessage: Message, ragfairData: MessageContentRagfair): IWsRagfairOfferSold;
|
||||||
/**
|
/**
|
||||||
* Create a new notification with the specified dialogueMessage object
|
* Create a new notification with the specified dialogueMessage object
|
||||||
* @param dialogueMessage
|
* @param dialogueMessage
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
createNewMessageNotification(dialogueMessage: Message): INotification;
|
createNewMessageNotification(dialogueMessage: Message): IWsChatMessageReceived;
|
||||||
getWebSocketServer(sessionID: string): string;
|
getWebSocketServer(sessionID: string): string;
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import { IPreset } from "@spt-aki/models/eft/common/IGlobals";
|
import { IPreset } from "@spt-aki/models/eft/common/IGlobals";
|
||||||
import { BaseClasses } from "@spt-aki/models/enums/BaseClasses";
|
import { BaseClasses } from "@spt-aki/models/enums/BaseClasses";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { ItemHelper } from "./ItemHelper";
|
import { ItemHelper } from "./ItemHelper";
|
||||||
export declare class PresetHelper {
|
export declare class PresetHelper {
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected lookup: Record<string, string[]>;
|
protected lookup: Record<string, string[]>;
|
||||||
protected defaultEquipmentPresets: Record<string, IPreset>;
|
protected defaultEquipmentPresets: Record<string, IPreset>;
|
||||||
protected defaultWeaponPresets: Record<string, IPreset>;
|
protected defaultWeaponPresets: Record<string, IPreset>;
|
||||||
constructor(jsonUtil: JsonUtil, databaseServer: DatabaseServer, itemHelper: ItemHelper);
|
constructor(databaseServer: DatabaseServer, itemHelper: ItemHelper, cloner: ICloner);
|
||||||
hydratePresetStore(input: Record<string, string[]>): void;
|
hydratePresetStore(input: Record<string, string[]>): void;
|
||||||
/**
|
/**
|
||||||
* Get default weapon and equipment presets
|
* Get default weapon and equipment presets
|
||||||
|
@ -11,13 +11,12 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
import { SaveServer } from "@spt-aki/servers/SaveServer";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { ProfileSnapshotService } from "@spt-aki/services/ProfileSnapshotService";
|
import { ProfileSnapshotService } from "@spt-aki/services/ProfileSnapshotService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
import { Watermark } from "@spt-aki/utils/Watermark";
|
import { Watermark } from "@spt-aki/utils/Watermark";
|
||||||
export declare class ProfileHelper {
|
export declare class ProfileHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected watermark: Watermark;
|
protected watermark: Watermark;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
@ -27,8 +26,9 @@ export declare class ProfileHelper {
|
|||||||
protected profileSnapshotService: ProfileSnapshotService;
|
protected profileSnapshotService: ProfileSnapshotService;
|
||||||
protected localisationService: LocalisationService;
|
protected localisationService: LocalisationService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected inventoryConfig: IInventoryConfig;
|
protected inventoryConfig: IInventoryConfig;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer);
|
constructor(logger: ILogger, hashUtil: HashUtil, watermark: Watermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, profileSnapshotService: ProfileSnapshotService, localisationService: LocalisationService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Remove/reset a completed quest condtion from players profile quest data
|
* Remove/reset a completed quest condtion from players profile quest data
|
||||||
* @param sessionID Session id
|
* @param sessionID Session id
|
||||||
|
@ -22,12 +22,11 @@ import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
|||||||
import { LocaleService } from "@spt-aki/services/LocaleService";
|
import { LocaleService } from "@spt-aki/services/LocaleService";
|
||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt-aki/services/MailSendService";
|
import { MailSendService } from "@spt-aki/services/MailSendService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class QuestHelper {
|
export declare class QuestHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected hashUtil: HashUtil;
|
protected hashUtil: HashUtil;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -44,8 +43,9 @@ export declare class QuestHelper {
|
|||||||
protected presetHelper: PresetHelper;
|
protected presetHelper: PresetHelper;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer);
|
constructor(logger: ILogger, timeUtil: TimeUtil, hashUtil: HashUtil, itemHelper: ItemHelper, questConditionHelper: QuestConditionHelper, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, localeService: LocaleService, ragfairServerHelper: RagfairServerHelper, dialogueHelper: DialogueHelper, profileHelper: ProfileHelper, paymentHelper: PaymentHelper, localisationService: LocalisationService, traderHelper: TraderHelper, presetHelper: PresetHelper, mailSendService: MailSendService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get status of a quest in player profile by its id
|
* Get status of a quest in player profile by its id
|
||||||
* @param pmcData Profile to search
|
* @param pmcData Profile to search
|
||||||
|
@ -10,10 +10,9 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
|||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { RagfairLinkedItemService } from "@spt-aki/services/RagfairLinkedItemService";
|
import { RagfairLinkedItemService } from "@spt-aki/services/RagfairLinkedItemService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
export declare class RagfairHelper {
|
export declare class RagfairHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected traderAssortHelper: TraderAssortHelper;
|
protected traderAssortHelper: TraderAssortHelper;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected handbookHelper: HandbookHelper;
|
protected handbookHelper: HandbookHelper;
|
||||||
@ -21,8 +20,9 @@ export declare class RagfairHelper {
|
|||||||
protected ragfairLinkedItemService: RagfairLinkedItemService;
|
protected ragfairLinkedItemService: RagfairLinkedItemService;
|
||||||
protected utilityHelper: UtilityHelper;
|
protected utilityHelper: UtilityHelper;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, traderAssortHelper: TraderAssortHelper, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, itemHelper: ItemHelper, ragfairLinkedItemService: RagfairLinkedItemService, utilityHelper: UtilityHelper, configServer: ConfigServer);
|
constructor(logger: ILogger, traderAssortHelper: TraderAssortHelper, databaseServer: DatabaseServer, handbookHelper: HandbookHelper, itemHelper: ItemHelper, ragfairLinkedItemService: RagfairLinkedItemService, utilityHelper: UtilityHelper, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Gets currency TAG from TPL
|
* Gets currency TAG from TPL
|
||||||
* @param {string} currency
|
* @param {string} currency
|
||||||
|
@ -14,8 +14,8 @@ import { SaveServer } from "@spt-aki/servers/SaveServer";
|
|||||||
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
import { ItemFilterService } from "@spt-aki/services/ItemFilterService";
|
||||||
import { LocaleService } from "@spt-aki/services/LocaleService";
|
import { LocaleService } from "@spt-aki/services/LocaleService";
|
||||||
import { MailSendService } from "@spt-aki/services/MailSendService";
|
import { MailSendService } from "@spt-aki/services/MailSendService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
import { HashUtil } from "@spt-aki/utils/HashUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
/**
|
/**
|
||||||
@ -33,14 +33,14 @@ export declare class RagfairServerHelper {
|
|||||||
protected localeService: LocaleService;
|
protected localeService: LocaleService;
|
||||||
protected dialogueHelper: DialogueHelper;
|
protected dialogueHelper: DialogueHelper;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected itemFilterService: ItemFilterService;
|
protected itemFilterService: ItemFilterService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected ragfairConfig: IRagfairConfig;
|
protected ragfairConfig: IRagfairConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected static goodsReturnedTemplate: string;
|
protected static goodsReturnedTemplate: string;
|
||||||
constructor(logger: ILogger, randomUtil: RandomUtil, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, profileHelper: ProfileHelper, itemHelper: ItemHelper, localeService: LocaleService, dialogueHelper: DialogueHelper, traderHelper: TraderHelper, jsonUtil: JsonUtil, mailSendService: MailSendService, itemFilterService: ItemFilterService, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, hashUtil: HashUtil, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, profileHelper: ProfileHelper, itemHelper: ItemHelper, localeService: LocaleService, dialogueHelper: DialogueHelper, traderHelper: TraderHelper, mailSendService: MailSendService, itemFilterService: ItemFilterService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Is item valid / on blacklist / quest item
|
* Is item valid / on blacklist / quest item
|
||||||
* @param itemDetails
|
* @param itemDetails
|
||||||
|
@ -4,16 +4,16 @@ import { IRepairConfig } from "@spt-aki/models/spt/config/IRepairConfig";
|
|||||||
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
export declare class RepairHelper {
|
export declare class RepairHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected repairConfig: IRepairConfig;
|
protected repairConfig: IRepairConfig;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer);
|
constructor(logger: ILogger, randomUtil: RandomUtil, databaseServer: DatabaseServer, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Alter an items durability after a repair by trader/repair kit
|
* Alter an items durability after a repair by trader/repair kit
|
||||||
* @param itemToRepair item to update durability details
|
* @param itemToRepair item to update durability details
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { IEliminationConfig, IQuestConfig, IRepeatableQuestConfig } from "@spt-aki/models/spt/config/IQuestConfig";
|
import { IEliminationConfig, IQuestConfig, IRepeatableQuestConfig } from "@spt-aki/models/spt/config/IQuestConfig";
|
||||||
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
||||||
import { ProbabilityObject, ProbabilityObjectArray } from "@spt-aki/utils/RandomUtil";
|
import { ProbabilityObject, ProbabilityObjectArray } from "@spt-aki/utils/RandomUtil";
|
||||||
export declare class RepeatableQuestHelper {
|
export declare class RepeatableQuestHelper {
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
constructor(mathUtil: MathUtil, jsonUtil: JsonUtil, configServer: ConfigServer);
|
constructor(mathUtil: MathUtil, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get the relevant elimination config based on the current players PMC level
|
* Get the relevant elimination config based on the current players PMC level
|
||||||
* @param pmcLevel Level of PMC character
|
* @param pmcLevel Level of PMC character
|
||||||
|
@ -17,11 +17,10 @@ import { FenceService } from "@spt-aki/services/FenceService";
|
|||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { PaymentService } from "@spt-aki/services/PaymentService";
|
import { PaymentService } from "@spt-aki/services/PaymentService";
|
||||||
import { TraderPurchasePersisterService } from "@spt-aki/services/TraderPurchasePersisterService";
|
import { TraderPurchasePersisterService } from "@spt-aki/services/TraderPurchasePersisterService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "@spt-aki/utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|
||||||
export declare class TradeHelper {
|
export declare class TradeHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected eventOutputHolder: EventOutputHolder;
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected itemHelper: ItemHelper;
|
protected itemHelper: ItemHelper;
|
||||||
@ -34,9 +33,10 @@ export declare class TradeHelper {
|
|||||||
protected traderAssortHelper: TraderAssortHelper;
|
protected traderAssortHelper: TraderAssortHelper;
|
||||||
protected traderPurchasePersisterService: TraderPurchasePersisterService;
|
protected traderPurchasePersisterService: TraderPurchasePersisterService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected inventoryConfig: IInventoryConfig;
|
protected inventoryConfig: IInventoryConfig;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, eventOutputHolder: EventOutputHolder, traderHelper: TraderHelper, itemHelper: ItemHelper, paymentService: PaymentService, fenceService: FenceService, localisationService: LocalisationService, httpResponse: HttpResponseUtil, inventoryHelper: InventoryHelper, ragfairServer: RagfairServer, traderAssortHelper: TraderAssortHelper, traderPurchasePersisterService: TraderPurchasePersisterService, configServer: ConfigServer);
|
constructor(logger: ILogger, eventOutputHolder: EventOutputHolder, traderHelper: TraderHelper, itemHelper: ItemHelper, paymentService: PaymentService, fenceService: FenceService, localisationService: LocalisationService, httpResponse: HttpResponseUtil, inventoryHelper: InventoryHelper, ragfairServer: RagfairServer, traderAssortHelper: TraderAssortHelper, traderPurchasePersisterService: TraderPurchasePersisterService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Buy item from flea or trader
|
* Buy item from flea or trader
|
||||||
* @param pmcData Player profile
|
* @param pmcData Player profile
|
||||||
|
@ -14,12 +14,11 @@ import { FenceService } from "@spt-aki/services/FenceService";
|
|||||||
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
import { LocalisationService } from "@spt-aki/services/LocalisationService";
|
||||||
import { TraderAssortService } from "@spt-aki/services/TraderAssortService";
|
import { TraderAssortService } from "@spt-aki/services/TraderAssortService";
|
||||||
import { TraderPurchasePersisterService } from "@spt-aki/services/TraderPurchasePersisterService";
|
import { TraderPurchasePersisterService } from "@spt-aki/services/TraderPurchasePersisterService";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
import { MathUtil } from "@spt-aki/utils/MathUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
export declare class TraderAssortHelper {
|
export declare class TraderAssortHelper {
|
||||||
protected logger: ILogger;
|
protected logger: ILogger;
|
||||||
protected jsonUtil: JsonUtil;
|
|
||||||
protected mathUtil: MathUtil;
|
protected mathUtil: MathUtil;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
protected databaseServer: DatabaseServer;
|
protected databaseServer: DatabaseServer;
|
||||||
@ -34,10 +33,11 @@ export declare class TraderAssortHelper {
|
|||||||
protected traderHelper: TraderHelper;
|
protected traderHelper: TraderHelper;
|
||||||
protected fenceService: FenceService;
|
protected fenceService: FenceService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected traderConfig: ITraderConfig;
|
protected traderConfig: ITraderConfig;
|
||||||
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
protected mergedQuestAssorts: Record<string, Record<string, string>>;
|
||||||
protected createdMergedQuestAssorts: boolean;
|
protected createdMergedQuestAssorts: boolean;
|
||||||
constructor(logger: ILogger, jsonUtil: JsonUtil, mathUtil: MathUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer);
|
constructor(logger: ILogger, mathUtil: MathUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, profileHelper: ProfileHelper, assortHelper: AssortHelper, paymentHelper: PaymentHelper, ragfairAssortGenerator: RagfairAssortGenerator, ragfairOfferGenerator: RagfairOfferGenerator, traderAssortService: TraderAssortService, localisationService: LocalisationService, traderPurchasePersisterService: TraderPurchasePersisterService, traderHelper: TraderHelper, fenceService: FenceService, configServer: ConfigServer, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Get a traders assorts
|
* Get a traders assorts
|
||||||
* Can be used for returning ragfair / fence assorts
|
* Can be used for returning ragfair / fence assorts
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { HttpServerHelper } from "@spt-aki/helpers/HttpServerHelper";
|
import { HttpServerHelper } from "@spt-aki/helpers/HttpServerHelper";
|
||||||
import { BundleHashCacheService } from "@spt-aki/services/cache/BundleHashCacheService";
|
import { BundleHashCacheService } from "@spt-aki/services/cache/BundleHashCacheService";
|
||||||
|
import { ICloner } from "@spt-aki/utils/cloners/ICloner";
|
||||||
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
||||||
import { VFS } from "@spt-aki/utils/VFS";
|
import { VFS } from "@spt-aki/utils/VFS";
|
||||||
export declare class BundleInfo {
|
export declare class BundleInfo {
|
||||||
@ -14,8 +15,9 @@ export declare class BundleLoader {
|
|||||||
protected vfs: VFS;
|
protected vfs: VFS;
|
||||||
protected jsonUtil: JsonUtil;
|
protected jsonUtil: JsonUtil;
|
||||||
protected bundleHashCacheService: BundleHashCacheService;
|
protected bundleHashCacheService: BundleHashCacheService;
|
||||||
|
protected cloner: ICloner;
|
||||||
protected bundles: Record<string, BundleInfo>;
|
protected bundles: Record<string, BundleInfo>;
|
||||||
constructor(httpServerHelper: HttpServerHelper, vfs: VFS, jsonUtil: JsonUtil, bundleHashCacheService: BundleHashCacheService);
|
constructor(httpServerHelper: HttpServerHelper, vfs: VFS, jsonUtil: JsonUtil, bundleHashCacheService: BundleHashCacheService, cloner: ICloner);
|
||||||
/**
|
/**
|
||||||
* Handle singleplayer/bundles
|
* Handle singleplayer/bundles
|
||||||
*/
|
*/
|
||||||
|
@ -20,6 +20,7 @@ export interface IConfig {
|
|||||||
armor: IArmor;
|
armor: IArmor;
|
||||||
SessionsToShowHotKeys: number;
|
SessionsToShowHotKeys: number;
|
||||||
MaxBotsAliveOnMap: number;
|
MaxBotsAliveOnMap: number;
|
||||||
|
MaxBotsAliveOnMapPvE: number;
|
||||||
SavagePlayCooldown: number;
|
SavagePlayCooldown: number;
|
||||||
SavagePlayCooldownNdaFree: number;
|
SavagePlayCooldownNdaFree: number;
|
||||||
MarksmanAccuracy: number;
|
MarksmanAccuracy: number;
|
||||||
@ -30,6 +31,7 @@ export interface IConfig {
|
|||||||
TradingUnlimitedItems: boolean;
|
TradingUnlimitedItems: boolean;
|
||||||
MaxLoyaltyLevelForAll: boolean;
|
MaxLoyaltyLevelForAll: boolean;
|
||||||
GlobalLootChanceModifier: number;
|
GlobalLootChanceModifier: number;
|
||||||
|
GlobalLootChanceModifierPvE: number;
|
||||||
GraphicSettings: IGraphicSettings;
|
GraphicSettings: IGraphicSettings;
|
||||||
TimeBeforeDeploy: number;
|
TimeBeforeDeploy: number;
|
||||||
TimeBeforeDeployLocal: number;
|
TimeBeforeDeployLocal: number;
|
||||||
@ -41,6 +43,7 @@ export interface IConfig {
|
|||||||
BaseUnloadTime: number;
|
BaseUnloadTime: number;
|
||||||
BaseCheckTime: number;
|
BaseCheckTime: number;
|
||||||
BluntDamageReduceFromSoftArmorMod: number;
|
BluntDamageReduceFromSoftArmorMod: number;
|
||||||
|
BodyPartColliderSettings: IBodyPartColliderSettings;
|
||||||
Customization: ICustomization;
|
Customization: ICustomization;
|
||||||
UncheckOnShot: boolean;
|
UncheckOnShot: boolean;
|
||||||
BotsEnabled: boolean;
|
BotsEnabled: boolean;
|
||||||
@ -52,6 +55,7 @@ export interface IConfig {
|
|||||||
Health: IHealth;
|
Health: IHealth;
|
||||||
rating: IRating;
|
rating: IRating;
|
||||||
tournament: ITournament;
|
tournament: ITournament;
|
||||||
|
QuestSettings: IQuestSettings;
|
||||||
RagFair: IRagFair;
|
RagFair: IRagFair;
|
||||||
handbook: IHandbook;
|
handbook: IHandbook;
|
||||||
FractureCausedByFalling: IProbability;
|
FractureCausedByFalling: IProbability;
|
||||||
@ -98,6 +102,39 @@ export interface IConfig {
|
|||||||
Ballistic: IBallistic;
|
Ballistic: IBallistic;
|
||||||
RepairSettings: IRepairSettings;
|
RepairSettings: IRepairSettings;
|
||||||
}
|
}
|
||||||
|
export interface IBodyPartColliderSettings {
|
||||||
|
BackHead: IBodyPartColliderPart;
|
||||||
|
Ears: IBodyPartColliderPart;
|
||||||
|
Eyes: IBodyPartColliderPart;
|
||||||
|
HeadCommon: IBodyPartColliderPart;
|
||||||
|
Jaw: IBodyPartColliderPart;
|
||||||
|
LeftCalf: IBodyPartColliderPart;
|
||||||
|
LeftForearm: IBodyPartColliderPart;
|
||||||
|
LeftSideChestDown: IBodyPartColliderPart;
|
||||||
|
LeftSideChestUp: IBodyPartColliderPart;
|
||||||
|
LeftThigh: IBodyPartColliderPart;
|
||||||
|
LeftUpperArm: IBodyPartColliderPart;
|
||||||
|
NeckBack: IBodyPartColliderPart;
|
||||||
|
NeckFront: IBodyPartColliderPart;
|
||||||
|
ParietalHead: IBodyPartColliderPart;
|
||||||
|
Pelvis: IBodyPartColliderPart;
|
||||||
|
PelvisBack: IBodyPartColliderPart;
|
||||||
|
RibcageLow: IBodyPartColliderPart;
|
||||||
|
RibcageUp: IBodyPartColliderPart;
|
||||||
|
RightCalf: IBodyPartColliderPart;
|
||||||
|
RightForearm: IBodyPartColliderPart;
|
||||||
|
RightSideChestDown: IBodyPartColliderPart;
|
||||||
|
RightSideChestUp: IBodyPartColliderPart;
|
||||||
|
RightThigh: IBodyPartColliderPart;
|
||||||
|
RightUpperArm: IBodyPartColliderPart;
|
||||||
|
SpineDown: IBodyPartColliderPart;
|
||||||
|
SpineTop: IBodyPartColliderPart;
|
||||||
|
}
|
||||||
|
export interface IBodyPartColliderPart {
|
||||||
|
PenetrationChance: number;
|
||||||
|
PenetrationDamageMod: number;
|
||||||
|
PenetrationLevel: number;
|
||||||
|
}
|
||||||
export interface IWeaponFastDrawSettings {
|
export interface IWeaponFastDrawSettings {
|
||||||
HandShakeCurveFrequency: number;
|
HandShakeCurveFrequency: number;
|
||||||
HandShakeCurveIntensity: number;
|
HandShakeCurveIntensity: number;
|
||||||
@ -159,6 +196,7 @@ export interface IExp {
|
|||||||
kill: IKill;
|
kill: IKill;
|
||||||
level: ILevel;
|
level: ILevel;
|
||||||
loot_attempts: ILootAttempt[];
|
loot_attempts: ILootAttempt[];
|
||||||
|
expForLevelOneDogtag: number;
|
||||||
expForLockedDoorOpen: number;
|
expForLockedDoorOpen: number;
|
||||||
expForLockedDoorBreach: number;
|
expForLockedDoorBreach: number;
|
||||||
triggerMult: number;
|
triggerMult: number;
|
||||||
@ -580,6 +618,7 @@ export interface IBuffs {
|
|||||||
Buffs_food_alyonka: IBuff[];
|
Buffs_food_alyonka: IBuff[];
|
||||||
Buffs_food_slippers: IBuff[];
|
Buffs_food_slippers: IBuff[];
|
||||||
Buffs_knife: IBuff[];
|
Buffs_knife: IBuff[];
|
||||||
|
Buffs_EndOfWinterBonfire: IBuff[];
|
||||||
}
|
}
|
||||||
export interface IBuff {
|
export interface IBuff {
|
||||||
BuffType: string;
|
BuffType: string;
|
||||||
@ -763,6 +802,7 @@ export interface IMaxActiveOfferCount {
|
|||||||
from: number;
|
from: number;
|
||||||
to: number;
|
to: number;
|
||||||
count: number;
|
count: number;
|
||||||
|
countForSpecialEditions: number;
|
||||||
}
|
}
|
||||||
export interface IMaxSumForRarity {
|
export interface IMaxSumForRarity {
|
||||||
Common: IRarityMaxSum;
|
Common: IRarityMaxSum;
|
||||||
@ -919,10 +959,24 @@ export interface IBTRSettings {
|
|||||||
HeightWheelOffset: number;
|
HeightWheelOffset: number;
|
||||||
}
|
}
|
||||||
export interface IBtrMapConfig {
|
export interface IBtrMapConfig {
|
||||||
|
BtrSkin: string;
|
||||||
|
CheckSurfaceForWheelsTimer: number;
|
||||||
|
DiameterWheel: number;
|
||||||
|
HeightWheel: number;
|
||||||
|
HeightWheelMaxPosLimit: number;
|
||||||
|
HeightWheelMinPosLimit: number;
|
||||||
|
HeightWheelOffset: number;
|
||||||
|
SnapToSurfaceWheelsSpeed: number;
|
||||||
|
SuspensionDamperStiffness: number;
|
||||||
|
SuspensionRestLength: number;
|
||||||
|
SuspensionSpringStiffness: number;
|
||||||
|
SuspensionTravel: number;
|
||||||
|
SuspensionWheelRadius: number;
|
||||||
mapID: string;
|
mapID: string;
|
||||||
pathsConfigurations: IBtrMapConfig[];
|
pathsConfigurations: IPathConfig[];
|
||||||
}
|
}
|
||||||
export interface IBtrPathConfig {
|
export interface IPathConfig {
|
||||||
|
active: boolean;
|
||||||
id: string;
|
id: string;
|
||||||
enterPoint: string;
|
enterPoint: string;
|
||||||
exitPoint: string;
|
exitPoint: string;
|
||||||
@ -938,6 +992,8 @@ export interface ISquadSettings {
|
|||||||
}
|
}
|
||||||
export interface IInsurance {
|
export interface IInsurance {
|
||||||
MaxStorageTimeInHour: number;
|
MaxStorageTimeInHour: number;
|
||||||
|
CoefOfSendingMessageTime: number;
|
||||||
|
CoefOfHavingMarkOfUnknown: number;
|
||||||
}
|
}
|
||||||
export interface ISkillsSettings {
|
export interface ISkillsSettings {
|
||||||
SkillProgressRate: number;
|
SkillProgressRate: number;
|
||||||
@ -1329,6 +1385,7 @@ export interface IFenceSettings {
|
|||||||
paidExitStandingNumerator: number;
|
paidExitStandingNumerator: number;
|
||||||
}
|
}
|
||||||
export interface IFenceLevel {
|
export interface IFenceLevel {
|
||||||
|
ReachOnMarkOnUnknowns: boolean;
|
||||||
SavageCooldownModifier: number;
|
SavageCooldownModifier: number;
|
||||||
ScavCaseTimeModifier: number;
|
ScavCaseTimeModifier: number;
|
||||||
PaidExitCostModifier: number;
|
PaidExitCostModifier: number;
|
||||||
@ -1469,3 +1526,7 @@ export interface IPreset {
|
|||||||
/** Default presets have this property */
|
/** Default presets have this property */
|
||||||
_encyclopedia?: string;
|
_encyclopedia?: string;
|
||||||
}
|
}
|
||||||
|
export interface IQuestSettings {
|
||||||
|
GlobalRewardRepModifierDailyQuestPvE: number;
|
||||||
|
GlobalRewardRepModifierQuestPvE: number;
|
||||||
|
}
|
||||||
|
@ -1,9 +1,20 @@
|
|||||||
import { Exit, ILocationBase } from "@spt-aki/models/eft/common/ILocationBase";
|
import { Exit, ILocationBase } from "@spt-aki/models/eft/common/ILocationBase";
|
||||||
import { ILooseLoot } from "@spt-aki/models/eft/common/ILooseLoot";
|
import { ILooseLoot } from "@spt-aki/models/eft/common/ILooseLoot";
|
||||||
|
import { Ixyz } from "./Ixyz";
|
||||||
|
import { Item } from "./tables/IItem";
|
||||||
export interface ILocation {
|
export interface ILocation {
|
||||||
|
/** Map meta-data */
|
||||||
base: ILocationBase;
|
base: ILocationBase;
|
||||||
|
/** Loose loot postions and item weights */
|
||||||
looseLoot: ILooseLoot;
|
looseLoot: ILooseLoot;
|
||||||
|
/** Static loot item weights */
|
||||||
|
staticLoot: Record<string, IStaticLootDetails>;
|
||||||
|
/** Static container postions and item weights */
|
||||||
|
staticContainers: IStaticContainerDetails;
|
||||||
|
staticAmmo: Record<string, IStaticAmmoDetails[]>;
|
||||||
|
/** All possible static containers on map + their assign groupings */
|
||||||
statics: IStaticContainer;
|
statics: IStaticContainer;
|
||||||
|
/** All possible map extracts */
|
||||||
allExtracts: Exit[];
|
allExtracts: Exit[];
|
||||||
}
|
}
|
||||||
export interface IStaticContainer {
|
export interface IStaticContainer {
|
||||||
@ -19,3 +30,55 @@ export interface IContainerMinMax {
|
|||||||
export interface IContainerData {
|
export interface IContainerData {
|
||||||
groupId: string;
|
groupId: string;
|
||||||
}
|
}
|
||||||
|
export interface IStaticLootDetails {
|
||||||
|
itemcountDistribution: ItemCountDistribution[];
|
||||||
|
itemDistribution: ItemDistribution[];
|
||||||
|
}
|
||||||
|
export interface ItemCountDistribution {
|
||||||
|
count: number;
|
||||||
|
relativeProbability: number;
|
||||||
|
}
|
||||||
|
export interface ItemDistribution {
|
||||||
|
tpl: string;
|
||||||
|
relativeProbability: number;
|
||||||
|
}
|
||||||
|
export interface IStaticPropsBase {
|
||||||
|
Id: string;
|
||||||
|
IsContainer: boolean;
|
||||||
|
useGravity: boolean;
|
||||||
|
randomRotation: boolean;
|
||||||
|
Position: Ixyz;
|
||||||
|
Rotation: Ixyz;
|
||||||
|
IsGroupPosition: boolean;
|
||||||
|
IsAlwaysSpawn: boolean;
|
||||||
|
GroupPositions: any[];
|
||||||
|
Root: string;
|
||||||
|
Items: any[];
|
||||||
|
}
|
||||||
|
export interface IStaticWeaponProps extends IStaticPropsBase {
|
||||||
|
Items: Item[];
|
||||||
|
}
|
||||||
|
export interface IStaticContainerDetails {
|
||||||
|
staticWeapons: IStaticWeaponProps[];
|
||||||
|
staticContainers: IStaticContainerData[];
|
||||||
|
staticForced: IStaticForcedProps[];
|
||||||
|
}
|
||||||
|
export interface IStaticContainerData {
|
||||||
|
probability: number;
|
||||||
|
template: IStaticContainerProps;
|
||||||
|
}
|
||||||
|
export interface IStaticAmmoDetails {
|
||||||
|
tpl: string;
|
||||||
|
relativeProbability: number;
|
||||||
|
}
|
||||||
|
export interface IStaticForcedProps {
|
||||||
|
containerId: string;
|
||||||
|
itemTpl: string;
|
||||||
|
}
|
||||||
|
export interface IStaticContainerProps extends IStaticPropsBase {
|
||||||
|
Items: StaticItem[];
|
||||||
|
}
|
||||||
|
export interface StaticItem {
|
||||||
|
_id: string;
|
||||||
|
_tpl: string;
|
||||||
|
}
|
||||||
|
@ -17,6 +17,7 @@ export interface ILocationBase {
|
|||||||
BotMax: number;
|
BotMax: number;
|
||||||
BotMaxPlayer: number;
|
BotMaxPlayer: number;
|
||||||
BotMaxTimePlayer: number;
|
BotMaxTimePlayer: number;
|
||||||
|
BotMaxPvE: number;
|
||||||
BotNormal: number;
|
BotNormal: number;
|
||||||
BotSpawnCountStep: number;
|
BotSpawnCountStep: number;
|
||||||
BotSpawnPeriodCheck: number;
|
BotSpawnPeriodCheck: number;
|
||||||
@ -32,6 +33,7 @@ export interface ILocationBase {
|
|||||||
Enabled: boolean;
|
Enabled: boolean;
|
||||||
EnableCoop: boolean;
|
EnableCoop: boolean;
|
||||||
GlobalLootChanceModifier: number;
|
GlobalLootChanceModifier: number;
|
||||||
|
GlobalLootChanceModifierPvE: number;
|
||||||
GlobalContainerChanceModifier: number;
|
GlobalContainerChanceModifier: number;
|
||||||
IconX: number;
|
IconX: number;
|
||||||
IconY: number;
|
IconY: number;
|
||||||
@ -72,6 +74,7 @@ export interface ILocationBase {
|
|||||||
doors: any[];
|
doors: any[];
|
||||||
EscapeTimeLimit: number;
|
EscapeTimeLimit: number;
|
||||||
EscapeTimeLimitCoop: number;
|
EscapeTimeLimitCoop: number;
|
||||||
|
EscapeTimeLimitPVE: number;
|
||||||
exit_access_time: number;
|
exit_access_time: number;
|
||||||
exit_count: number;
|
exit_count: number;
|
||||||
exit_time: number;
|
exit_time: number;
|
||||||
@ -136,6 +139,7 @@ export interface BossLocationSpawn {
|
|||||||
IgnoreMaxBots?: boolean;
|
IgnoreMaxBots?: boolean;
|
||||||
Supports?: BossSupport[];
|
Supports?: BossSupport[];
|
||||||
sptId?: string;
|
sptId?: string;
|
||||||
|
spawnMode: string[];
|
||||||
}
|
}
|
||||||
export interface BossSupport {
|
export interface BossSupport {
|
||||||
BossEscortAmount: string;
|
BossEscortAmount: string;
|
||||||
|
@ -307,6 +307,9 @@ export interface Productive {
|
|||||||
ProductionTime?: number;
|
ProductionTime?: number;
|
||||||
GivenItemsInStart?: string[];
|
GivenItemsInStart?: string[];
|
||||||
Interrupted?: boolean;
|
Interrupted?: boolean;
|
||||||
|
Code?: string;
|
||||||
|
Decoded?: boolean;
|
||||||
|
AvailableForFinish?: boolean;
|
||||||
/** Used in hideout production.json */
|
/** Used in hideout production.json */
|
||||||
needFuelForAllProductionTime?: boolean;
|
needFuelForAllProductionTime?: boolean;
|
||||||
/** Used when sending data to client */
|
/** Used when sending data to client */
|
||||||
|
@ -63,6 +63,7 @@ export interface Props {
|
|||||||
DiscardingBlock?: boolean;
|
DiscardingBlock?: boolean;
|
||||||
DropSoundType?: string;
|
DropSoundType?: string;
|
||||||
RagFairCommissionModifier?: number;
|
RagFairCommissionModifier?: number;
|
||||||
|
RarityPvE: string;
|
||||||
IsAlwaysAvailableForInsurance?: boolean;
|
IsAlwaysAvailableForInsurance?: boolean;
|
||||||
DiscardLimit?: number;
|
DiscardLimit?: number;
|
||||||
MaxResource?: number;
|
MaxResource?: number;
|
||||||
@ -352,7 +353,8 @@ export interface Props {
|
|||||||
casingMass?: number;
|
casingMass?: number;
|
||||||
casingSounds?: string;
|
casingSounds?: string;
|
||||||
ProjectileCount?: number;
|
ProjectileCount?: number;
|
||||||
PenetrationChance?: number;
|
PenetrationChanceObstacle?: number;
|
||||||
|
PenetrationDamageMod: number;
|
||||||
RicochetChance?: number;
|
RicochetChance?: number;
|
||||||
FragmentationChance?: number;
|
FragmentationChance?: number;
|
||||||
Deterioration?: number;
|
Deterioration?: number;
|
||||||
|
4
TypeScript/10ScopesAndTypes/types/models/eft/dialog/IAddUserGroupMailRequest.d.ts
vendored
Normal file
4
TypeScript/10ScopesAndTypes/types/models/eft/dialog/IAddUserGroupMailRequest.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IAddUserGroupMailRequest {
|
||||||
|
dialogId: string;
|
||||||
|
uid: string;
|
||||||
|
}
|
4
TypeScript/10ScopesAndTypes/types/models/eft/dialog/IChangeGroupMailOwnerRequest.d.ts
vendored
Normal file
4
TypeScript/10ScopesAndTypes/types/models/eft/dialog/IChangeGroupMailOwnerRequest.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IChangeGroupMailOwnerRequest {
|
||||||
|
dialogId: string;
|
||||||
|
uid: string;
|
||||||
|
}
|
4
TypeScript/10ScopesAndTypes/types/models/eft/dialog/ICreateGroupMailRequest.d.ts
vendored
Normal file
4
TypeScript/10ScopesAndTypes/types/models/eft/dialog/ICreateGroupMailRequest.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface ICreateGroupMailRequest {
|
||||||
|
Name: string;
|
||||||
|
Users: string[];
|
||||||
|
}
|
4
TypeScript/10ScopesAndTypes/types/models/eft/dialog/IRemoveUserGroupMailRequest.d.ts
vendored
Normal file
4
TypeScript/10ScopesAndTypes/types/models/eft/dialog/IRemoveUserGroupMailRequest.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IRemoveUserGroupMailRequest {
|
||||||
|
dialogId: string;
|
||||||
|
uid: string;
|
||||||
|
}
|
3
TypeScript/10ScopesAndTypes/types/models/eft/game/IGameModeRequestData.d.ts
vendored
Normal file
3
TypeScript/10ScopesAndTypes/types/models/eft/game/IGameModeRequestData.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export interface IGameModeRequestData {
|
||||||
|
sessionMode: string | null;
|
||||||
|
}
|
8
TypeScript/10ScopesAndTypes/types/models/eft/game/IGameModeResponse.d.ts
vendored
Normal file
8
TypeScript/10ScopesAndTypes/types/models/eft/game/IGameModeResponse.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export declare enum ESessionMode {
|
||||||
|
REGULAR = "regular",
|
||||||
|
PVE = "pve"
|
||||||
|
}
|
||||||
|
export interface IGameModeResponse {
|
||||||
|
gameMode: ESessionMode;
|
||||||
|
backendUrl: string;
|
||||||
|
}
|
4
TypeScript/10ScopesAndTypes/types/models/eft/game/ISendReportRequest.d.ts
vendored
Normal file
4
TypeScript/10ScopesAndTypes/types/models/eft/game/ISendReportRequest.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface ISendReportRequest {
|
||||||
|
type: string;
|
||||||
|
uid: string;
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
export interface IAcceptGroupInviteRequest {
|
|
||||||
requestId: string;
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
export interface IAcceptGroupInviteResponse {
|
|
||||||
_id: string;
|
|
||||||
aid: number;
|
|
||||||
Info: PlayerInviteInfo;
|
|
||||||
isLeader: boolean;
|
|
||||||
isReady: boolean;
|
|
||||||
}
|
|
||||||
export interface PlayerInviteInfo {
|
|
||||||
Nickname: string;
|
|
||||||
Side: string;
|
|
||||||
Level: number;
|
|
||||||
MemberCategory: number;
|
|
||||||
GameVersion: string;
|
|
||||||
SavageLockTime: number;
|
|
||||||
SavageNickname: string;
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
export interface ICancelGroupInviteRequest {
|
|
||||||
requestId: string;
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
import { RaidMode } from "@spt-aki/models/enums/RaidMode";
|
|
||||||
export interface ICreateGroupRequestData {
|
|
||||||
location: string;
|
|
||||||
raidMode: RaidMode;
|
|
||||||
startInGroup: boolean;
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
export interface IDeclineGroupInviteRequest {
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
import { MemberCategory } from "@spt-aki/models/enums/MemberCategory";
|
|
||||||
export interface IGetGroupStatusResponse {
|
|
||||||
players: IPlayer[];
|
|
||||||
maxPveCountExceeded: boolean;
|
|
||||||
}
|
|
||||||
export interface IPlayer {
|
|
||||||
aid: string;
|
|
||||||
_id: string;
|
|
||||||
lookingGroup: boolean;
|
|
||||||
IsLeader: boolean;
|
|
||||||
IsReady: boolean;
|
|
||||||
Info: ICurrentGroupMemberInfo;
|
|
||||||
}
|
|
||||||
export interface ICurrentGroupMemberInfo {
|
|
||||||
Nickname: string;
|
|
||||||
Side: string;
|
|
||||||
Level: string;
|
|
||||||
MemberCategory: MemberCategory;
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
export interface IGetProfileRequestData {
|
|
||||||
profileId: string;
|
|
||||||
}
|
|
@ -1,34 +1,6 @@
|
|||||||
export interface IGetRaidConfigurationRequestData {
|
import { IRaidSettings } from "@spt-aki/models/eft/match/IRaidSettings";
|
||||||
|
export interface IGetRaidConfigurationRequestData extends IRaidSettings {
|
||||||
keyId: string;
|
keyId: string;
|
||||||
side: string;
|
|
||||||
location: string;
|
|
||||||
timeVariant: string;
|
|
||||||
raidMode: string;
|
|
||||||
metabolismDisabled: boolean;
|
|
||||||
playersSpawnPlace: string;
|
|
||||||
timeAndWeatherSettings: TimeAndWeatherSettings;
|
|
||||||
botSettings: BotSettings;
|
|
||||||
wavesSettings: WavesSettings;
|
|
||||||
CanShowGroupPreview: boolean;
|
CanShowGroupPreview: boolean;
|
||||||
MaxGroupCount: number;
|
MaxGroupCount: number;
|
||||||
}
|
}
|
||||||
export interface TimeAndWeatherSettings {
|
|
||||||
isRandomTime: boolean;
|
|
||||||
isRandomWeather: boolean;
|
|
||||||
cloudinessType: string;
|
|
||||||
rainType: string;
|
|
||||||
windType: string;
|
|
||||||
fogType: string;
|
|
||||||
timeFlowType: string;
|
|
||||||
hourOfDay: number;
|
|
||||||
}
|
|
||||||
export interface BotSettings {
|
|
||||||
isScavWars: boolean;
|
|
||||||
botAmount: string;
|
|
||||||
}
|
|
||||||
export interface WavesSettings {
|
|
||||||
botAmount: string;
|
|
||||||
botDifficulty: string;
|
|
||||||
isBosses: boolean;
|
|
||||||
isTaggedAndCursed: boolean;
|
|
||||||
}
|
|
||||||
|
39
TypeScript/10ScopesAndTypes/types/models/eft/match/IGroupCharacter.d.ts
vendored
Normal file
39
TypeScript/10ScopesAndTypes/types/models/eft/match/IGroupCharacter.d.ts
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
import { Item } from "@spt-aki/models/eft/common/tables/IItem";
|
||||||
|
import { MemberCategory } from "@spt-aki/models/enums/MemberCategory";
|
||||||
|
export interface IGroupCharacter {
|
||||||
|
_id: string;
|
||||||
|
aid: number;
|
||||||
|
Info: {
|
||||||
|
Nickname: string;
|
||||||
|
Side: string;
|
||||||
|
Level: number;
|
||||||
|
MemberCategory: MemberCategory;
|
||||||
|
GameVersion?: string;
|
||||||
|
SavageLockTime?: number;
|
||||||
|
SavageNickname?: string;
|
||||||
|
hasCoopExtension?: boolean;
|
||||||
|
};
|
||||||
|
PlayerVisualRepresentation?: {
|
||||||
|
Info: {
|
||||||
|
Side: string;
|
||||||
|
Level: number;
|
||||||
|
Nickname: string;
|
||||||
|
MemberCategory: MemberCategory;
|
||||||
|
GameVersion: string;
|
||||||
|
};
|
||||||
|
Customization: {
|
||||||
|
Head: string;
|
||||||
|
Body: string;
|
||||||
|
Feet: string;
|
||||||
|
Hands: string;
|
||||||
|
};
|
||||||
|
Equipment: {
|
||||||
|
Id: string;
|
||||||
|
Items: Item[];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
isLeader: boolean;
|
||||||
|
isReady?: boolean;
|
||||||
|
region?: string;
|
||||||
|
lookingGroup?: boolean;
|
||||||
|
}
|
@ -1,9 +0,0 @@
|
|||||||
export interface IJoinMatchRequestData {
|
|
||||||
groupid: string;
|
|
||||||
servers: Server[];
|
|
||||||
}
|
|
||||||
export interface Server {
|
|
||||||
ping: number;
|
|
||||||
ip: string;
|
|
||||||
port: string;
|
|
||||||
}
|
|
@ -1,18 +0,0 @@
|
|||||||
export interface IJoinMatchResult {
|
|
||||||
maxPveCountExceeded: boolean;
|
|
||||||
profiles: IJoinMatchPlayerProfile[];
|
|
||||||
}
|
|
||||||
export interface IJoinMatchPlayerProfile {
|
|
||||||
profileid: string;
|
|
||||||
profileToken: string;
|
|
||||||
status: string;
|
|
||||||
sid: string;
|
|
||||||
ip: string;
|
|
||||||
port: number;
|
|
||||||
version: string;
|
|
||||||
location: string;
|
|
||||||
raidMode: string;
|
|
||||||
mode: string;
|
|
||||||
shortid: string;
|
|
||||||
additional_info: any[];
|
|
||||||
}
|
|
4
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupCurrentResponse.d.ts
vendored
Normal file
4
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupCurrentResponse.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import { IGroupCharacter } from "@spt-aki/models/eft/match/IGroupCharacter";
|
||||||
|
export interface IMatchGroupCurrentResponse {
|
||||||
|
squad: IGroupCharacter[];
|
||||||
|
}
|
4
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupInviteSendRequest.d.ts
vendored
Normal file
4
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupInviteSendRequest.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export interface IMatchGroupInviteSendRequest {
|
||||||
|
to: string;
|
||||||
|
inLobby: boolean;
|
||||||
|
}
|
3
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupPlayerRemoveRequest.d.ts
vendored
Normal file
3
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupPlayerRemoveRequest.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export interface IMatchGroupPlayerRemoveRequest {
|
||||||
|
aidToKick: string;
|
||||||
|
}
|
5
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupStartGameRequest.d.ts
vendored
Normal file
5
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupStartGameRequest.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { IServer } from "@spt-aki/models/eft/match/IServer";
|
||||||
|
export interface IMatchGroupStartGameRequest {
|
||||||
|
groupId: string;
|
||||||
|
servers: IServer[];
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
import { RaidMode } from "@spt-aki/models/enums/RaidMode";
|
import { RaidMode } from "@spt-aki/models/enums/RaidMode";
|
||||||
export interface IGetGroupStatusRequestData {
|
export interface IMatchGroupStatusRequest {
|
||||||
location: string;
|
location: string;
|
||||||
savage: boolean;
|
savage: boolean;
|
||||||
dt: string;
|
dt: string;
|
5
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupStatusResponse.d.ts
vendored
Normal file
5
TypeScript/10ScopesAndTypes/types/models/eft/match/IMatchGroupStatusResponse.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import { IGroupCharacter } from "@spt-aki/models/eft/match/IGroupCharacter";
|
||||||
|
export interface IMatchGroupStatusResponse {
|
||||||
|
players: IGroupCharacter[];
|
||||||
|
maxPveCountExceeded: boolean;
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user