Update example 5
This commit is contained in:
parent
79d934cba0
commit
9f4a555c3a
9
TypeScript/5ReplaceMethod/.eslintignore
Normal file
9
TypeScript/5ReplaceMethod/.eslintignore
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Exclude these folders from linting
|
||||||
|
node_modules
|
||||||
|
dist/
|
||||||
|
types/
|
||||||
|
|
||||||
|
# Exclude these filetypes from linting
|
||||||
|
*.json
|
||||||
|
*.txt
|
||||||
|
*.exe
|
75
TypeScript/5ReplaceMethod/.eslintrc.json
Normal file
75
TypeScript/5ReplaceMethod/.eslintrc.json
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
{
|
||||||
|
"root": true,
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"plugins": [
|
||||||
|
"@typescript-eslint"
|
||||||
|
],
|
||||||
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
|
"plugin:@typescript-eslint/recommended"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"@typescript-eslint/no-explicit-any": 0,
|
||||||
|
"@typescript-eslint/no-unused-vars": 1,
|
||||||
|
"@typescript-eslint/no-empty-interface": 0,
|
||||||
|
"@typescript-eslint/no-namespace": 0,
|
||||||
|
"@typescript-eslint/comma-dangle": 1,
|
||||||
|
"@typescript-eslint/func-call-spacing": 2,
|
||||||
|
"@typescript-eslint/quotes": 1,
|
||||||
|
"@typescript-eslint/brace-style": [
|
||||||
|
"warn",
|
||||||
|
"allman"
|
||||||
|
],
|
||||||
|
"@typescript-eslint/naming-convention": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"selector": "default",
|
||||||
|
"format": ["camelCase"],
|
||||||
|
"leadingUnderscore": "allow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "typeLike",
|
||||||
|
"format": ["PascalCase"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "objectLiteralProperty",
|
||||||
|
"format": ["PascalCase", "camelCase"],
|
||||||
|
"leadingUnderscore": "allow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "typeProperty",
|
||||||
|
"format": ["PascalCase", "camelCase"],
|
||||||
|
"leadingUnderscore": "allow"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "enumMember",
|
||||||
|
"format": ["UPPER_CASE"]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@typescript-eslint/indent": [
|
||||||
|
"warn",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"@typescript-eslint/no-unused-expressions": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"allowShortCircuit": false,
|
||||||
|
"allowTernary": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@typescript-eslint/keyword-spacing": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"before": true,
|
||||||
|
"after": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@typescript-eslint/explicit-module-boundary-types": [
|
||||||
|
"warn",
|
||||||
|
{
|
||||||
|
"allowArgumentsExplicitlyTypedAsAny": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
40
TypeScript/5ReplaceMethod/README.txt
Normal file
40
TypeScript/5ReplaceMethod/README.txt
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
This project was set up to automate most parts of building and setting up an environment.
|
||||||
|
|
||||||
|
NodeJS 14.15.3:
|
||||||
|
The first step would be to install nodejs on your pc, the version you NEED is 14.15.3
|
||||||
|
That version is the one that has been used to test the mod templates and build scripts.
|
||||||
|
It can be downloaded from here: https://nodejs.org/download/release/v14.15.3/
|
||||||
|
A system reboot may be needed after install.
|
||||||
|
|
||||||
|
IDE:
|
||||||
|
The second step is having an IDE ready. For the currect purpose we've setup a VSCodium workspace file.
|
||||||
|
You CAN use Visual Studio Code if you so desire, just keep in mind that our dev tests on the mod files was done using VSCodium.
|
||||||
|
You can get VSCodium here: https://vscodium.com/#install
|
||||||
|
|
||||||
|
Workspace:
|
||||||
|
Once you have NodeJS and VSCodium ready, open the mod.code-workspace file with VSCodium (File->Open Worspace from File...).
|
||||||
|
Once the project loads into VSCodium you will be recommended to install the ESLint plugin. This is HIGHLY recommended to be done.
|
||||||
|
|
||||||
|
Environment Setup:
|
||||||
|
There is a task that will automatically setup your environment to use typescript.
|
||||||
|
To run it, you just need to go to: Terminal->Run Task...->Show All Tasks...->npm: install
|
||||||
|
After running this task, your environment will be ready to start coding.
|
||||||
|
DO NOT remove the node_modules folder, this is an auto generated directory that has the required dependencies to be able to use typescript and more.
|
||||||
|
|
||||||
|
IMPORTANT:
|
||||||
|
Before starting to work on your mod, we suggest you read about Dependency Injection and Inversion of Control as this is the adopted architecture SPT-AKI has adopted.
|
||||||
|
It will be difficult to understand some of the problems you may be having if you dont understand the basics of it.
|
||||||
|
A guide explaining all the essentials will be available on the hub on release for you to read about.
|
||||||
|
|
||||||
|
Coding:
|
||||||
|
All your work should be centered around the mod.ts file as an entry point.
|
||||||
|
You can ONLY change the following properties from the package.json file: "name", "version", "license": "MIT", "author", "akiVersion".
|
||||||
|
If you have never used typescript before, you should read about it here: https://www.typescriptlang.org/docs/
|
||||||
|
|
||||||
|
Distributing your mod:
|
||||||
|
The project has been set up with an automatic task that will copy and zip ALL required files for your mod to work on SPT-AKI.
|
||||||
|
To run this task you just need to go to: Terminal->Run Task...->Show All Tasks...->npm: build:zip
|
||||||
|
The output will be a mod.zip file that will appear on the root of the project.
|
||||||
|
Always verify that all files were included into the zip file.
|
||||||
|
|
||||||
|
|
12
TypeScript/5ReplaceMethod/mod.code-workspace
Normal file
12
TypeScript/5ReplaceMethod/mod.code-workspace
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"extensions": {
|
||||||
|
"recommendations": [
|
||||||
|
"dbaeumer.vscode-eslint"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -6,12 +6,20 @@
|
|||||||
"author": "Chomp",
|
"author": "Chomp",
|
||||||
"akiVersion": "3.0.0",
|
"akiVersion": "3.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"install": "npx handpick --target=devDependencies",
|
"setup:environment": "npm i",
|
||||||
"build": "tsc"
|
"build:unzipped": "copyfiles -e \"./node_modules/**/*.*\" -e \"./dist/**/*.*\" -e \"./package-lock.json\" -e \"./tsconfig.json\" -e \"./README.txt\" -e \"./mod.code-workspace\" ./**/*.* ./dist",
|
||||||
|
"zip:files": "cd dist/ && bestzip ../mod.zip *",
|
||||||
|
"build:zip": "npm run clean:environment && npm run build:unzipped && npm run zip:files",
|
||||||
|
"clean:environment": "node -e \"require('fs').rm('mod.zip', ()=>{})\" && node -e \"require('fs').rmdir('./dist/',{recursive:true},()=>{})\""
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^17.0.31",
|
"@types/node": "^14.15.3",
|
||||||
"tsyringe": "^4.6.0",
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
||||||
"typescript": "^4.6.4"
|
"@typescript-eslint/parser": "^4.33.0",
|
||||||
|
"copyfiles": "2.4.1",
|
||||||
|
"eslint": "7.26.0",
|
||||||
|
"tsyringe": "4.6.0",
|
||||||
|
"typescript": "4.6.4",
|
||||||
|
"bestzip": "2.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,37 +1,77 @@
|
|||||||
import type { DependencyContainer } from "tsyringe";
|
import type { DependencyContainer } from "tsyringe";
|
||||||
|
import type { IMod } from "../types/models/external/mod";
|
||||||
import { IMod } from "../types/models/external/mod";
|
import type { LauncherController } from "../types/controllers/LauncherController";
|
||||||
import type { WatermarkLocale } from "../types/utils/Watermark";
|
import type { DatabaseServer } from "../types/servers/DatabaseServer";
|
||||||
|
import type { ILoginRequestData } from "../types/models/eft/launcher/ILoginRequestData";
|
||||||
|
import type { ILogger } from "../types/models/spt/utils/ILogger";
|
||||||
|
import type { SaveServer } from "../types/servers/SaveServer";
|
||||||
|
|
||||||
class Mod implements IMod
|
class Mod implements IMod
|
||||||
{
|
{
|
||||||
|
// DO NOT leave static references to ANY resolved dependency.
|
||||||
|
// ALWAYS use the container to resolve dependencies
|
||||||
|
// ****** ALWAYS *******
|
||||||
|
private static container: DependencyContainer;
|
||||||
|
|
||||||
// Perform these actions before server fully loads
|
// Perform these actions before server fully loads
|
||||||
public load(container: DependencyContainer): void
|
public load(container: DependencyContainer): void
|
||||||
{
|
{
|
||||||
// get watermarkLocale class from server
|
// We will save a reference to the dependency container to resolve dependencies
|
||||||
const watermarkLocale = container.resolve<WatermarkLocale>("WatermarkLocale");
|
// that we may need down the line
|
||||||
|
Mod.container = container;
|
||||||
|
|
||||||
// Approach #1
|
|
||||||
// Replace the getDescription() function with the one below called 'replacementFunction()'
|
|
||||||
watermarkLocale.getDescription = this.replacementFunction;
|
|
||||||
|
|
||||||
// Approach #2
|
|
||||||
// Wait until WatermarkLocale gets resolved by the server and run code afterwards to replace
|
// Wait until WatermarkLocale gets resolved by the server and run code afterwards to replace
|
||||||
// the getDescription() function with the one below called 'replacementFunction()
|
// the getDescription() function with the one below called 'replacementFunction()
|
||||||
container.afterResolution("WatermarkLocale", (_t, result: WatermarkLocale) =>
|
container.afterResolution("LauncherController", (_t, result: LauncherController) =>
|
||||||
{
|
{
|
||||||
result.getDescription = this.replacementFunction;
|
// We want to replace the original method logic with something different
|
||||||
|
result.login = (info: ILoginRequestData) =>
|
||||||
|
{
|
||||||
|
// We are calling a replacement function, technically you could also do:
|
||||||
|
// result.login = this.replacementFunction;
|
||||||
|
return this.replacementFunction(info);
|
||||||
|
}
|
||||||
|
// The modifier Always makes sure this replacement method is ALWAYS replaced
|
||||||
}, {frequency: "Always"});
|
}, {frequency: "Always"});
|
||||||
}
|
}
|
||||||
|
|
||||||
// not used for this example
|
// not used for this example
|
||||||
public delayedLoad(container: DependencyContainer): void
|
public delayedLoad(container: DependencyContainer): void
|
||||||
{ return }
|
{
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// our new replacement function, ready to be used
|
// our new replacement function, ready to be used
|
||||||
public replacementFunction(): string[]
|
public replacementFunction(info: ILoginRequestData): string
|
||||||
{
|
{
|
||||||
return ["SPT AKI, WOW VERY COOL"];
|
// The original method requires the save server to be loaded
|
||||||
|
const saveServer = Mod.container.resolve<SaveServer>("SaveServer");
|
||||||
|
|
||||||
|
// The logic below is the original login method logic
|
||||||
|
let originalReturn = "";
|
||||||
|
for (const sessionID in saveServer.getProfiles())
|
||||||
|
{
|
||||||
|
const account = saveServer.getProfile(sessionID).info;
|
||||||
|
if (info.username === account.username)
|
||||||
|
{
|
||||||
|
originalReturn = sessionID;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// This is now extra stuff we want to add
|
||||||
|
// We resolve 2 more dependencies: The logger and the DatabaseServer
|
||||||
|
const logger = Mod.container.resolve<ILogger>("WinstonLogger");
|
||||||
|
const dbServer = Mod.container.resolve<DatabaseServer>("DatabaseServer");
|
||||||
|
|
||||||
|
// As an example Im counting the amount of loaded items on the DB
|
||||||
|
const loadedItems = Object.entries(dbServer.getTables().templates.items).length;
|
||||||
|
// Lets do a few informational messages
|
||||||
|
logger.success(`User ${info.username} logged in to SPT, there are ${loadedItems} items loaded into the database`);
|
||||||
|
logger.success(originalReturn.length > 0 ? `User session ID: ${originalReturn}` : "User not found");
|
||||||
|
|
||||||
|
// And finally return whatever we were supposed to return through this function
|
||||||
|
return originalReturn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
TypeScript/5ReplaceMethod/types/Program.d.ts
vendored
3
TypeScript/5ReplaceMethod/types/Program.d.ts
vendored
@ -1,4 +1,5 @@
|
|||||||
export declare class Program {
|
export declare class Program
|
||||||
|
{
|
||||||
constructor();
|
constructor();
|
||||||
start(): void;
|
start(): void;
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,8 @@ import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
|||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { IBotBase } from "../models/eft/common/tables/IBotBase";
|
import { IBotBase } from "../models/eft/common/tables/IBotBase";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class BotCallbacks {
|
export declare class BotCallbacks
|
||||||
|
{
|
||||||
private botController;
|
private botController;
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
constructor(botController: BotController, httpResponse: HttpResponseUtil);
|
constructor(botController: BotController, httpResponse: HttpResponseUtil);
|
||||||
|
@ -3,7 +3,8 @@ import { ConfigServer } from "../servers/ConfigServer";
|
|||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||||
export declare class BundleCallbacks {
|
export declare class BundleCallbacks
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private httpServer;
|
private httpServer;
|
||||||
|
@ -7,7 +7,8 @@ import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyRespons
|
|||||||
import { ISuit } from "../models/eft/common/tables/ITrader";
|
import { ISuit } from "../models/eft/common/tables/ITrader";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class CustomizationCallbacks {
|
export declare class CustomizationCallbacks
|
||||||
|
{
|
||||||
private customizationController;
|
private customizationController;
|
||||||
private saveServer;
|
private saveServer;
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
|
@ -11,7 +11,8 @@ import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyRespons
|
|||||||
import { ILanguageBase } from "../models/spt/server/ILocaleBase";
|
import { ILanguageBase } from "../models/spt/server/ILocaleBase";
|
||||||
import { ISettingsBase } from "../models/spt/server/ISettingsBase";
|
import { ISettingsBase } from "../models/spt/server/ISettingsBase";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class DataCallbacks {
|
export declare class DataCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
constructor(httpResponse: HttpResponseUtil, databaseServer: DatabaseServer);
|
constructor(httpResponse: HttpResponseUtil, databaseServer: DatabaseServer);
|
||||||
|
@ -20,7 +20,8 @@ import { ISendMessageRequest } from "../models/eft/dialog/ISendMessageRequest";
|
|||||||
import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData";
|
import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData";
|
||||||
import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse";
|
import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
export declare class DialogueCallbacks extends OnUpdate {
|
export declare class DialogueCallbacks extends OnUpdate
|
||||||
|
{
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
|
@ -7,7 +7,8 @@ import { INullResponseData } from "../models/eft/httpResponse/INullResponseData"
|
|||||||
import { IGameConfigResponse } from "../models/eft/game/IGameConfigResponse";
|
import { IGameConfigResponse } from "../models/eft/game/IGameConfigResponse";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { IWatermark } from "../models/spt/utils/IWatermark";
|
import { IWatermark } from "../models/spt/utils/IWatermark";
|
||||||
declare class GameCallbacks {
|
declare class GameCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private watermark;
|
private watermark;
|
||||||
private gameController;
|
private gameController;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { HandbookController } from "../controllers/HandbookController";
|
import { HandbookController } from "../controllers/HandbookController";
|
||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
export declare class HandbookCallbacks extends OnLoad {
|
export declare class HandbookCallbacks extends OnLoad
|
||||||
|
{
|
||||||
private handbookController;
|
private handbookController;
|
||||||
constructor(handbookController: HandbookController);
|
constructor(handbookController: HandbookController);
|
||||||
onLoad(): void;
|
onLoad(): void;
|
||||||
|
@ -8,7 +8,8 @@ import { ProfileHelper } from "../helpers/ProfileHelper";
|
|||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
export declare class HealthCallbacks {
|
export declare class HealthCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private profileHelper;
|
private profileHelper;
|
||||||
private healthController;
|
private healthController;
|
||||||
|
@ -12,7 +12,8 @@ import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideou
|
|||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { OnUpdate } from "../di/OnUpdate";
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
export declare class HideoutCallbacks extends OnUpdate {
|
export declare class HideoutCallbacks extends OnUpdate
|
||||||
|
{
|
||||||
private hideoutController;
|
private hideoutController;
|
||||||
private configServer;
|
private configServer;
|
||||||
private hideoutConfig;
|
private hideoutConfig;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
export declare class HttpCallbacks extends OnLoad {
|
export declare class HttpCallbacks extends OnLoad
|
||||||
|
{
|
||||||
private httpServer;
|
private httpServer;
|
||||||
constructor(httpServer: IHttpServer);
|
constructor(httpServer: IHttpServer);
|
||||||
onLoad(): void;
|
onLoad(): void;
|
||||||
|
@ -5,7 +5,8 @@ import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayer
|
|||||||
import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData";
|
import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData";
|
||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class InraidCallbacks {
|
export declare class InraidCallbacks
|
||||||
|
{
|
||||||
private inraidController;
|
private inraidController;
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private configServer;
|
private configServer;
|
||||||
|
@ -8,7 +8,8 @@ import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
|||||||
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
||||||
import { InsuranceService } from "../services/InsuranceService";
|
import { InsuranceService } from "../services/InsuranceService";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
export declare class InsuranceCallbacks extends OnLoadOnUpdate {
|
export declare class InsuranceCallbacks extends OnLoadOnUpdate
|
||||||
|
{
|
||||||
private insuranceController;
|
private insuranceController;
|
||||||
private insuranceService;
|
private insuranceService;
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
|
@ -17,7 +17,8 @@ import { IInventoryCreateMarkerRequestData } from "../models/eft/inventory/IInve
|
|||||||
import { IInventoryDeleteMarkerRequestData } from "../models/eft/inventory/IInventoryDeleteMarkerRequestData";
|
import { IInventoryDeleteMarkerRequestData } from "../models/eft/inventory/IInventoryDeleteMarkerRequestData";
|
||||||
import { IInventoryEditMarkerRequestData } from "../models/eft/inventory/IInventoryEditMarkerRequestData";
|
import { IInventoryEditMarkerRequestData } from "../models/eft/inventory/IInventoryEditMarkerRequestData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
export declare class InventoryCallbacks {
|
export declare class InventoryCallbacks
|
||||||
|
{
|
||||||
private inventoryController;
|
private inventoryController;
|
||||||
constructor(inventoryController: InventoryController);
|
constructor(inventoryController: InventoryController);
|
||||||
moveItem(pmcData: IPmcData, body: IInventoryMoveRequestData, sessionID: string): IItemEventRouterResponse;
|
moveItem(pmcData: IPmcData, body: IInventoryMoveRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
@ -3,7 +3,8 @@ import { IItemEventRouterRequest } from "../models/eft/itemEvent/IItemEventRoute
|
|||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class ItemEventCallbacks {
|
export declare class ItemEventCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private itemEventRouter;
|
private itemEventRouter;
|
||||||
constructor(httpResponse: HttpResponseUtil, itemEventRouter: ItemEventRouter);
|
constructor(httpResponse: HttpResponseUtil, itemEventRouter: ItemEventRouter);
|
||||||
|
@ -6,7 +6,8 @@ import { IRemoveProfileData } from "../models/eft/launcher/IRemoveProfileData";
|
|||||||
import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData";
|
import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData";
|
||||||
import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData";
|
import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData";
|
||||||
import { IWatermark } from "../models/spt/utils/IWatermark";
|
import { IWatermark } from "../models/spt/utils/IWatermark";
|
||||||
declare class LauncherCallbacks {
|
declare class LauncherCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private launcherController;
|
private launcherController;
|
||||||
private saveServer;
|
private saveServer;
|
||||||
|
@ -4,7 +4,8 @@ import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyRespons
|
|||||||
import { ILocationsGenerateAllResponse } from "../models/eft/common/ILocationsSourceDestinationBase";
|
import { ILocationsGenerateAllResponse } from "../models/eft/common/ILocationsSourceDestinationBase";
|
||||||
import { ILocationBase } from "../models/eft/common/ILocationBase";
|
import { ILocationBase } from "../models/eft/common/ILocationBase";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class LocationCallbacks {
|
export declare class LocationCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private locationController;
|
private locationController;
|
||||||
constructor(httpResponse: HttpResponseUtil, locationController: LocationController);
|
constructor(httpResponse: HttpResponseUtil, locationController: LocationController);
|
||||||
|
@ -7,7 +7,8 @@ import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyRespons
|
|||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
export declare class MatchCallbacks {
|
export declare class MatchCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private matchController;
|
private matchController;
|
||||||
|
@ -2,9 +2,10 @@ import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
|||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
import { DelayedModLoader } from "../loaders/DelayedModLoader";
|
import { DelayedModLoader } from "../loaders/DelayedModLoader";
|
||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { ILogger } from '../models/spt/utils/ILogger';
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
import { IHttpServer } from '../models/spt/server/IHttpServer';
|
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||||
declare class ModCallbacks extends OnLoad {
|
declare class ModCallbacks extends OnLoad
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private httpServer;
|
private httpServer;
|
||||||
|
@ -2,7 +2,8 @@ import { NoteController } from "../controllers/NoteController";
|
|||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
export declare class NoteCallbacks {
|
export declare class NoteCallbacks
|
||||||
|
{
|
||||||
private noteController;
|
private noteController;
|
||||||
constructor(noteController: NoteController);
|
constructor(noteController: NoteController);
|
||||||
addNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
addNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
@ -5,7 +5,8 @@ import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyRespons
|
|||||||
import { INotifierChannel } from "../models/eft/notifier/INotifier";
|
import { INotifierChannel } from "../models/eft/notifier/INotifier";
|
||||||
import { ISelectProfileRequestData } from "../models/eft/notifier/ISelectProfileRequestData";
|
import { ISelectProfileRequestData } from "../models/eft/notifier/ISelectProfileRequestData";
|
||||||
import { NotifierController } from "../controllers/NotifierController";
|
import { NotifierController } from "../controllers/NotifierController";
|
||||||
export declare class NotifierCallbacks {
|
export declare class NotifierCallbacks
|
||||||
|
{
|
||||||
private httpServerHelper;
|
private httpServerHelper;
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private notifierController;
|
private notifierController;
|
||||||
|
@ -5,7 +5,8 @@ import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRout
|
|||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { WeaponBuild } from "../models/eft/profile/IAkiProfile";
|
import { WeaponBuild } from "../models/eft/profile/IAkiProfile";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class PresetBuildCallbacks {
|
export declare class PresetBuildCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private presetBuildController;
|
private presetBuildController;
|
||||||
constructor(httpResponse: HttpResponseUtil, presetBuildController: PresetBuildController);
|
constructor(httpResponse: HttpResponseUtil, presetBuildController: PresetBuildController);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { PresetController } from "../controllers/PresetController";
|
import { PresetController } from "../controllers/PresetController";
|
||||||
import { OnLoad } from "../di/OnLoad";
|
import { OnLoad } from "../di/OnLoad";
|
||||||
export declare class PresetCallbacks extends OnLoad {
|
export declare class PresetCallbacks extends OnLoad
|
||||||
|
{
|
||||||
private presetController;
|
private presetController;
|
||||||
constructor(presetController: PresetController);
|
constructor(presetController: PresetController);
|
||||||
onLoad(): void;
|
onLoad(): void;
|
||||||
|
@ -11,7 +11,8 @@ import { IValidateNicknameRequestData } from "../models/eft/profile/IValidateNic
|
|||||||
import { ISearchFriendRequestData } from "../models/eft/profile/ISearchFriendRequestData";
|
import { ISearchFriendRequestData } from "../models/eft/profile/ISearchFriendRequestData";
|
||||||
import { ISearchFriendResponse } from "../models/eft/profile/ISearchFriendResponse";
|
import { ISearchFriendResponse } from "../models/eft/profile/ISearchFriendResponse";
|
||||||
import { IGetMiniProfileRequestData } from "../models/eft/launcher/IGetMiniProfileRequestData";
|
import { IGetMiniProfileRequestData } from "../models/eft/launcher/IGetMiniProfileRequestData";
|
||||||
export declare class ProfileCallbacks {
|
export declare class ProfileCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
private profileController;
|
private profileController;
|
||||||
|
@ -12,7 +12,8 @@ import { IQuest } from "../models/eft/common/tables/IQuest";
|
|||||||
import { IPmcDataRepeatableQuest } from "../models/eft/common/tables/IRepeatableQuests";
|
import { IPmcDataRepeatableQuest } from "../models/eft/common/tables/IRepeatableQuests";
|
||||||
import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest";
|
import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class QuestCallbacks {
|
export declare class QuestCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private questController;
|
private questController;
|
||||||
private repeatableQuestController;
|
private repeatableQuestController;
|
||||||
|
@ -15,7 +15,8 @@ import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
|||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class RagfairCallbacks extends OnLoadOnUpdate {
|
export declare class RagfairCallbacks extends OnLoadOnUpdate
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private logger;
|
private logger;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
|
@ -3,7 +3,8 @@ import { IPmcData } from "../models/eft/common/IPmcData";
|
|||||||
import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest";
|
import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest";
|
||||||
import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest";
|
import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
export declare class RepairCallbacks {
|
export declare class RepairCallbacks
|
||||||
|
{
|
||||||
private repairController;
|
private repairController;
|
||||||
constructor(repairController: RepairController);
|
constructor(repairController: RepairController);
|
||||||
traderRepair(pmcData: IPmcData, body: ITraderRepairActionDataRequest, sessionID: string): IItemEventRouterResponse;
|
traderRepair(pmcData: IPmcData, body: ITraderRepairActionDataRequest, sessionID: string): IItemEventRouterResponse;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
||||||
export declare class SaveCallbacks extends OnLoadOnUpdate {
|
export declare class SaveCallbacks extends OnLoadOnUpdate
|
||||||
|
{
|
||||||
private saveServer;
|
private saveServer;
|
||||||
constructor(saveServer: SaveServer);
|
constructor(saveServer: SaveServer);
|
||||||
onLoad(): void;
|
onLoad(): void;
|
||||||
|
@ -3,7 +3,8 @@ import { IPmcData } from "../models/eft/common/IPmcData";
|
|||||||
import { IProcessRagfairTradeRequestData } from "../models/eft/trade/IProcessRagfairTradeRequestData";
|
import { IProcessRagfairTradeRequestData } from "../models/eft/trade/IProcessRagfairTradeRequestData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { IProcessBaseTradeRequestData } from "../models/eft/trade/IProcessBaseTradeRequestData";
|
import { IProcessBaseTradeRequestData } from "../models/eft/trade/IProcessBaseTradeRequestData";
|
||||||
export declare class TradeCallbacks {
|
export declare class TradeCallbacks
|
||||||
|
{
|
||||||
private tradeController;
|
private tradeController;
|
||||||
constructor(tradeController: TradeController);
|
constructor(tradeController: TradeController);
|
||||||
processTrade(pmcData: IPmcData, body: IProcessBaseTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
processTrade(pmcData: IPmcData, body: IProcessBaseTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
@ -4,7 +4,8 @@ import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
|||||||
import { IBarterScheme, ITraderAssort, ITraderBase } from "../models/eft/common/tables/ITrader";
|
import { IBarterScheme, ITraderAssort, ITraderBase } from "../models/eft/common/tables/ITrader";
|
||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
||||||
export declare class TraderCallbacks extends OnLoadOnUpdate {
|
export declare class TraderCallbacks extends OnLoadOnUpdate
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private traderController;
|
private traderController;
|
||||||
constructor(httpResponse: HttpResponseUtil, traderController: TraderController);
|
constructor(httpResponse: HttpResponseUtil, traderController: TraderController);
|
||||||
|
@ -2,7 +2,8 @@ import { WeatherController } from "../controllers/WeatherController";
|
|||||||
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class WeatherCallbacks {
|
export declare class WeatherCallbacks
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private weatherController;
|
private weatherController;
|
||||||
constructor(httpResponse: HttpResponseUtil, weatherController: WeatherController);
|
constructor(httpResponse: HttpResponseUtil, weatherController: WeatherController);
|
||||||
|
@ -2,7 +2,8 @@ import { WishlistController } from "../controllers/WishlistController";
|
|||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
import { IWishlistActionData } from "../models/eft/wishlist/IWishlistActionData";
|
import { IWishlistActionData } from "../models/eft/wishlist/IWishlistActionData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
export declare class WishlistCallbacks {
|
export declare class WishlistCallbacks
|
||||||
|
{
|
||||||
private wishlistController;
|
private wishlistController;
|
||||||
constructor(wishlistController: WishlistController);
|
constructor(wishlistController: WishlistController);
|
||||||
addToWishlist(pmcData: IPmcData, body: IWishlistActionData, sessionID: string): IItemEventRouterResponse;
|
addToWishlist(pmcData: IPmcData, body: IWishlistActionData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
@ -6,7 +6,8 @@ import { IBotCore } from "../models/eft/common/tables/IBotCore";
|
|||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { BotHelper } from "../helpers/BotHelper";
|
import { BotHelper } from "../helpers/BotHelper";
|
||||||
import { BotGenerator } from "../generators/BotGenerator";
|
import { BotGenerator } from "../generators/BotGenerator";
|
||||||
export declare class BotController {
|
export declare class BotController
|
||||||
|
{
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
private botGenerator;
|
private botGenerator;
|
||||||
private botHelper;
|
private botHelper;
|
||||||
|
@ -8,7 +8,8 @@ import { ISuit } from "../models/eft/common/tables/ITrader";
|
|||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class CustomizationController {
|
export declare class CustomizationController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private itemEventRouter;
|
private itemEventRouter;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
|
@ -6,7 +6,8 @@ import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListD
|
|||||||
import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData";
|
import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData";
|
||||||
import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse";
|
import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
export declare class DialogueController {
|
export declare class DialogueController
|
||||||
|
{
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
private saveServer;
|
private saveServer;
|
||||||
private dialogueHelper;
|
private dialogueHelper;
|
||||||
|
@ -5,7 +5,8 @@ import { ConfigServer } from "../servers/ConfigServer";
|
|||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
import { IWatermark } from "../models/spt/utils/IWatermark";
|
import { IWatermark } from "../models/spt/utils/IWatermark";
|
||||||
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
||||||
export declare class GameController {
|
export declare class GameController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private watermark;
|
private watermark;
|
||||||
private httpServerHelper;
|
private httpServerHelper;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
import { HandbookHelper } from "../helpers/HandbookHelper";
|
import { HandbookHelper } from "../helpers/HandbookHelper";
|
||||||
export declare class HandbookController {
|
export declare class HandbookController
|
||||||
|
{
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
private handbookHelper;
|
private handbookHelper;
|
||||||
constructor(databaseServer: DatabaseServer, handbookHelper: HandbookHelper);
|
constructor(databaseServer: DatabaseServer, handbookHelper: HandbookHelper);
|
||||||
|
@ -10,7 +10,8 @@ import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestD
|
|||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class HealthController {
|
export declare class HealthController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private itemEventRouter;
|
private itemEventRouter;
|
||||||
private itemHelper;
|
private itemHelper;
|
||||||
|
@ -24,7 +24,8 @@ import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRout
|
|||||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class HideoutController {
|
export declare class HideoutController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
|
@ -11,7 +11,8 @@ import { QuestHelper } from "../helpers/QuestHelper";
|
|||||||
import { InRaidHelper } from "../helpers/InRaidHelper";
|
import { InRaidHelper } from "../helpers/InRaidHelper";
|
||||||
import { InsuranceService } from "../services/InsuranceService";
|
import { InsuranceService } from "../services/InsuranceService";
|
||||||
import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper";
|
import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper";
|
||||||
export declare class InraidController {
|
export declare class InraidController
|
||||||
|
{
|
||||||
private saveServer;
|
private saveServer;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
|
@ -14,7 +14,8 @@ import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData";
|
|||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { InsuranceService } from "../services/InsuranceService";
|
import { InsuranceService } from "../services/InsuranceService";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class InsuranceController {
|
export declare class InsuranceController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private randomUtil;
|
private randomUtil;
|
||||||
private itemEventRouter;
|
private itemEventRouter;
|
||||||
|
@ -25,7 +25,8 @@ import { IInventoryCreateMarkerRequestData } from "../models/eft/inventory/IInve
|
|||||||
import { IInventoryDeleteMarkerRequestData } from "../models/eft/inventory/IInventoryDeleteMarkerRequestData";
|
import { IInventoryDeleteMarkerRequestData } from "../models/eft/inventory/IInventoryDeleteMarkerRequestData";
|
||||||
import { IInventoryEditMarkerRequestData } from "../models/eft/inventory/IInventoryEditMarkerRequestData";
|
import { IInventoryEditMarkerRequestData } from "../models/eft/inventory/IInventoryEditMarkerRequestData";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class InventoryController {
|
export declare class InventoryController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
|
@ -7,7 +7,8 @@ import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData";
|
|||||||
import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData";
|
import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData";
|
||||||
import { Info } from "../models/eft/profile/IAkiProfile";
|
import { Info } from "../models/eft/profile/IAkiProfile";
|
||||||
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
||||||
export declare class LauncherController {
|
export declare class LauncherController
|
||||||
|
{
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private saveServer;
|
private saveServer;
|
||||||
private httpServerHelper;
|
private httpServerHelper;
|
||||||
|
@ -5,7 +5,8 @@ import { ILocationsGenerateAllResponse } from "../models/eft/common/ILocationsSo
|
|||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
import { TimeUtil } from "../utils/TimeUtil";
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class LocationController {
|
export declare class LocationController
|
||||||
|
{
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private logger;
|
private logger;
|
||||||
private locationGenerator;
|
private locationGenerator;
|
||||||
|
@ -6,7 +6,8 @@ import { IPmcData } from "../models/eft/common/IPmcData";
|
|||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { SaveServer } from "../servers/SaveServer";
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
import { MatchLocationService } from "../services/MatchLocationService";
|
import { MatchLocationService } from "../services/MatchLocationService";
|
||||||
export declare class MatchController {
|
export declare class MatchController
|
||||||
|
{
|
||||||
private saveServer;
|
private saveServer;
|
||||||
private profileHelper;
|
private profileHelper;
|
||||||
private matchLocationService;
|
private matchLocationService;
|
||||||
|
@ -2,7 +2,8 @@ import { IPmcData } from "../models/eft/common/IPmcData";
|
|||||||
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
declare class NoteController {
|
declare class NoteController
|
||||||
|
{
|
||||||
private itemEventRouter;
|
private itemEventRouter;
|
||||||
constructor(itemEventRouter: ItemEventRouter);
|
constructor(itemEventRouter: ItemEventRouter);
|
||||||
addNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
addNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
@ -2,7 +2,8 @@ import { NotifierHelper } from "../helpers/NotifierHelper";
|
|||||||
import { NotificationService } from "../services/NotificationService";
|
import { NotificationService } from "../services/NotificationService";
|
||||||
import { INotifierChannel } from "../models/eft/notifier/INotifier";
|
import { INotifierChannel } from "../models/eft/notifier/INotifier";
|
||||||
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
||||||
export declare class NotifierController {
|
export declare class NotifierController
|
||||||
|
{
|
||||||
private notifierHelper;
|
private notifierHelper;
|
||||||
private httpServerHelper;
|
private httpServerHelper;
|
||||||
private notificationService;
|
private notificationService;
|
||||||
|
@ -6,7 +6,8 @@ import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRout
|
|||||||
import { WeaponBuild } from "../models/eft/profile/IAkiProfile";
|
import { WeaponBuild } from "../models/eft/profile/IAkiProfile";
|
||||||
import { HashUtil } from "../utils/HashUtil";
|
import { HashUtil } from "../utils/HashUtil";
|
||||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
export declare class PresetBuildController {
|
export declare class PresetBuildController
|
||||||
|
{
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private itemEventRouter;
|
private itemEventRouter;
|
||||||
private itemHelper;
|
private itemHelper;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { PresetHelper } from "../helpers/PresetHelper";
|
import { PresetHelper } from "../helpers/PresetHelper";
|
||||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
export declare class PresetController {
|
export declare class PresetController
|
||||||
|
{
|
||||||
private presetHelper;
|
private presetHelper;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
constructor(presetHelper: PresetHelper, databaseServer: DatabaseServer);
|
constructor(presetHelper: PresetHelper, databaseServer: DatabaseServer);
|
||||||
|
@ -13,7 +13,8 @@ import { HashUtil } from "../utils/HashUtil";
|
|||||||
import { TimeUtil } from "../utils/TimeUtil";
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
import { IMiniProfile } from "../models/eft/launcher/IMiniProfile";
|
import { IMiniProfile } from "../models/eft/launcher/IMiniProfile";
|
||||||
import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper";
|
import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper";
|
||||||
export declare class ProfileController {
|
export declare class ProfileController
|
||||||
|
{
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
private saveServer;
|
private saveServer;
|
||||||
|
@ -15,7 +15,8 @@ import { ICompleteQuestRequestData } from "../models/eft/quests/ICompleteQuestRe
|
|||||||
import { IHandoverQuestRequestData } from "../models/eft/quests/IHandoverQuestRequestData";
|
import { IHandoverQuestRequestData } from "../models/eft/quests/IHandoverQuestRequestData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class QuestController {
|
export declare class QuestController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
private itemEventRouter;
|
private itemEventRouter;
|
||||||
|
@ -32,7 +32,8 @@ import { RagfairTaxHelper } from "../helpers/RagfairTaxHelper";
|
|||||||
import { RagfairOfferHelper } from "../helpers/RagfairOfferHelper";
|
import { RagfairOfferHelper } from "../helpers/RagfairOfferHelper";
|
||||||
import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService";
|
import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class RagfairController {
|
export declare class RagfairController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
private httpResponse;
|
private httpResponse;
|
||||||
|
@ -10,7 +10,8 @@ import { ConfigServer } from "../servers/ConfigServer";
|
|||||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
import { RepairHelper } from "../helpers/RepairHelper";
|
import { RepairHelper } from "../helpers/RepairHelper";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class RepairController {
|
export declare class RepairController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private itemEventRouter;
|
private itemEventRouter;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
|
@ -19,21 +19,26 @@ import { ConfigServer } from "../servers/ConfigServer";
|
|||||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
import { RagfairServerHelper } from "../helpers/RagfairServerHelper";
|
import { RagfairServerHelper } from "../helpers/RagfairServerHelper";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export interface IQuestTypePool {
|
export interface IQuestTypePool
|
||||||
|
{
|
||||||
types: string[];
|
types: string[];
|
||||||
pool: IQuestPool;
|
pool: IQuestPool;
|
||||||
}
|
}
|
||||||
export interface IQuestPool {
|
export interface IQuestPool
|
||||||
|
{
|
||||||
Exploration: IExplorationPool;
|
Exploration: IExplorationPool;
|
||||||
Elimination: IEliminationPool;
|
Elimination: IEliminationPool;
|
||||||
}
|
}
|
||||||
export interface IExplorationPool {
|
export interface IExplorationPool
|
||||||
|
{
|
||||||
locations: Partial<Record<ELocationName, string[]>>;
|
locations: Partial<Record<ELocationName, string[]>>;
|
||||||
}
|
}
|
||||||
export interface IEliminationPool {
|
export interface IEliminationPool
|
||||||
|
{
|
||||||
targets: IEliminationTargetPool;
|
targets: IEliminationTargetPool;
|
||||||
}
|
}
|
||||||
export interface IEliminationTargetPool {
|
export interface IEliminationTargetPool
|
||||||
|
{
|
||||||
Savage?: ITargetLocation;
|
Savage?: ITargetLocation;
|
||||||
AnyPmc?: ITargetLocation;
|
AnyPmc?: ITargetLocation;
|
||||||
bossBully?: ITargetLocation;
|
bossBully?: ITargetLocation;
|
||||||
@ -43,10 +48,12 @@ export interface IEliminationTargetPool {
|
|||||||
bossTagilla?: ITargetLocation;
|
bossTagilla?: ITargetLocation;
|
||||||
bossKojaniy?: ITargetLocation;
|
bossKojaniy?: ITargetLocation;
|
||||||
}
|
}
|
||||||
export interface ITargetLocation {
|
export interface ITargetLocation
|
||||||
|
{
|
||||||
locations: string[];
|
locations: string[];
|
||||||
}
|
}
|
||||||
export declare class RepeatableQuestController {
|
export declare class RepeatableQuestController
|
||||||
|
{
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
private logger;
|
private logger;
|
||||||
private randomUtil;
|
private randomUtil;
|
||||||
|
@ -8,7 +8,8 @@ import { Upd } from "../models/eft/common/tables/IItem";
|
|||||||
import { IProcessBaseTradeRequestData } from "../models/eft/trade/IProcessBaseTradeRequestData";
|
import { IProcessBaseTradeRequestData } from "../models/eft/trade/IProcessBaseTradeRequestData";
|
||||||
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
declare class TradeController {
|
declare class TradeController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private itemEventRouter;
|
private itemEventRouter;
|
||||||
private tradeHelper;
|
private tradeHelper;
|
||||||
|
@ -8,7 +8,8 @@ import { ProfileHelper } from "../helpers/ProfileHelper";
|
|||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
import { TraderAssortHelper } from "../helpers/TraderAssortHelper";
|
import { TraderAssortHelper } from "../helpers/TraderAssortHelper";
|
||||||
export declare class TraderController {
|
export declare class TraderController
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
private traderAssortHelper;
|
private traderAssortHelper;
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
import { WeatherGenerator } from "../generators/WeatherGenerator";
|
import { WeatherGenerator } from "../generators/WeatherGenerator";
|
||||||
import { IWeatherData } from "../models/eft/weather/IWeatherData";
|
import { IWeatherData } from "../models/eft/weather/IWeatherData";
|
||||||
export declare class WeatherController {
|
export declare class WeatherController
|
||||||
|
{
|
||||||
private weatherGenerator;
|
private weatherGenerator;
|
||||||
private configServer;
|
private configServer;
|
||||||
private weatherConfig;
|
private weatherConfig;
|
||||||
|
@ -2,7 +2,8 @@ import { ItemEventRouter } from "../routers/ItemEventRouter";
|
|||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
import { IWishlistActionData } from "../models/eft/wishlist/IWishlistActionData";
|
import { IWishlistActionData } from "../models/eft/wishlist/IWishlistActionData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
export declare class WishlistController {
|
export declare class WishlistController
|
||||||
|
{
|
||||||
private itemEvenRouter;
|
private itemEvenRouter;
|
||||||
constructor(itemEvenRouter: ItemEventRouter);
|
constructor(itemEvenRouter: ItemEventRouter);
|
||||||
addToWishList(pmcData: IPmcData, body: IWishlistActionData, sessionID: string): IItemEventRouterResponse;
|
addToWishList(pmcData: IPmcData, body: IWishlistActionData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { DependencyContainer } from "tsyringe";
|
import { DependencyContainer } from "tsyringe";
|
||||||
export declare class Container {
|
export declare class Container
|
||||||
|
{
|
||||||
static registerTypes(depContainer: DependencyContainer): void;
|
static registerTypes(depContainer: DependencyContainer): void;
|
||||||
private static registerUtils;
|
private static registerUtils;
|
||||||
private static registerRouters;
|
private static registerRouters;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
export declare class OnLoad {
|
export declare class OnLoad
|
||||||
|
{
|
||||||
onLoad(): void;
|
onLoad(): void;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { OnLoad } from "./OnLoad";
|
import { OnLoad } from "./OnLoad";
|
||||||
import { OnUpdate } from "./OnUpdate";
|
import { OnUpdate } from "./OnUpdate";
|
||||||
export declare class OnLoadOnUpdate implements OnLoad, OnUpdate {
|
export declare class OnLoadOnUpdate implements OnLoad, OnUpdate
|
||||||
|
{
|
||||||
onUpdate(timeSinceLastRun: number): boolean;
|
onUpdate(timeSinceLastRun: number): boolean;
|
||||||
onLoad(): void;
|
onLoad(): void;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
export declare class OnUpdate {
|
export declare class OnUpdate
|
||||||
|
{
|
||||||
onUpdate(timeSinceLastRun: number): boolean;
|
onUpdate(timeSinceLastRun: number): boolean;
|
||||||
getRoute(): string;
|
getRoute(): string;
|
||||||
}
|
}
|
||||||
|
18
TypeScript/5ReplaceMethod/types/di/Router.d.ts
vendored
18
TypeScript/5ReplaceMethod/types/di/Router.d.ts
vendored
@ -1,30 +1,36 @@
|
|||||||
import { IPmcData } from "../models/eft/common/IPmcData";
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
import { IAkiProfile } from "../models/eft/profile/IAkiProfile";
|
import { IAkiProfile } from "../models/eft/profile/IAkiProfile";
|
||||||
export declare class Router {
|
export declare class Router
|
||||||
|
{
|
||||||
private handledRoutes;
|
private handledRoutes;
|
||||||
constructor();
|
constructor();
|
||||||
getTopLevelRoute(): string;
|
getTopLevelRoute(): string;
|
||||||
protected getHandledRoutes(): HandledRoute[];
|
protected getHandledRoutes(): HandledRoute[];
|
||||||
canHandle(url: string, partialMatch?: boolean): boolean;
|
canHandle(url: string, partialMatch?: boolean): boolean;
|
||||||
}
|
}
|
||||||
export declare class StaticRouter extends Router {
|
export declare class StaticRouter extends Router
|
||||||
|
{
|
||||||
constructor();
|
constructor();
|
||||||
handleStatic(url: string, info: any, sessionID: string, output: string): any;
|
handleStatic(url: string, info: any, sessionID: string, output: string): any;
|
||||||
}
|
}
|
||||||
export declare class DynamicRouter extends Router {
|
export declare class DynamicRouter extends Router
|
||||||
|
{
|
||||||
constructor();
|
constructor();
|
||||||
handleDynamic(url: string, info: any, sessionID: string, output: string): any;
|
handleDynamic(url: string, info: any, sessionID: string, output: string): any;
|
||||||
}
|
}
|
||||||
export declare class ItemEventRouterDefinition extends Router {
|
export declare class ItemEventRouterDefinition extends Router
|
||||||
|
{
|
||||||
constructor();
|
constructor();
|
||||||
handleItemEvent(url: string, pmcData: IPmcData, body: any, sessionID: string): IItemEventRouterResponse;
|
handleItemEvent(url: string, pmcData: IPmcData, body: any, sessionID: string): IItemEventRouterResponse;
|
||||||
}
|
}
|
||||||
export declare class SaveLoadRouter extends Router {
|
export declare class SaveLoadRouter extends Router
|
||||||
|
{
|
||||||
constructor();
|
constructor();
|
||||||
handleLoad(profile: IAkiProfile): IAkiProfile;
|
handleLoad(profile: IAkiProfile): IAkiProfile;
|
||||||
}
|
}
|
||||||
export declare class HandledRoute {
|
export declare class HandledRoute
|
||||||
|
{
|
||||||
route: string;
|
route: string;
|
||||||
dynamic: boolean;
|
dynamic: boolean;
|
||||||
constructor(route: string, dynamic: boolean);
|
constructor(route: string, dynamic: boolean);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||||
export declare class Serializer {
|
export declare class Serializer
|
||||||
|
{
|
||||||
serialize(sessionID: string, req: any, resp: any, body: any, httpServer: IHttpServer): void;
|
serialize(sessionID: string, req: any, resp: any, body: any, httpServer: IHttpServer): void;
|
||||||
canHandle(something: string): boolean;
|
canHandle(something: string): boolean;
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,8 @@ import { ConfigServer } from "../servers/ConfigServer";
|
|||||||
import { GameEventHelper } from "../helpers/GameEventHelper";
|
import { GameEventHelper } from "../helpers/GameEventHelper";
|
||||||
import { BotInventoryGenerator } from "./BotInventoryGenerator";
|
import { BotInventoryGenerator } from "./BotInventoryGenerator";
|
||||||
import { BotHelper } from "../helpers/BotHelper";
|
import { BotHelper } from "../helpers/BotHelper";
|
||||||
export declare class BotGenerator {
|
export declare class BotGenerator
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private randomUtil;
|
private randomUtil;
|
||||||
|
@ -8,7 +8,8 @@ import { BotLootGenerator } from "./BotLootGenerator";
|
|||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
import { WeightedRandomHelper } from "../helpers/WeightedRandomHelper";
|
import { WeightedRandomHelper } from "../helpers/WeightedRandomHelper";
|
||||||
export declare class BotInventoryGenerator {
|
export declare class BotInventoryGenerator
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private randomUtil;
|
private randomUtil;
|
||||||
|
@ -8,7 +8,8 @@ import { HashUtil } from "../utils/HashUtil";
|
|||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
import { RandomUtil } from "../utils/RandomUtil";
|
import { RandomUtil } from "../utils/RandomUtil";
|
||||||
import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper";
|
import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper";
|
||||||
export declare class BotLootGenerator {
|
export declare class BotLootGenerator
|
||||||
|
{
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private randomUtil;
|
private randomUtil;
|
||||||
|
@ -7,7 +7,8 @@ import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper";
|
|||||||
import { HashUtil } from "../utils/HashUtil";
|
import { HashUtil } from "../utils/HashUtil";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
import { RandomUtil } from "../utils/RandomUtil";
|
import { RandomUtil } from "../utils/RandomUtil";
|
||||||
export declare class BotWeaponGenerator {
|
export declare class BotWeaponGenerator
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
|
@ -12,12 +12,14 @@ import { MathUtil } from "../utils/MathUtil";
|
|||||||
import { ObjectId } from "../utils/ObjectId";
|
import { ObjectId } from "../utils/ObjectId";
|
||||||
import { RagfairServerHelper } from "../helpers/RagfairServerHelper";
|
import { RagfairServerHelper } from "../helpers/RagfairServerHelper";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export interface IContainerItem {
|
export interface IContainerItem
|
||||||
|
{
|
||||||
items: Item[];
|
items: Item[];
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
}
|
}
|
||||||
export declare class LocationGenerator {
|
export declare class LocationGenerator
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private objectId;
|
private objectId;
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { ItemHelper } from "../helpers/ItemHelper";
|
import { ItemHelper } from "../helpers/ItemHelper";
|
||||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
export declare class PMCLootGenerator {
|
export declare class PMCLootGenerator
|
||||||
|
{
|
||||||
private itemHelper;
|
private itemHelper;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
private configServer;
|
private configServer;
|
||||||
|
@ -3,7 +3,8 @@ import { DatabaseServer } from "../servers/DatabaseServer";
|
|||||||
import { ItemHelper } from "../helpers/ItemHelper";
|
import { ItemHelper } from "../helpers/ItemHelper";
|
||||||
import { HashUtil } from "../utils/HashUtil";
|
import { HashUtil } from "../utils/HashUtil";
|
||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
export declare class RagfairAssortGenerator {
|
export declare class RagfairAssortGenerator
|
||||||
|
{
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private itemHelper;
|
private itemHelper;
|
||||||
|
@ -16,7 +16,8 @@ import { RagfairOfferService } from "../services/RagfairOfferService";
|
|||||||
import { RagfairPriceService } from "../services/RagfairPriceService";
|
import { RagfairPriceService } from "../services/RagfairPriceService";
|
||||||
import { FenceService } from "../services/FenceService";
|
import { FenceService } from "../services/FenceService";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class RagfairOfferGenerator {
|
export declare class RagfairOfferGenerator
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
|
@ -3,7 +3,8 @@ import { ConfigServer } from "../servers/ConfigServer";
|
|||||||
import { IWeatherData } from "../models/eft/weather/IWeatherData";
|
import { IWeatherData } from "../models/eft/weather/IWeatherData";
|
||||||
import { RandomUtil } from "../utils/RandomUtil";
|
import { RandomUtil } from "../utils/RandomUtil";
|
||||||
import { TimeUtil } from "../utils/TimeUtil";
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
export declare class WeatherGenerator {
|
export declare class WeatherGenerator
|
||||||
|
{
|
||||||
private weightedRandomHelper;
|
private weightedRandomHelper;
|
||||||
private randomUtil;
|
private randomUtil;
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
|
@ -4,7 +4,8 @@ import { ILogger } from "../models/spt/utils/ILogger";
|
|||||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
import { ItemHelper } from "./ItemHelper";
|
import { ItemHelper } from "./ItemHelper";
|
||||||
import { QuestHelper } from "./QuestHelper";
|
import { QuestHelper } from "./QuestHelper";
|
||||||
export declare class AssortHelper {
|
export declare class AssortHelper
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private itemHelper;
|
private itemHelper;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
|
@ -12,7 +12,8 @@ import { InventoryHelper } from "./InventoryHelper";
|
|||||||
import { ContainerHelper } from "./ContainerHelper";
|
import { ContainerHelper } from "./ContainerHelper";
|
||||||
import { ItemHelper } from "./ItemHelper";
|
import { ItemHelper } from "./ItemHelper";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
declare class BotGeneratorHelper {
|
declare class BotGeneratorHelper
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
@ -48,7 +49,8 @@ declare class BotGeneratorHelper {
|
|||||||
addItemWithChildrenToEquipmentSlot(equipmentSlots: string[], parentId: string, parentTpl: string, itemWithChildren: Item[], inventory: PmcInventory): boolean;
|
addItemWithChildrenToEquipmentSlot(equipmentSlots: string[], parentId: string, parentTpl: string, itemWithChildren: Item[], inventory: PmcInventory): boolean;
|
||||||
private itemAllowedInContainer;
|
private itemAllowedInContainer;
|
||||||
}
|
}
|
||||||
export declare class ExhaustableArray<T> {
|
export declare class ExhaustableArray<T>
|
||||||
|
{
|
||||||
private itemPool;
|
private itemPool;
|
||||||
private randomUtil;
|
private randomUtil;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
@ -58,8 +60,10 @@ export declare class ExhaustableArray<T> {
|
|||||||
getFirstValue(): T;
|
getFirstValue(): T;
|
||||||
hasValues(): boolean;
|
hasValues(): boolean;
|
||||||
}
|
}
|
||||||
declare namespace BotGeneratorHelper {
|
declare namespace BotGeneratorHelper
|
||||||
enum EquipmentSlots {
|
{
|
||||||
|
enum EquipmentSlots
|
||||||
|
{
|
||||||
HEADWEAR = "Headwear",
|
HEADWEAR = "Headwear",
|
||||||
EARPIECE = "Earpiece",
|
EARPIECE = "Earpiece",
|
||||||
FACE_COVER = "FaceCover",
|
FACE_COVER = "FaceCover",
|
||||||
|
@ -4,7 +4,8 @@ import { ConfigServer } from "../servers/ConfigServer";
|
|||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
import { RandomUtil } from "../utils/RandomUtil";
|
import { RandomUtil } from "../utils/RandomUtil";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class BotHelper {
|
export declare class BotHelper
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
export declare class FindSlotResult {
|
export declare class FindSlotResult
|
||||||
|
{
|
||||||
success: boolean;
|
success: boolean;
|
||||||
x: any;
|
x: any;
|
||||||
y: any;
|
y: any;
|
||||||
rotation: boolean;
|
rotation: boolean;
|
||||||
constructor(success?: boolean, x?: any, y?: any, rotation?: boolean);
|
constructor(success?: boolean, x?: any, y?: any, rotation?: boolean);
|
||||||
}
|
}
|
||||||
export declare class ContainerHelper {
|
export declare class ContainerHelper
|
||||||
|
{
|
||||||
private locateSlot;
|
private locateSlot;
|
||||||
findSlotForItem(container2D: number[][], itemWidth: number, itemHeight: number): FindSlotResult;
|
findSlotForItem(container2D: number[][], itemWidth: number, itemHeight: number): FindSlotResult;
|
||||||
fillContainerMapWithItem(container2D: number[][], x: number, y: number, itemW: number, itemH: number, rotate: boolean): any;
|
fillContainerMapWithItem(container2D: number[][], x: number, y: number, itemW: number, itemH: number, rotate: boolean): any;
|
||||||
|
@ -5,7 +5,8 @@ import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models
|
|||||||
import { HashUtil } from "../utils/HashUtil";
|
import { HashUtil } from "../utils/HashUtil";
|
||||||
import { NotifierHelper } from "./NotifierHelper";
|
import { NotifierHelper } from "./NotifierHelper";
|
||||||
import { NotificationSendHelper } from "./NotificationSendHelper";
|
import { NotificationSendHelper } from "./NotificationSendHelper";
|
||||||
export declare class DialogueHelper {
|
export declare class DialogueHelper
|
||||||
|
{
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private saveServer;
|
private saveServer;
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
|
@ -2,7 +2,8 @@ import { ConfigServer } from "../servers/ConfigServer";
|
|||||||
import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem";
|
||||||
import { RandomUtil } from "../utils/RandomUtil";
|
import { RandomUtil } from "../utils/RandomUtil";
|
||||||
import { BotHelper } from "./BotHelper";
|
import { BotHelper } from "./BotHelper";
|
||||||
export declare class DurabilityLimitsHelper {
|
export declare class DurabilityLimitsHelper
|
||||||
|
{
|
||||||
private randomUtil;
|
private randomUtil;
|
||||||
private botHelper;
|
private botHelper;
|
||||||
private configServer;
|
private configServer;
|
||||||
|
@ -8,7 +8,8 @@ import { ItemHelper } from "./ItemHelper";
|
|||||||
import { IWatermark } from "../models/spt/utils/IWatermark";
|
import { IWatermark } from "../models/spt/utils/IWatermark";
|
||||||
import { BotGenerator } from "../generators/BotGenerator";
|
import { BotGenerator } from "../generators/BotGenerator";
|
||||||
import { ProfileHelper } from "./ProfileHelper";
|
import { ProfileHelper } from "./ProfileHelper";
|
||||||
export declare class ExtendedProfileHelper extends ProfileHelper {
|
export declare class ExtendedProfileHelper extends ProfileHelper
|
||||||
|
{
|
||||||
private botGenerator;
|
private botGenerator;
|
||||||
constructor(jsonUtil: JsonUtil, watermark: IWatermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, fenceService: FenceService, botGenerator: BotGenerator);
|
constructor(jsonUtil: JsonUtil, watermark: IWatermark, timeUtil: TimeUtil, saveServer: SaveServer, databaseServer: DatabaseServer, itemHelper: ItemHelper, fenceService: FenceService, botGenerator: BotGenerator);
|
||||||
generatePlayerScav(sessionID: string): IPmcData;
|
generatePlayerScav(sessionID: string): IPmcData;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
export declare class GameEventHelper {
|
export declare class GameEventHelper
|
||||||
|
{
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
constructor(databaseServer: DatabaseServer);
|
constructor(databaseServer: DatabaseServer);
|
||||||
get EVENT(): Record<string, string>;
|
get EVENT(): Record<string, string>;
|
||||||
|
@ -1,14 +1,17 @@
|
|||||||
declare class LookupItem {
|
declare class LookupItem
|
||||||
|
{
|
||||||
byId: Record<number, string>;
|
byId: Record<number, string>;
|
||||||
byParent: Record<string, string[]>;
|
byParent: Record<string, string[]>;
|
||||||
constructor();
|
constructor();
|
||||||
}
|
}
|
||||||
export declare class LookupCollection {
|
export declare class LookupCollection
|
||||||
|
{
|
||||||
items: LookupItem;
|
items: LookupItem;
|
||||||
categories: LookupItem;
|
categories: LookupItem;
|
||||||
constructor();
|
constructor();
|
||||||
}
|
}
|
||||||
export declare class HandbookHelper {
|
export declare class HandbookHelper
|
||||||
|
{
|
||||||
private lookup;
|
private lookup;
|
||||||
hydrateLookup(lookup: LookupCollection): void;
|
hydrateLookup(lookup: LookupCollection): void;
|
||||||
getTemplatePrice(x: string): number;
|
getTemplatePrice(x: string): number;
|
||||||
|
@ -6,7 +6,8 @@ import { ConfigServer } from "../servers/ConfigServer";
|
|||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
import { TimeUtil } from "../utils/TimeUtil";
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class HealthHelper {
|
export declare class HealthHelper
|
||||||
|
{
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private logger;
|
private logger;
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
|
@ -16,7 +16,8 @@ import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideou
|
|||||||
import { InventoryHelper } from "./InventoryHelper";
|
import { InventoryHelper } from "./InventoryHelper";
|
||||||
import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
export declare class HideoutHelper {
|
export declare class HideoutHelper
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private timeUtil;
|
private timeUtil;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { ConfigServer } from "../servers/ConfigServer";
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
export declare class HttpServerHelper {
|
export declare class HttpServerHelper
|
||||||
|
{
|
||||||
private configServer;
|
private configServer;
|
||||||
private httpConfig;
|
private httpConfig;
|
||||||
private mime;
|
private mime;
|
||||||
|
@ -7,7 +7,8 @@ import { SaveServer } from "../servers/SaveServer";
|
|||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
import { InventoryHelper } from "./InventoryHelper";
|
import { InventoryHelper } from "./InventoryHelper";
|
||||||
import { PaymentHelper } from "./PaymentHelper";
|
import { PaymentHelper } from "./PaymentHelper";
|
||||||
export declare class InRaidHelper {
|
export declare class InRaidHelper
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private saveServer;
|
private saveServer;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
|
@ -17,13 +17,15 @@ import { IInventorySplitRequestData } from "../models/eft/inventory/IInventorySp
|
|||||||
import { IInventoryMergeRequestData } from "../models/eft/inventory/IInventoryMergeRequestData";
|
import { IInventoryMergeRequestData } from "../models/eft/inventory/IInventoryMergeRequestData";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
import { TraderAssortHelper } from "./TraderAssortHelper";
|
import { TraderAssortHelper } from "./TraderAssortHelper";
|
||||||
export interface OwnerInventoryItems {
|
export interface OwnerInventoryItems
|
||||||
|
{
|
||||||
from: Item[];
|
from: Item[];
|
||||||
to: Item[];
|
to: Item[];
|
||||||
sameInventory: boolean;
|
sameInventory: boolean;
|
||||||
isMail: boolean;
|
isMail: boolean;
|
||||||
}
|
}
|
||||||
export declare class InventoryHelper {
|
export declare class InventoryHelper
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
|
@ -5,7 +5,8 @@ import { Item } from "../models/eft/common/tables/IItem";
|
|||||||
import { HashUtil } from "../utils/HashUtil";
|
import { HashUtil } from "../utils/HashUtil";
|
||||||
import { JsonUtil } from "../utils/JsonUtil";
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
import { ILogger } from "../models/spt/utils/ILogger";
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
declare class ItemHelper {
|
declare class ItemHelper
|
||||||
|
{
|
||||||
private logger;
|
private logger;
|
||||||
private hashUtil;
|
private hashUtil;
|
||||||
private jsonUtil;
|
private jsonUtil;
|
||||||
@ -138,8 +139,10 @@ declare class ItemHelper {
|
|||||||
isQuestItem(tpl: string): boolean;
|
isQuestItem(tpl: string): boolean;
|
||||||
getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize;
|
getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize;
|
||||||
}
|
}
|
||||||
declare namespace ItemHelper {
|
declare namespace ItemHelper
|
||||||
enum BaseClasses {
|
{
|
||||||
|
enum BaseClasses
|
||||||
|
{
|
||||||
WEAPON = "5422acb9af1c889c16000029",
|
WEAPON = "5422acb9af1c889c16000029",
|
||||||
ARMOR = "5448e54d4bdc2dcc718b4568",
|
ARMOR = "5448e54d4bdc2dcc718b4568",
|
||||||
VEST = "5448e5284bdc2dcb718b4567",
|
VEST = "5448e5284bdc2dcb718b4567",
|
||||||
@ -223,11 +226,13 @@ declare namespace ItemHelper {
|
|||||||
ITEM = "54009119af1c881c07000029",
|
ITEM = "54009119af1c881c07000029",
|
||||||
CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25"
|
CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25"
|
||||||
}
|
}
|
||||||
interface ItemSize {
|
interface ItemSize
|
||||||
|
{
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
}
|
}
|
||||||
enum Money {
|
enum Money
|
||||||
|
{
|
||||||
ROUBLES = "5449016a4bdc2d6f028b456f",
|
ROUBLES = "5449016a4bdc2d6f028b456f",
|
||||||
EUROS = "569668774bdc2da2298b4568",
|
EUROS = "569668774bdc2da2298b4568",
|
||||||
DOLLARS = "5696686a4bdc2da3298b456a"
|
DOLLARS = "5696686a4bdc2da3298b456a"
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { INotification } from "../models/eft/notifier/INotifier";
|
import { INotification } from "../models/eft/notifier/INotifier";
|
||||||
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
import { IHttpServer } from "../models/spt/server/IHttpServer";
|
||||||
import { NotificationService } from "../services/NotificationService";
|
import { NotificationService } from "../services/NotificationService";
|
||||||
export declare class NotificationSendHelper {
|
export declare class NotificationSendHelper
|
||||||
|
{
|
||||||
private httpServer;
|
private httpServer;
|
||||||
private notificationService;
|
private notificationService;
|
||||||
constructor(httpServer: IHttpServer, notificationService: NotificationService);
|
constructor(httpServer: IHttpServer, notificationService: NotificationService);
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { INotification } from "../models/eft/notifier/INotifier";
|
import { INotification } from "../models/eft/notifier/INotifier";
|
||||||
import { Message, MessageContentRagfair } from "../models/eft/profile/IAkiProfile";
|
import { Message, MessageContentRagfair } from "../models/eft/profile/IAkiProfile";
|
||||||
import { HttpServerHelper } from "./HttpServerHelper";
|
import { HttpServerHelper } from "./HttpServerHelper";
|
||||||
export declare class NotifierHelper {
|
export declare class NotifierHelper
|
||||||
|
{
|
||||||
private httpServerHelper;
|
private httpServerHelper;
|
||||||
/**
|
/**
|
||||||
* The default notification sent when waiting times out.
|
* The default notification sent when waiting times out.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
export declare class PaymentHelper {
|
export declare class PaymentHelper
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* Check whether tpl is Money
|
* Check whether tpl is Money
|
||||||
* @param {string} tpl
|
* @param {string} tpl
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { Preset } from "../models/eft/common/IGlobals";
|
import { Preset } from "../models/eft/common/IGlobals";
|
||||||
import { DatabaseServer } from "../servers/DatabaseServer";
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
export declare class PresetHelper {
|
export declare class PresetHelper
|
||||||
|
{
|
||||||
private databaseServer;
|
private databaseServer;
|
||||||
private lookup;
|
private lookup;
|
||||||
constructor(databaseServer: DatabaseServer);
|
constructor(databaseServer: DatabaseServer);
|
||||||
|
@ -8,7 +8,8 @@ import { JsonUtil } from "../utils/JsonUtil";
|
|||||||
import { TimeUtil } from "../utils/TimeUtil";
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
import { ItemHelper } from "./ItemHelper";
|
import { ItemHelper } from "./ItemHelper";
|
||||||
import { IWatermark } from "../models/spt/utils/IWatermark";
|
import { IWatermark } from "../models/spt/utils/IWatermark";
|
||||||
export declare class ProfileHelper {
|
export declare class ProfileHelper
|
||||||
|
{
|
||||||
protected jsonUtil: JsonUtil;
|
protected jsonUtil: JsonUtil;
|
||||||
protected watermark: IWatermark;
|
protected watermark: IWatermark;
|
||||||
protected timeUtil: TimeUtil;
|
protected timeUtil: TimeUtil;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { AvailableForConditions } from "../models/eft/common/tables/IQuest";
|
import { AvailableForConditions } from "../models/eft/common/tables/IQuest";
|
||||||
export declare class QuestConditionHelper {
|
export declare class QuestConditionHelper
|
||||||
|
{
|
||||||
getQuestConditions(q: AvailableForConditions[], furtherFilter?: (a: AvailableForConditions) => AvailableForConditions[]): AvailableForConditions[];
|
getQuestConditions(q: AvailableForConditions[], furtherFilter?: (a: AvailableForConditions) => AvailableForConditions[]): AvailableForConditions[];
|
||||||
getLevelConditions(q: AvailableForConditions[], furtherFilter?: (a: AvailableForConditions) => AvailableForConditions[]): AvailableForConditions[];
|
getLevelConditions(q: AvailableForConditions[], furtherFilter?: (a: AvailableForConditions) => AvailableForConditions[]): AvailableForConditions[];
|
||||||
getLoyaltyConditions(q: AvailableForConditions[], furtherFilter?: (a: AvailableForConditions) => AvailableForConditions[]): AvailableForConditions[];
|
getLoyaltyConditions(q: AvailableForConditions[], furtherFilter?: (a: AvailableForConditions) => AvailableForConditions[]): AvailableForConditions[];
|
||||||
|
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