Compare commits
No commits in common. "master" and "3.5.5" have entirely different histories.
1
.gitignore
vendored
1
.gitignore
vendored
@ -52,4 +52,3 @@ WIP/CWX-BackpackReload/CWX-BackpackReload/obj
|
|||||||
|
|
||||||
WIP/CWX-BUNDLEMAKER/BUNDLEMAKER/bin
|
WIP/CWX-BUNDLEMAKER/BUNDLEMAKER/bin
|
||||||
WIP/CWX-BUNDLEMAKER/BUNDLEMAKER/obj
|
WIP/CWX-BUNDLEMAKER/BUNDLEMAKER/obj
|
||||||
Live/CWX_Mods.sln.DotSettings.user
|
|
||||||
|
@ -10,12 +10,15 @@ namespace CWX_AlarmChanger
|
|||||||
public static GameObject CWX_GameObject;
|
public static GameObject CWX_GameObject;
|
||||||
public static AlarmChangerScript CWX_Component;
|
public static AlarmChangerScript CWX_Component;
|
||||||
|
|
||||||
public void Start()
|
public void Awake()
|
||||||
{
|
{
|
||||||
CWX_GameObject = new GameObject("CWX_GameObject");
|
CWX_GameObject = new GameObject("CWX_GameObject");
|
||||||
CWX_Component = CWX_GameObject.AddComponent<AlarmChangerScript>();
|
|
||||||
DontDestroyOnLoad(CWX_GameObject);
|
DontDestroyOnLoad(CWX_GameObject);
|
||||||
|
CWX_Component = CWX_GameObject.AddComponent<AlarmChangerScript>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Start()
|
||||||
|
{
|
||||||
new AlarmChangerPatch().Enable();
|
new AlarmChangerPatch().Enable();
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -17,9 +17,10 @@ namespace CWX_AlarmChanger
|
|||||||
{
|
{
|
||||||
var gameWorld = Singleton<GameWorld>.Instance;
|
var gameWorld = Singleton<GameWorld>.Instance;
|
||||||
|
|
||||||
if (gameWorld == null || gameWorld.MainPlayer.Location.ToLower() != "rezervbase") return;
|
if (gameWorld != null && gameWorld.MainPlayer.Location.ToLower() == "rezervbase")
|
||||||
|
{
|
||||||
AlarmChanger.CWX_Component.Init();
|
AlarmChanger.CWX_Component.SetSounds();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -2,6 +2,7 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System;
|
using System;
|
||||||
|
using EFT.Interactive;
|
||||||
using UnityEngine.Networking;
|
using UnityEngine.Networking;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -12,10 +13,9 @@ namespace CWX_AlarmChanger
|
|||||||
{
|
{
|
||||||
private List<AudioClip> _clips = new List<AudioClip>();
|
private List<AudioClip> _clips = new List<AudioClip>();
|
||||||
|
|
||||||
public void Init()
|
public void Start()
|
||||||
{
|
{
|
||||||
LoadAudioFilePaths();
|
LoadAudioFilePaths();
|
||||||
SetSounds();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetSounds()
|
public void SetSounds()
|
||||||
@ -32,8 +32,7 @@ namespace CWX_AlarmChanger
|
|||||||
|
|
||||||
private void LoadAudioFilePaths()
|
private void LoadAudioFilePaths()
|
||||||
{
|
{
|
||||||
var AudioFiles = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory + "/BepInEx/plugins/CWX/Sounds/");
|
var AudioFiles = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory + "/BepInEx/plugins/CWX_AlarmChanger/Sounds/");
|
||||||
|
|
||||||
foreach (var File in AudioFiles)
|
foreach (var File in AudioFiles)
|
||||||
{
|
{
|
||||||
LoadAudioClip(File);
|
LoadAudioClip(File);
|
@ -6,31 +6,31 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Aki.Reflection">
|
<Reference Include="Aki.Reflection">
|
||||||
<HintPath>..\Shared\Aki.Reflection.dll</HintPath>
|
<HintPath>..\..\..\Shared\Aki.Reflection.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Assembly-CSharp">
|
<Reference Include="Assembly-CSharp">
|
||||||
<HintPath>..\Shared\Assembly-CSharp.dll</HintPath>
|
<HintPath>..\..\..\Shared\Assembly-CSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="BepInEx">
|
<Reference Include="BepInEx">
|
||||||
<HintPath>..\Shared\BepInEx.dll</HintPath>
|
<HintPath>..\..\..\Shared\BepInEx.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Comfort">
|
<Reference Include="Comfort">
|
||||||
<HintPath>..\Shared\Comfort.dll</HintPath>
|
<HintPath>..\..\..\Shared\Comfort.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine">
|
<Reference Include="UnityEngine">
|
||||||
<HintPath>..\Shared\UnityEngine.dll</HintPath>
|
<HintPath>..\..\..\Shared\UnityEngine.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.AudioModule">
|
<Reference Include="UnityEngine.AudioModule">
|
||||||
<HintPath>..\Shared\UnityEngine.AudioModule.dll</HintPath>
|
<HintPath>..\..\..\Shared\UnityEngine.AudioModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.CoreModule">
|
<Reference Include="UnityEngine.CoreModule">
|
||||||
<HintPath>..\Shared\UnityEngine.CoreModule.dll</HintPath>
|
<HintPath>..\..\..\Shared\UnityEngine.CoreModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.UnityWebRequestAudioModule">
|
<Reference Include="UnityEngine.UnityWebRequestAudioModule">
|
||||||
<HintPath>..\Shared\UnityEngine.UnityWebRequestAudioModule.dll</HintPath>
|
<HintPath>..\..\..\Shared\UnityEngine.UnityWebRequestAudioModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.UnityWebRequestModule">
|
<Reference Include="UnityEngine.UnityWebRequestModule">
|
||||||
<HintPath>..\Shared\UnityEngine.UnityWebRequestModule.dll</HintPath>
|
<HintPath>..\..\..\Shared\UnityEngine.UnityWebRequestModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
@ -1,12 +1,19 @@
|
|||||||
using EFT.Interactive;
|
using BepInEx;
|
||||||
|
using EFT.Interactive;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace CWX_BushWhacker
|
namespace CWX_BushWhacker
|
||||||
{
|
{
|
||||||
public class BushWhackerScript : MonoBehaviour
|
[BepInPlugin("com.cwx.bushwhacker", "cwx-bushwhacker", "1.3.1")]
|
||||||
|
public class BushWhacker : BaseUnityPlugin
|
||||||
{
|
{
|
||||||
public BushWhackerScript()
|
public void Start()
|
||||||
|
{
|
||||||
|
new BushWhackerPatch().Enable();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DisableBushes()
|
||||||
{
|
{
|
||||||
var bushes = FindObjectsOfType<ObstacleCollider>().ToList();
|
var bushes = FindObjectsOfType<ObstacleCollider>().ToList();
|
||||||
|
|
@ -14,7 +14,8 @@ namespace CWX_BushWhacker
|
|||||||
[PatchPostfix]
|
[PatchPostfix]
|
||||||
public static void PatchPostFix()
|
public static void PatchPostFix()
|
||||||
{
|
{
|
||||||
BushWhackerScript bushWhacker = new BushWhackerScript();
|
BushWhacker bushWhacker = new BushWhacker();
|
||||||
|
bushWhacker.DisableBushes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Binary file not shown.
@ -3,39 +3,39 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<AssemblyName>CWX-BushWhacker</AssemblyName>
|
<AssemblyName>CWX-BushWhacker</AssemblyName>
|
||||||
<Version>1.4.0</Version>
|
<Version>1.3.1</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Aki.Common">
|
<Reference Include="Aki.Common">
|
||||||
<HintPath>..\Shared\Aki.Common.dll</HintPath>
|
<HintPath>..\..\..\Shared\Aki.Common.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Aki.Reflection">
|
<Reference Include="Aki.Reflection">
|
||||||
<HintPath>..\Shared\Aki.Reflection.dll</HintPath>
|
<HintPath>..\..\..\Shared\Aki.Reflection.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Assembly-CSharp">
|
<Reference Include="Assembly-CSharp">
|
||||||
<HintPath>..\Shared\Assembly-CSharp.dll</HintPath>
|
<HintPath>..\..\..\Shared\Assembly-CSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="BepInEx">
|
<Reference Include="BepInEx">
|
||||||
<HintPath>..\Shared\BepInEx.dll</HintPath>
|
<HintPath>..\..\..\Shared\BepInEx.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Comfort">
|
<Reference Include="Comfort">
|
||||||
<HintPath>..\Shared\Comfort.dll</HintPath>
|
<HintPath>..\..\..\Shared\Comfort.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Newtonsoft.Json">
|
<Reference Include="Newtonsoft.Json">
|
||||||
<HintPath>..\Shared\Newtonsoft.Json.dll</HintPath>
|
<HintPath>..\..\..\Shared\Newtonsoft.Json.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine">
|
<Reference Include="UnityEngine">
|
||||||
<HintPath>..\Shared\UnityEngine.dll</HintPath>
|
<HintPath>..\..\..\Shared\UnityEngine.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.AssetBundleModule">
|
<Reference Include="UnityEngine.AssetBundleModule">
|
||||||
<HintPath>..\Shared\UnityEngine.AssetBundleModule.dll</HintPath>
|
<HintPath>..\..\..\Shared\UnityEngine.AssetBundleModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.CoreModule">
|
<Reference Include="UnityEngine.CoreModule">
|
||||||
<HintPath>..\Shared\UnityEngine.CoreModule.dll</HintPath>
|
<HintPath>..\..\..\Shared\UnityEngine.CoreModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="UnityEngine.PhysicsModule">
|
<Reference Include="UnityEngine.PhysicsModule">
|
||||||
<HintPath>..\Shared\UnityEngine.PhysicsModule.dll</HintPath>
|
<HintPath>..\..\..\Shared\UnityEngine.PhysicsModule.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
Binary file not shown.
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<Version>1.6.0</Version>
|
<Version>1.5.1</Version>
|
||||||
<AssemblyName>CWX-DeSharpener</AssemblyName>
|
<AssemblyName>CWX-DeSharpener</AssemblyName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace CWX_DeSharpener
|
namespace CWX_DeSharpener
|
||||||
{
|
{
|
||||||
[BepInPlugin("com.CWX.DeSharpener", "CWX-DeSharpener", "1.6.0")]
|
[BepInPlugin("com.CWX.DeSharpener", "CWX-DeSharpener", "1.5.1")]
|
||||||
public class DeSharpener : BaseUnityPlugin
|
public class DeSharpener : BaseUnityPlugin
|
||||||
{
|
{
|
||||||
private void Awake()
|
private void Awake()
|
8
Live/CWX_DeSharpener/GlobalSuppressions.cs
Normal file
8
Live/CWX_DeSharpener/GlobalSuppressions.cs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// This file is used by Code Analysis to maintain SuppressMessage
|
||||||
|
// attributes that are applied to this project.
|
||||||
|
// Project-level suppressions either have no target or are given
|
||||||
|
// a specific target and scoped to a namespace, type, member, etc.
|
||||||
|
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
|
[assembly: SuppressMessage("CodeQuality", "IDE0051:Remove unused private members", Justification = "<Pending>", Scope = "member", Target = "~M:DeSharpener.DeSharpener.PatchPrefix~System.Boolean")]
|
@ -1,10 +1,11 @@
|
|||||||
University of Illinois/NCSA Open Source License
|
University of Illinois/NCSA Open Source License
|
||||||
|
|
||||||
Copyright (c) [2024] [CWXDEV]. All rights reserved.
|
Copyright (c) [year] [fullname]. All rights reserved.
|
||||||
|
|
||||||
Developed by:
|
Developed by:
|
||||||
[CWX]
|
[CWX]
|
||||||
[https://github.com/CWXDEV/MegaMod]
|
[https://github.com/CWXDEV/CWX-DeSharpener]
|
||||||
|
[https://hub.sp-tarkov.com/files/file/455-cwx-desharpener/]
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person
|
Permission is hereby granted, free of charge, to any person
|
||||||
obtaining a copy of this software and associated documentation files
|
obtaining a copy of this software and associated documentation files
|
6
Live/CWX_DebugTool/types/ErrorHandler.d.ts
vendored
Normal file
6
Live/CWX_DebugTool/types/ErrorHandler.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export declare class ErrorHandler {
|
||||||
|
private logger;
|
||||||
|
private readLine;
|
||||||
|
constructor();
|
||||||
|
handleCriticalError(err: any): void;
|
||||||
|
}
|
5
Live/CWX_DebugTool/types/Program.d.ts
vendored
Normal file
5
Live/CWX_DebugTool/types/Program.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
export declare class Program {
|
||||||
|
private errorHandler;
|
||||||
|
constructor();
|
||||||
|
start(): void;
|
||||||
|
}
|
3
Live/CWX_DebugTool/types/TYPES.d.ts
vendored
Normal file
3
Live/CWX_DebugTool/types/TYPES.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export declare const TYPES: {
|
||||||
|
[name: string]: symbol;
|
||||||
|
};
|
36
Live/CWX_DebugTool/types/callbacks/BotCallbacks.d.ts
vendored
Normal file
36
Live/CWX_DebugTool/types/callbacks/BotCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import { BotController } from "../controllers/BotController";
|
||||||
|
import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IBotBase } from "../models/eft/common/tables/IBotBase";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class BotCallbacks {
|
||||||
|
protected botController: BotController;
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
constructor(botController: BotController, httpResponse: HttpResponseUtil);
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/bot/limit
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
|
getBotLimit(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/bot/difficulty
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
|
getBotDifficulty(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
/**
|
||||||
|
* Handle client/game/bot/generate
|
||||||
|
* @returns IGetBodyResponseData
|
||||||
|
*/
|
||||||
|
generateBots(url: string, info: IGenerateBotsRequestData, sessionID: string): IGetBodyResponseData<IBotBase[]>;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/bot/maxCap
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
|
getBotCap(): string;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/bot/getBotBehaviours
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
|
getBotBehaviours(): string;
|
||||||
|
}
|
18
Live/CWX_DebugTool/types/callbacks/BundleCallbacks.d.ts
vendored
Normal file
18
Live/CWX_DebugTool/types/callbacks/BundleCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import { BundleLoader } from "../loaders/BundleLoader";
|
||||||
|
import { IHttpConfig } from "../models/spt/config/IHttpConfig";
|
||||||
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
|
import { HttpFileUtil } from "../utils/HttpFileUtil";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class BundleCallbacks {
|
||||||
|
protected logger: ILogger;
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected httpFileUtil: HttpFileUtil;
|
||||||
|
protected bundleLoader: BundleLoader;
|
||||||
|
protected configServer: ConfigServer;
|
||||||
|
protected httpConfig: IHttpConfig;
|
||||||
|
constructor(logger: ILogger, httpResponse: HttpResponseUtil, httpFileUtil: HttpFileUtil, bundleLoader: BundleLoader, configServer: ConfigServer);
|
||||||
|
sendBundle(sessionID: string, req: any, resp: any, body: any): any;
|
||||||
|
getBundles(url: string, info: any, sessionID: string): string;
|
||||||
|
getBundle(url: string, info: any, sessionID: string): string;
|
||||||
|
}
|
29
Live/CWX_DebugTool/types/callbacks/CustomizationCallbacks.d.ts
vendored
Normal file
29
Live/CWX_DebugTool/types/callbacks/CustomizationCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import { CustomizationController } from "../controllers/CustomizationController";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { ISuit } from "../models/eft/common/tables/ITrader";
|
||||||
|
import { IBuyClothingRequestData } from "../models/eft/customization/IBuyClothingRequestData";
|
||||||
|
import { IGetSuitsResponse } from "../models/eft/customization/IGetSuitsResponse";
|
||||||
|
import { IWearClothingRequestData } from "../models/eft/customization/IWearClothingRequestData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class CustomizationCallbacks {
|
||||||
|
protected customizationController: CustomizationController;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
constructor(customizationController: CustomizationController, saveServer: SaveServer, httpResponse: HttpResponseUtil);
|
||||||
|
/**
|
||||||
|
* Handles client/trading/customization/storage
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGetSuitsResponse>;
|
||||||
|
/**
|
||||||
|
* Handles client/trading/customization
|
||||||
|
* @returns ISuit[]
|
||||||
|
*/
|
||||||
|
getTraderSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ISuit[]>;
|
||||||
|
wearClothing(pmcData: IPmcData, body: IWearClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
buyClothing(pmcData: IPmcData, body: IBuyClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
}
|
59
Live/CWX_DebugTool/types/callbacks/DataCallbacks.d.ts
vendored
Normal file
59
Live/CWX_DebugTool/types/callbacks/DataCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IGlobals } from "../models/eft/common/IGlobals";
|
||||||
|
import { ICustomizationItem } from "../models/eft/common/tables/ICustomizationItem";
|
||||||
|
import { IHandbookBase } from "../models/eft/common/tables/IHandbookBase";
|
||||||
|
import { IQuest } from "../models/eft/common/tables/IQuest";
|
||||||
|
import { IHideoutArea } from "../models/eft/hideout/IHideoutArea";
|
||||||
|
import { IHideoutProduction } from "../models/eft/hideout/IHideoutProduction";
|
||||||
|
import { IHideoutScavCase } from "../models/eft/hideout/IHideoutScavCase";
|
||||||
|
import { IHideoutSettingsBase } from "../models/eft/hideout/IHideoutSettingsBase";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { ISettingsBase } from "../models/spt/server/ISettingsBase";
|
||||||
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
/**
|
||||||
|
* Handle client requests
|
||||||
|
*/
|
||||||
|
export declare class DataCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected databaseServer: DatabaseServer;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, databaseServer: DatabaseServer);
|
||||||
|
/**
|
||||||
|
* Handles client/settings
|
||||||
|
* @returns ISettingsBase
|
||||||
|
*/
|
||||||
|
getSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ISettingsBase>;
|
||||||
|
/**
|
||||||
|
* Handles client/globals
|
||||||
|
* @returns IGlobals
|
||||||
|
*/
|
||||||
|
getGlobals(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGlobals>;
|
||||||
|
/**
|
||||||
|
* Handles client/items
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
|
getTemplateItems(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
/**
|
||||||
|
* Handles client/handbook/templates
|
||||||
|
* @returns IHandbookBase
|
||||||
|
*/
|
||||||
|
getTemplateHandbook(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHandbookBase>;
|
||||||
|
/**
|
||||||
|
* Handles client/customization
|
||||||
|
* @returns Record<string, ICustomizationItem
|
||||||
|
*/
|
||||||
|
getTemplateSuits(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, ICustomizationItem>>;
|
||||||
|
/**
|
||||||
|
* Handles client/account/customization
|
||||||
|
* @returns string[]
|
||||||
|
*/
|
||||||
|
getTemplateCharacter(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string[]>;
|
||||||
|
getTemplateQuests(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IQuest[]>;
|
||||||
|
getHideoutSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutSettingsBase>;
|
||||||
|
getHideoutAreas(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutArea[]>;
|
||||||
|
gethideoutProduction(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutProduction[]>;
|
||||||
|
getHideoutScavcase(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IHideoutScavCase[]>;
|
||||||
|
getLocalesLanguages(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, string>>;
|
||||||
|
getLocalesMenu(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string>;
|
||||||
|
getLocalesGlobal(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
}
|
57
Live/CWX_DebugTool/types/callbacks/DialogueCallbacks.d.ts
vendored
Normal file
57
Live/CWX_DebugTool/types/callbacks/DialogueCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
import { DialogueController } from "../controllers/DialogueController";
|
||||||
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IFriendRequestData } from "../models/eft/dialog/IFriendRequestData";
|
||||||
|
import { IGetAllAttachmentsRequestData } from "../models/eft/dialog/IGetAllAttachmentsRequestData";
|
||||||
|
import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse";
|
||||||
|
import { IGetChatServerListRequestData } from "../models/eft/dialog/IGetChatServerListRequestData";
|
||||||
|
import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse";
|
||||||
|
import { IGetMailDialogInfoRequestData } from "../models/eft/dialog/IGetMailDialogInfoRequestData";
|
||||||
|
import { IGetMailDialogListRequestData } from "../models/eft/dialog/IGetMailDialogListRequestData";
|
||||||
|
import { IGetMailDialogViewRequestData } from "../models/eft/dialog/IGetMailDialogViewRequestData";
|
||||||
|
import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData";
|
||||||
|
import { IPinDialogRequestData } from "../models/eft/dialog/IPinDialogRequestData";
|
||||||
|
import { IRemoveDialogRequestData } from "../models/eft/dialog/IRemoveDialogRequestData";
|
||||||
|
import { ISendMessageRequest } from "../models/eft/dialog/ISendMessageRequest";
|
||||||
|
import { ISetDialogReadRequestData } from "../models/eft/dialog/ISetDialogReadRequestData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { DialogueInfo } from "../models/eft/profile/IAkiProfile";
|
||||||
|
import { HashUtil } from "../utils/HashUtil";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
|
export declare class DialogueCallbacks extends OnUpdate {
|
||||||
|
protected hashUtil: HashUtil;
|
||||||
|
protected timeUtil: TimeUtil;
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected dialogueController: DialogueController;
|
||||||
|
constructor(hashUtil: HashUtil, timeUtil: TimeUtil, httpResponse: HttpResponseUtil, dialogueController: DialogueController);
|
||||||
|
/**
|
||||||
|
* Handles client/friend/list
|
||||||
|
* @returns IGetFriendListDataResponse
|
||||||
|
*/
|
||||||
|
getFriendList(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGetFriendListDataResponse>;
|
||||||
|
/**
|
||||||
|
* Handles client/chatServer/list
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getChatServerList(url: string, info: IGetChatServerListRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
getMailDialogList(url: string, info: IGetMailDialogListRequestData, sessionID: string): IGetBodyResponseData<DialogueInfo[]>;
|
||||||
|
getMailDialogView(url: string, info: IGetMailDialogViewRequestData, sessionID: string): IGetBodyResponseData<IGetMailDialogViewResponseData>;
|
||||||
|
getMailDialogInfo(url: string, info: IGetMailDialogInfoRequestData, sessionID: string): IGetBodyResponseData<DialogueInfo>;
|
||||||
|
removeDialog(url: string, info: IRemoveDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
pinDialog(url: string, info: IPinDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
unpinDialog(url: string, info: IPinDialogRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
setRead(url: string, info: ISetDialogReadRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
/**
|
||||||
|
* Handles client/mail/dialog/getAllAttachments
|
||||||
|
* @returns IGetAllAttachmentsResponse
|
||||||
|
*/
|
||||||
|
getAllAttachments(url: string, info: IGetAllAttachmentsRequestData, sessionID: string): IGetBodyResponseData<IGetAllAttachmentsResponse>;
|
||||||
|
listOutbox(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
listInbox(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
friendRequest(url: string, request: IFriendRequestData, sessionID: string): INullResponseData;
|
||||||
|
sendMessage(url: string, request: ISendMessageRequest, sessionID: string): IGetBodyResponseData<number>;
|
||||||
|
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
||||||
|
getRoute(): string;
|
||||||
|
}
|
55
Live/CWX_DebugTool/types/callbacks/GameCallbacks.d.ts
vendored
Normal file
55
Live/CWX_DebugTool/types/callbacks/GameCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
import { GameController } from "../controllers/GameController";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { ICheckVersionResponse } from "../models/eft/game/ICheckVersionResponse";
|
||||||
|
import { IGameConfigResponse } from "../models/eft/game/IGameConfigResponse";
|
||||||
|
import { IGameEmptyCrcRequestData } from "../models/eft/game/IGameEmptyCrcRequestData";
|
||||||
|
import { IGameKeepAliveResponse } from "../models/eft/game/IGameKeepAliveResponse";
|
||||||
|
import { IGameLogoutResponseData } from "../models/eft/game/IGameLogoutResponseData";
|
||||||
|
import { IGameStartResponse } from "../models/eft/game/IGameStartResponse";
|
||||||
|
import { IReportNicknameRequestData } from "../models/eft/game/IReportNicknameRequestData";
|
||||||
|
import { IServerDetails } from "../models/eft/game/IServerDetails";
|
||||||
|
import { IVersionValidateRequestData } from "../models/eft/game/IVersionValidateRequestData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
import { Watermark } from "../utils/Watermark";
|
||||||
|
declare class GameCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected watermark: Watermark;
|
||||||
|
protected gameController: GameController;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, watermark: Watermark, gameController: GameController);
|
||||||
|
/**
|
||||||
|
* Handle client/game/version/validate
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
versionValidate(url: string, info: IVersionValidateRequestData, sessionID: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/game/start
|
||||||
|
* @returns IGameStartResponse
|
||||||
|
*/
|
||||||
|
gameStart(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameStartResponse>;
|
||||||
|
/**
|
||||||
|
* Handle client/game/logout
|
||||||
|
* @returns IGameLogoutResponseData
|
||||||
|
*/
|
||||||
|
gameLogout(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameLogoutResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/game/config
|
||||||
|
* @returns IGameConfigResponse
|
||||||
|
*/
|
||||||
|
getGameConfig(url: string, info: IGameEmptyCrcRequestData, sessionID: string): IGetBodyResponseData<IGameConfigResponse>;
|
||||||
|
getServer(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IServerDetails[]>;
|
||||||
|
validateGameVersion(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ICheckVersionResponse>;
|
||||||
|
/**
|
||||||
|
* Handle client/game/keepalive
|
||||||
|
* @returns IGameKeepAliveResponse
|
||||||
|
*/
|
||||||
|
gameKeepalive(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IGameKeepAliveResponse>;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/version
|
||||||
|
* @returns string
|
||||||
|
*/
|
||||||
|
getVersion(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
reportNickname(url: string, info: IReportNicknameRequestData, sessionID: string): INullResponseData;
|
||||||
|
}
|
||||||
|
export { GameCallbacks };
|
8
Live/CWX_DebugTool/types/callbacks/HandbookCallbacks.d.ts
vendored
Normal file
8
Live/CWX_DebugTool/types/callbacks/HandbookCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { HandbookController } from "../controllers/HandbookController";
|
||||||
|
import { OnLoad } from "../di/OnLoad";
|
||||||
|
export declare class HandbookCallbacks extends OnLoad {
|
||||||
|
protected handbookController: HandbookController;
|
||||||
|
constructor(handbookController: HandbookController);
|
||||||
|
onLoad(): Promise<void>;
|
||||||
|
getRoute(): string;
|
||||||
|
}
|
39
Live/CWX_DebugTool/types/callbacks/HealthCallbacks.d.ts
vendored
Normal file
39
Live/CWX_DebugTool/types/callbacks/HealthCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
import { HealthController } from "../controllers/HealthController";
|
||||||
|
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IHealthTreatmentRequestData } from "../models/eft/health/IHealthTreatmentRequestData";
|
||||||
|
import { IOffraidEatRequestData } from "../models/eft/health/IOffraidEatRequestData";
|
||||||
|
import { IOffraidHealRequestData } from "../models/eft/health/IOffraidHealRequestData";
|
||||||
|
import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class HealthCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected profileHelper: ProfileHelper;
|
||||||
|
protected healthController: HealthController;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, profileHelper: ProfileHelper, healthController: HealthController);
|
||||||
|
/**
|
||||||
|
* Custom aki server request found in modules/HealthSynchronizer.cs
|
||||||
|
* @param url
|
||||||
|
* @param info HealthListener.Instance.CurrentHealth class
|
||||||
|
* @param sessionID session id
|
||||||
|
* @returns empty response, no data sent back to client
|
||||||
|
*/
|
||||||
|
syncHealth(url: string, info: ISyncHealthRequestData, sessionID: string): IGetBodyResponseData<string>;
|
||||||
|
/**
|
||||||
|
* Handle Eat
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
|
offraidEat(pmcData: IPmcData, body: IOffraidEatRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle Heal
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
|
offraidHeal(pmcData: IPmcData, body: IOffraidHealRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle RestoreHealth
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
|
healthTreatment(pmcData: IPmcData, info: IHealthTreatmentRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
}
|
96
Live/CWX_DebugTool/types/callbacks/HideoutCallbacks.d.ts
vendored
Normal file
96
Live/CWX_DebugTool/types/callbacks/HideoutCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
import { HideoutController } from "../controllers/HideoutController";
|
||||||
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IHideoutContinousProductionStartRequestData } from "../models/eft/hideout/IHideoutContinousProductionStartRequestData";
|
||||||
|
import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData";
|
||||||
|
import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData";
|
||||||
|
import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData";
|
||||||
|
import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData";
|
||||||
|
import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData";
|
||||||
|
import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData";
|
||||||
|
import { IHideoutUpgradeCompleteRequestData } from "../models/eft/hideout/IHideoutUpgradeCompleteRequestData";
|
||||||
|
import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IHideoutConfig } from "../models/spt/config/IHideoutConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
|
export declare class HideoutCallbacks extends OnUpdate {
|
||||||
|
protected hideoutController: HideoutController;
|
||||||
|
protected configServer: ConfigServer;
|
||||||
|
protected hideoutConfig: IHideoutConfig;
|
||||||
|
constructor(hideoutController: HideoutController, // TODO: delay needed
|
||||||
|
configServer: ConfigServer);
|
||||||
|
/**
|
||||||
|
* Handle HideoutUpgrade
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
upgrade(pmcData: IPmcData, body: IHideoutUpgradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle HideoutUpgradeComplete
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
upgradeComplete(pmcData: IPmcData, body: IHideoutUpgradeCompleteRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle HideoutPutItemsInAreaSlots
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
putItemsInAreaSlots(pmcData: IPmcData, body: IHideoutPutItemInRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle HideoutTakeItemsFromAreaSlots
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
takeItemsFromAreaSlots(pmcData: IPmcData, body: IHideoutTakeItemOutRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle HideoutToggleArea
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
toggleArea(pmcData: IPmcData, body: IHideoutToggleAreaRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle HideoutSingleProductionStart
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
singleProductionStart(pmcData: IPmcData, body: IHideoutSingleProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle HideoutScavCaseProductionStart
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
scavCaseProductionStart(pmcData: IPmcData, body: IHideoutScavCaseStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle HideoutContinuousProductionStart
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
continuousProductionStart(pmcData: IPmcData, body: IHideoutContinousProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle HideoutTakeProduction
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
takeProduction(pmcData: IPmcData, body: IHideoutTakeProductionRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
||||||
|
getRoute(): string;
|
||||||
|
}
|
9
Live/CWX_DebugTool/types/callbacks/HttpCallbacks.d.ts
vendored
Normal file
9
Live/CWX_DebugTool/types/callbacks/HttpCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { OnLoad } from "../di/OnLoad";
|
||||||
|
import { HttpServer } from "../servers/HttpServer";
|
||||||
|
export declare class HttpCallbacks extends OnLoad {
|
||||||
|
protected httpServer: HttpServer;
|
||||||
|
constructor(httpServer: HttpServer);
|
||||||
|
onLoad(): Promise<void>;
|
||||||
|
getRoute(): string;
|
||||||
|
getImage(): string;
|
||||||
|
}
|
49
Live/CWX_DebugTool/types/callbacks/InraidCallbacks.d.ts
vendored
Normal file
49
Live/CWX_DebugTool/types/callbacks/InraidCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
import { InraidController } from "../controllers/InraidController";
|
||||||
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData";
|
||||||
|
import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
/**
|
||||||
|
* Handle client requests
|
||||||
|
*/
|
||||||
|
export declare class InraidCallbacks {
|
||||||
|
protected inraidController: InraidController;
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
constructor(inraidController: InraidController, httpResponse: HttpResponseUtil);
|
||||||
|
/**
|
||||||
|
* Handle client/location/getLocalloot
|
||||||
|
* @param url
|
||||||
|
* @param info register player request
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns Null http response
|
||||||
|
*/
|
||||||
|
registerPlayer(url: string, info: IRegisterPlayerRequestData, sessionID: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle raid/profile/save
|
||||||
|
* @param url
|
||||||
|
* @param info Save progress request
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns Null http response
|
||||||
|
*/
|
||||||
|
saveProgress(url: string, info: ISaveProgressRequestData, sessionID: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/raid/endstate
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getRaidEndState(): string;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/raid/menu
|
||||||
|
* @returns JSON as string
|
||||||
|
*/
|
||||||
|
getRaidMenuSettings(): string;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/settings/weapon/durability
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getWeaponDurability(): string;
|
||||||
|
/**
|
||||||
|
* Handle singleplayer/airdrop/config
|
||||||
|
* @returns JSON as string
|
||||||
|
*/
|
||||||
|
getAirdropConfig(): string;
|
||||||
|
}
|
32
Live/CWX_DebugTool/types/callbacks/InsuranceCallbacks.d.ts
vendored
Normal file
32
Live/CWX_DebugTool/types/callbacks/InsuranceCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import { InsuranceController } from "../controllers/InsuranceController";
|
||||||
|
import { OnUpdate } from "../di/OnUpdate";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData";
|
||||||
|
import { IGetInsuranceCostResponseData } from "../models/eft/insurance/IGetInsuranceCostResponseData";
|
||||||
|
import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IInsuranceConfig } from "../models/spt/config/IInsuranceConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
|
import { InsuranceService } from "../services/InsuranceService";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class InsuranceCallbacks extends OnUpdate {
|
||||||
|
protected insuranceController: InsuranceController;
|
||||||
|
protected insuranceService: InsuranceService;
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected configServer: ConfigServer;
|
||||||
|
protected insuranceConfig: IInsuranceConfig;
|
||||||
|
constructor(insuranceController: InsuranceController, insuranceService: InsuranceService, httpResponse: HttpResponseUtil, configServer: ConfigServer);
|
||||||
|
/**
|
||||||
|
* Handle client/insurance/items/list/cost
|
||||||
|
* @returns IGetInsuranceCostResponseData
|
||||||
|
*/
|
||||||
|
getInsuranceCost(url: string, info: IGetInsuranceCostRequestData, sessionID: string): IGetBodyResponseData<IGetInsuranceCostResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle Insure
|
||||||
|
* @returns IItemEventRouterResponse
|
||||||
|
*/
|
||||||
|
insure(pmcData: IPmcData, body: IInsureRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
getRoute(): string;
|
||||||
|
}
|
41
Live/CWX_DebugTool/types/callbacks/InventoryCallbacks.d.ts
vendored
Normal file
41
Live/CWX_DebugTool/types/callbacks/InventoryCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
import { InventoryController } from "../controllers/InventoryController";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IInventoryBindRequestData } from "../models/eft/inventory/IInventoryBindRequestData";
|
||||||
|
import { IInventoryCreateMarkerRequestData } from "../models/eft/inventory/IInventoryCreateMarkerRequestData";
|
||||||
|
import { IInventoryDeleteMarkerRequestData } from "../models/eft/inventory/IInventoryDeleteMarkerRequestData";
|
||||||
|
import { IInventoryEditMarkerRequestData } from "../models/eft/inventory/IInventoryEditMarkerRequestData";
|
||||||
|
import { IInventoryExamineRequestData } from "../models/eft/inventory/IInventoryExamineRequestData";
|
||||||
|
import { IInventoryFoldRequestData } from "../models/eft/inventory/IInventoryFoldRequestData";
|
||||||
|
import { IInventoryMergeRequestData } from "../models/eft/inventory/IInventoryMergeRequestData";
|
||||||
|
import { IInventoryMoveRequestData } from "../models/eft/inventory/IInventoryMoveRequestData";
|
||||||
|
import { IInventoryReadEncyclopediaRequestData } from "../models/eft/inventory/IInventoryReadEncyclopediaRequestData";
|
||||||
|
import { IInventoryRemoveRequestData } from "../models/eft/inventory/IInventoryRemoveRequestData";
|
||||||
|
import { IInventorySortRequestData } from "../models/eft/inventory/IInventorySortRequestData";
|
||||||
|
import { IInventorySplitRequestData } from "../models/eft/inventory/IInventorySplitRequestData";
|
||||||
|
import { IInventorySwapRequestData } from "../models/eft/inventory/IInventorySwapRequestData";
|
||||||
|
import { IInventoryTagRequestData } from "../models/eft/inventory/IInventoryTagRequestData";
|
||||||
|
import { IInventoryToggleRequestData } from "../models/eft/inventory/IInventoryToggleRequestData";
|
||||||
|
import { IInventoryTransferRequestData } from "../models/eft/inventory/IInventoryTransferRequestData";
|
||||||
|
import { IOpenRandomLootContainerRequestData } from "../models/eft/inventory/IOpenRandomLootContainerRequestData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
export declare class InventoryCallbacks {
|
||||||
|
protected inventoryController: InventoryController;
|
||||||
|
constructor(inventoryController: InventoryController);
|
||||||
|
moveItem(pmcData: IPmcData, body: IInventoryMoveRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
removeItem(pmcData: IPmcData, body: IInventoryRemoveRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
splitItem(pmcData: IPmcData, body: IInventorySplitRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
mergeItem(pmcData: IPmcData, body: IInventoryMergeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
transferItem(pmcData: IPmcData, body: IInventoryTransferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
swapItem(pmcData: IPmcData, body: IInventorySwapRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
foldItem(pmcData: IPmcData, body: IInventoryFoldRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
toggleItem(pmcData: IPmcData, body: IInventoryToggleRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
tagItem(pmcData: IPmcData, body: IInventoryTagRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
bindItem(pmcData: IPmcData, body: IInventoryBindRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
examineItem(pmcData: IPmcData, body: IInventoryExamineRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
readEncyclopedia(pmcData: IPmcData, body: IInventoryReadEncyclopediaRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
sortInventory(pmcData: IPmcData, body: IInventorySortRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
createMapMarker(pmcData: IPmcData, body: IInventoryCreateMarkerRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
deleteMapMarker(pmcData: IPmcData, body: IInventoryDeleteMarkerRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
editMapMarker(pmcData: IPmcData, body: IInventoryEditMarkerRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
openRandomLootContainer(pmcData: IPmcData, body: IOpenRandomLootContainerRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
}
|
13
Live/CWX_DebugTool/types/callbacks/ItemEventCallbacks.d.ts
vendored
Normal file
13
Live/CWX_DebugTool/types/callbacks/ItemEventCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { Warning } from "../models/eft/itemEvent/IItemEventRouterBase";
|
||||||
|
import { IItemEventRouterRequest } from "../models/eft/itemEvent/IItemEventRouterRequest";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { ItemEventRouter } from "../routers/ItemEventRouter";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class ItemEventCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected itemEventRouter: ItemEventRouter;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, itemEventRouter: ItemEventRouter);
|
||||||
|
handleEvents(url: string, info: IItemEventRouterRequest, sessionID: string): IGetBodyResponseData<IItemEventRouterResponse>;
|
||||||
|
protected getErrorCode(warnings: Warning[]): number;
|
||||||
|
}
|
28
Live/CWX_DebugTool/types/callbacks/LauncherCallbacks.d.ts
vendored
Normal file
28
Live/CWX_DebugTool/types/callbacks/LauncherCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { LauncherController } from "../controllers/LauncherController";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData";
|
||||||
|
import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData";
|
||||||
|
import { IRegisterData } from "../models/eft/launcher/IRegisterData";
|
||||||
|
import { IRemoveProfileData } from "../models/eft/launcher/IRemoveProfileData";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
import { Watermark } from "../utils/Watermark";
|
||||||
|
declare class LauncherCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected launcherController: LauncherController;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
|
protected watermark: Watermark;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, launcherController: LauncherController, saveServer: SaveServer, watermark: Watermark);
|
||||||
|
connect(): string;
|
||||||
|
login(url: string, info: ILoginRequestData, sessionID: string): string;
|
||||||
|
register(url: string, info: IRegisterData, sessionID: string): "FAILED" | "OK";
|
||||||
|
get(url: string, info: ILoginRequestData, sessionID: string): string;
|
||||||
|
changeUsername(url: string, info: IChangeRequestData, sessionID: string): "FAILED" | "OK";
|
||||||
|
changePassword(url: string, info: IChangeRequestData, sessionID: string): "FAILED" | "OK";
|
||||||
|
wipe(url: string, info: IRegisterData, sessionID: string): "FAILED" | "OK";
|
||||||
|
getServerVersion(): string;
|
||||||
|
ping(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
removeProfile(url: string, info: IRemoveProfileData, sessionID: string): string;
|
||||||
|
getCompatibleTarkovVersion(): string;
|
||||||
|
}
|
||||||
|
export { LauncherCallbacks };
|
15
Live/CWX_DebugTool/types/callbacks/LocationCallbacks.d.ts
vendored
Normal file
15
Live/CWX_DebugTool/types/callbacks/LocationCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { LocationController } from "../controllers/LocationController";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { ILocationBase } from "../models/eft/common/ILocationBase";
|
||||||
|
import { ILocationsGenerateAllResponse } from "../models/eft/common/ILocationsSourceDestinationBase";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { IGetLocationRequestData } from "../models/eft/location/IGetLocationRequestData";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class LocationCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected locationController: LocationController;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, locationController: LocationController);
|
||||||
|
getLocationData(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ILocationsGenerateAllResponse>;
|
||||||
|
getLocation(url: string, info: IGetLocationRequestData, sessionID: string): IGetBodyResponseData<ILocationBase>;
|
||||||
|
getAirdropLoot(url: string, info: IEmptyRequestData, sessionID: string): string;
|
||||||
|
}
|
46
Live/CWX_DebugTool/types/callbacks/MatchCallbacks.d.ts
vendored
Normal file
46
Live/CWX_DebugTool/types/callbacks/MatchCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import { MatchController } from "../controllers/MatchController";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { ICreateGroupRequestData } from "../models/eft/match/ICreateGroupRequestData";
|
||||||
|
import { IEndOfflineRaidRequestData } from "../models/eft/match/IEndOfflineRaidRequestData";
|
||||||
|
import { IGetGroupStatusRequestData } from "../models/eft/match/IGetGroupStatusRequestData";
|
||||||
|
import { IGetProfileRequestData } from "../models/eft/match/IGetProfileRequestData";
|
||||||
|
import { IJoinMatchRequestData } from "../models/eft/match/IJoinMatchRequestData";
|
||||||
|
import { IJoinMatchResult } from "../models/eft/match/IJoinMatchResult";
|
||||||
|
import { IPutMetricsRequestData } from "../models/eft/match/IPutMetricsRequestData";
|
||||||
|
import { IStartOfflineRaidRequestData } from "../models/eft/match/IStartOffineRaidRequestData";
|
||||||
|
import { IUpdatePingRequestData } from "../models/eft/match/IUpdatePingRequestData";
|
||||||
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
|
export declare class MatchCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected jsonUtil: JsonUtil;
|
||||||
|
protected matchController: MatchController;
|
||||||
|
protected databaseServer: DatabaseServer;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, jsonUtil: JsonUtil, matchController: MatchController, databaseServer: DatabaseServer);
|
||||||
|
updatePing(url: string, info: IUpdatePingRequestData, sessionID: string): INullResponseData;
|
||||||
|
exitMatch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
||||||
|
exitToMenu(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
||||||
|
startGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
||||||
|
stopGroupSearch(url: string, info: IEmptyRequestData, sessionID: string): INullResponseData;
|
||||||
|
sendGroupInvite(url: string, info: any, sessionID: string): INullResponseData;
|
||||||
|
acceptGroupInvite(url: string, info: any, sessionID: string): INullResponseData;
|
||||||
|
cancelGroupInvite(url: string, info: any, sessionID: string): INullResponseData;
|
||||||
|
putMetrics(url: string, info: IPutMetricsRequestData, sessionID: string): INullResponseData;
|
||||||
|
getProfile(url: string, info: IGetProfileRequestData, sessionID: string): IGetBodyResponseData<IPmcData[]>;
|
||||||
|
serverAvailable(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<any> | IGetBodyResponseData<true>;
|
||||||
|
joinMatch(url: string, info: IJoinMatchRequestData, sessionID: string): IGetBodyResponseData<IJoinMatchResult[]>;
|
||||||
|
getMetrics(url: string, info: any, sessionID: string): IGetBodyResponseData<string>;
|
||||||
|
/**
|
||||||
|
* Handle client/match/group/status
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getGroupStatus(url: string, info: IGetGroupStatusRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||||
|
createGroup(url: string, info: ICreateGroupRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||||
|
deleteGroup(url: string, info: any, sessionID: string): INullResponseData;
|
||||||
|
startOfflineRaid(url: string, info: IStartOfflineRaidRequestData, sessionID: string): INullResponseData;
|
||||||
|
endOfflineRaid(url: string, info: IEndOfflineRaidRequestData, sessionID: string): INullResponseData;
|
||||||
|
}
|
24
Live/CWX_DebugTool/types/callbacks/ModCallbacks.d.ts
vendored
Normal file
24
Live/CWX_DebugTool/types/callbacks/ModCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import { OnLoad } from "../di/OnLoad";
|
||||||
|
import { PostAkiModLoader } from "../loaders/PostAkiModLoader";
|
||||||
|
import { IHttpConfig } from "../models/spt/config/IHttpConfig";
|
||||||
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
|
import { LocalisationService } from "../services/LocalisationService";
|
||||||
|
import { HttpFileUtil } from "../utils/HttpFileUtil";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
declare class ModCallbacks extends OnLoad {
|
||||||
|
protected logger: ILogger;
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected httpFileUtil: HttpFileUtil;
|
||||||
|
protected postAkiModLoader: PostAkiModLoader;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
|
protected configServer: ConfigServer;
|
||||||
|
protected httpConfig: IHttpConfig;
|
||||||
|
constructor(logger: ILogger, httpResponse: HttpResponseUtil, httpFileUtil: HttpFileUtil, postAkiModLoader: PostAkiModLoader, localisationService: LocalisationService, configServer: ConfigServer);
|
||||||
|
onLoad(): Promise<void>;
|
||||||
|
getRoute(): string;
|
||||||
|
sendBundle(sessionID: string, req: any, resp: any, body: any): void;
|
||||||
|
getBundles(url: string, info: any, sessionID: string): string;
|
||||||
|
getBundle(url: string, info: any, sessionID: string): string;
|
||||||
|
}
|
||||||
|
export { ModCallbacks };
|
11
Live/CWX_DebugTool/types/callbacks/NoteCallbacks.d.ts
vendored
Normal file
11
Live/CWX_DebugTool/types/callbacks/NoteCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { NoteController } from "../controllers/NoteController";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { INoteActionData } from "../models/eft/notes/INoteActionData";
|
||||||
|
export declare class NoteCallbacks {
|
||||||
|
protected noteController: NoteController;
|
||||||
|
constructor(noteController: NoteController);
|
||||||
|
addNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
editNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
deleteNote(pmcData: IPmcData, body: INoteActionData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
}
|
29
Live/CWX_DebugTool/types/callbacks/NotifierCallbacks.d.ts
vendored
Normal file
29
Live/CWX_DebugTool/types/callbacks/NotifierCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import { NotifierController } from "../controllers/NotifierController";
|
||||||
|
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { INotifierChannel } from "../models/eft/notifier/INotifier";
|
||||||
|
import { ISelectProfileRequestData } from "../models/eft/notifier/ISelectProfileRequestData";
|
||||||
|
import { ISelectProfileResponse } from "../models/eft/notifier/ISelectProfileResponse";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class NotifierCallbacks {
|
||||||
|
protected httpServerHelper: HttpServerHelper;
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected notifierController: NotifierController;
|
||||||
|
constructor(httpServerHelper: HttpServerHelper, httpResponse: HttpResponseUtil, notifierController: NotifierController);
|
||||||
|
/**
|
||||||
|
* If we don't have anything to send, it's ok to not send anything back
|
||||||
|
* because notification requests can be long-polling. In fact, we SHOULD wait
|
||||||
|
* until we actually have something to send because otherwise we'd spam the client
|
||||||
|
* and the client would abort the connection due to spam.
|
||||||
|
*/
|
||||||
|
sendNotification(sessionID: string, req: any, resp: any, data: any): void;
|
||||||
|
getNotifier(url: string, info: any, sessionID: string): IGetBodyResponseData<any[]>;
|
||||||
|
createNotifierChannel(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<INotifierChannel>;
|
||||||
|
/**
|
||||||
|
* Handle client/game/profile/select
|
||||||
|
* @returns ISelectProfileResponse
|
||||||
|
*/
|
||||||
|
selectProfile(url: string, info: ISelectProfileRequestData, sessionID: string): IGetBodyResponseData<ISelectProfileResponse>;
|
||||||
|
notify(url: string, info: any, sessionID: string): string;
|
||||||
|
}
|
16
Live/CWX_DebugTool/types/callbacks/PresetBuildCallbacks.d.ts
vendored
Normal file
16
Live/CWX_DebugTool/types/callbacks/PresetBuildCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { PresetBuildController } from "../controllers/PresetBuildController";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IPresetBuildActionRequestData } from "../models/eft/presetBuild/IPresetBuildActionRequestData";
|
||||||
|
import { WeaponBuild } from "../models/eft/profile/IAkiProfile";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class PresetBuildCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected presetBuildController: PresetBuildController;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, presetBuildController: PresetBuildController);
|
||||||
|
getHandbookUserlist(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<WeaponBuild[]>;
|
||||||
|
saveBuild(pmcData: IPmcData, body: IPresetBuildActionRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
removeBuild(pmcData: IPmcData, body: IPresetBuildActionRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
}
|
8
Live/CWX_DebugTool/types/callbacks/PresetCallbacks.d.ts
vendored
Normal file
8
Live/CWX_DebugTool/types/callbacks/PresetCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { PresetController } from "../controllers/PresetController";
|
||||||
|
import { OnLoad } from "../di/OnLoad";
|
||||||
|
export declare class PresetCallbacks extends OnLoad {
|
||||||
|
protected presetController: PresetController;
|
||||||
|
constructor(presetController: PresetController);
|
||||||
|
onLoad(): Promise<void>;
|
||||||
|
getRoute(): string;
|
||||||
|
}
|
70
Live/CWX_DebugTool/types/callbacks/ProfileCallbacks.d.ts
vendored
Normal file
70
Live/CWX_DebugTool/types/callbacks/ProfileCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
import { ProfileController } from "../controllers/ProfileController";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { IGetMiniProfileRequestData } from "../models/eft/launcher/IGetMiniProfileRequestData";
|
||||||
|
import { GetProfileStatusResponseData } from "../models/eft/profile/GetProfileStatusResponseData";
|
||||||
|
import { IProfileChangeNicknameRequestData } from "../models/eft/profile/IProfileChangeNicknameRequestData";
|
||||||
|
import { IProfileChangeVoiceRequestData } from "../models/eft/profile/IProfileChangeVoiceRequestData";
|
||||||
|
import { IProfileCreateRequestData } from "../models/eft/profile/IProfileCreateRequestData";
|
||||||
|
import { ISearchFriendRequestData } from "../models/eft/profile/ISearchFriendRequestData";
|
||||||
|
import { ISearchFriendResponse } from "../models/eft/profile/ISearchFriendResponse";
|
||||||
|
import { IValidateNicknameRequestData } from "../models/eft/profile/IValidateNicknameRequestData";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
|
/** Handle profile related client events */
|
||||||
|
export declare class ProfileCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected timeUtil: TimeUtil;
|
||||||
|
protected profileController: ProfileController;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, timeUtil: TimeUtil, profileController: ProfileController);
|
||||||
|
createProfile(url: string, info: IProfileCreateRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||||
|
/**
|
||||||
|
* Get the complete player profile (scav + pmc character)
|
||||||
|
* @param url
|
||||||
|
* @param info Empty
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns Profile object
|
||||||
|
*/
|
||||||
|
getProfileData(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IPmcData[]>;
|
||||||
|
/**
|
||||||
|
* Handle the creation of a scav profile for player
|
||||||
|
* Occurs post-raid and when profile first created immediately after character details are confirmed by player
|
||||||
|
* @param url
|
||||||
|
* @param info empty
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns Profile object
|
||||||
|
*/
|
||||||
|
regenerateScav(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IPmcData[]>;
|
||||||
|
/**
|
||||||
|
* Handle client/game/profile/voice/change event
|
||||||
|
* @param url
|
||||||
|
* @param info Change voice request object
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns Client response
|
||||||
|
*/
|
||||||
|
changeVoice(url: string, info: IProfileChangeVoiceRequestData, sessionID: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/game/profile/nickname/change event
|
||||||
|
* Client allows player to adjust their profile name
|
||||||
|
* @param url
|
||||||
|
* @param info Change nickname request object
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns client response
|
||||||
|
*/
|
||||||
|
changeNickname(url: string, info: IProfileChangeNicknameRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||||
|
validateNickname(url: string, info: IValidateNicknameRequestData, sessionID: string): IGetBodyResponseData<any>;
|
||||||
|
getReservedNickname(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string>;
|
||||||
|
/**
|
||||||
|
* Called when creating a character when choosing a character face/voice
|
||||||
|
* @param url
|
||||||
|
* @param info response (empty)
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getProfileStatus(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<GetProfileStatusResponseData>;
|
||||||
|
searchFriend(url: string, info: ISearchFriendRequestData, sessionID: string): IGetBodyResponseData<ISearchFriendResponse[]>;
|
||||||
|
getMiniProfile(url: string, info: IGetMiniProfileRequestData, sessionID: string): string;
|
||||||
|
getAllMiniProfiles(url: string, info: any, sessionID: string): string;
|
||||||
|
}
|
33
Live/CWX_DebugTool/types/callbacks/QuestCallbacks.d.ts
vendored
Normal file
33
Live/CWX_DebugTool/types/callbacks/QuestCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import { QuestController } from "../controllers/QuestController";
|
||||||
|
import { RepeatableQuestController } from "../controllers/RepeatableQuestController";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IQuest } from "../models/eft/common/tables/IQuest";
|
||||||
|
import { IPmcDataRepeatableQuest } from "../models/eft/common/tables/IRepeatableQuests";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IAcceptQuestRequestData } from "../models/eft/quests/IAcceptQuestRequestData";
|
||||||
|
import { ICompleteQuestRequestData } from "../models/eft/quests/ICompleteQuestRequestData";
|
||||||
|
import { IHandoverQuestRequestData } from "../models/eft/quests/IHandoverQuestRequestData";
|
||||||
|
import { IListQuestsRequestData } from "../models/eft/quests/IListQuestsRequestData";
|
||||||
|
import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class QuestCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected questController: QuestController;
|
||||||
|
protected repeatableQuestController: RepeatableQuestController;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, questController: QuestController, repeatableQuestController: RepeatableQuestController);
|
||||||
|
changeRepeatableQuest(pmcData: IPmcData, body: IRepeatableQuestChangeRequest, sessionID: string): IItemEventRouterResponse;
|
||||||
|
acceptQuest(pmcData: IPmcData, body: IAcceptQuestRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
completeQuest(pmcData: IPmcData, body: ICompleteQuestRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
handoverQuest(pmcData: IPmcData, body: IHandoverQuestRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handle client/quest/list
|
||||||
|
* @param url
|
||||||
|
* @param info
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
listQuests(url: string, info: IListQuestsRequestData, sessionID: string): IGetBodyResponseData<IQuest[]>;
|
||||||
|
activityPeriods(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IPmcDataRepeatableQuest[]>;
|
||||||
|
}
|
42
Live/CWX_DebugTool/types/callbacks/RagfairCallbacks.d.ts
vendored
Normal file
42
Live/CWX_DebugTool/types/callbacks/RagfairCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
import { RagfairController } from "../controllers/RagfairController";
|
||||||
|
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { INullResponseData } from "../models/eft/httpResponse/INullResponseData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IAddOfferRequestData } from "../models/eft/ragfair/IAddOfferRequestData";
|
||||||
|
import { IExtendOfferRequestData } from "../models/eft/ragfair/IExtendOfferRequestData";
|
||||||
|
import { IGetItemPriceResult } from "../models/eft/ragfair/IGetItemPriceResult";
|
||||||
|
import { IGetMarketPriceRequestData } from "../models/eft/ragfair/IGetMarketPriceRequestData";
|
||||||
|
import { IGetOffersResult } from "../models/eft/ragfair/IGetOffersResult";
|
||||||
|
import { IRemoveOfferRequestData } from "../models/eft/ragfair/IRemoveOfferRequestData";
|
||||||
|
import { ISearchRequestData } from "../models/eft/ragfair/ISearchRequestData";
|
||||||
|
import { ISendRagfairReportRequestData } from "../models/eft/ragfair/ISendRagfairReportRequestData";
|
||||||
|
import { IRagfairConfig } from "../models/spt/config/IRagfairConfig";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
|
import { RagfairServer } from "../servers/RagfairServer";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
|
/**
|
||||||
|
* Handle ragfair related callback events
|
||||||
|
*/
|
||||||
|
export declare class RagfairCallbacks extends OnLoadOnUpdate {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected jsonUtil: JsonUtil;
|
||||||
|
protected ragfairServer: RagfairServer;
|
||||||
|
protected ragfairController: RagfairController;
|
||||||
|
protected configServer: ConfigServer;
|
||||||
|
protected ragfairConfig: IRagfairConfig;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, jsonUtil: JsonUtil, ragfairServer: RagfairServer, ragfairController: RagfairController, configServer: ConfigServer);
|
||||||
|
onLoad(): Promise<void>;
|
||||||
|
getRoute(): string;
|
||||||
|
search(url: string, info: ISearchRequestData, sessionID: string): IGetBodyResponseData<IGetOffersResult>;
|
||||||
|
getMarketPrice(url: string, info: IGetMarketPriceRequestData, sessionID: string): IGetBodyResponseData<IGetItemPriceResult>;
|
||||||
|
getItemPrices(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, number>>;
|
||||||
|
addOffer(pmcData: IPmcData, info: IAddOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
removeOffer(pmcData: IPmcData, info: IRemoveOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
extendOffer(pmcData: IPmcData, info: IExtendOfferRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
onUpdate(timeSinceLastRun: number): Promise<boolean>;
|
||||||
|
sendReport(url: string, info: ISendRagfairReportRequestData, sessionID: string): INullResponseData;
|
||||||
|
}
|
25
Live/CWX_DebugTool/types/callbacks/RepairCallbacks.d.ts
vendored
Normal file
25
Live/CWX_DebugTool/types/callbacks/RepairCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { RepairController } from "../controllers/RepairController";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest";
|
||||||
|
import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest";
|
||||||
|
export declare class RepairCallbacks {
|
||||||
|
protected repairController: RepairController;
|
||||||
|
constructor(repairController: RepairController);
|
||||||
|
/**
|
||||||
|
* use trader to repair item
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
traderRepair(pmcData: IPmcData, body: ITraderRepairActionDataRequest, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Use repair kit to repair item
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
repair(pmcData: IPmcData, body: IRepairActionDataRequest, sessionID: string): IItemEventRouterResponse;
|
||||||
|
}
|
9
Live/CWX_DebugTool/types/callbacks/SaveCallbacks.d.ts
vendored
Normal file
9
Live/CWX_DebugTool/types/callbacks/SaveCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
|
export declare class SaveCallbacks extends OnLoadOnUpdate {
|
||||||
|
protected saveServer: SaveServer;
|
||||||
|
constructor(saveServer: SaveServer);
|
||||||
|
onLoad(): Promise<void>;
|
||||||
|
getRoute(): string;
|
||||||
|
onUpdate(secondsSinceLastRun: number): Promise<boolean>;
|
||||||
|
}
|
11
Live/CWX_DebugTool/types/callbacks/TradeCallbacks.d.ts
vendored
Normal file
11
Live/CWX_DebugTool/types/callbacks/TradeCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { TradeController } from "../controllers/TradeController";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IProcessBaseTradeRequestData } from "../models/eft/trade/IProcessBaseTradeRequestData";
|
||||||
|
import { IProcessRagfairTradeRequestData } from "../models/eft/trade/IProcessRagfairTradeRequestData";
|
||||||
|
export declare class TradeCallbacks {
|
||||||
|
protected tradeController: TradeController;
|
||||||
|
constructor(tradeController: TradeController);
|
||||||
|
processTrade(pmcData: IPmcData, body: IProcessBaseTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
processRagfairTrade(pmcData: IPmcData, body: IProcessRagfairTradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
}
|
22
Live/CWX_DebugTool/types/callbacks/TraderCallbacks.d.ts
vendored
Normal file
22
Live/CWX_DebugTool/types/callbacks/TraderCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { TraderController } from "../controllers/TraderController";
|
||||||
|
import { OnLoadOnUpdate } from "../di/OnLoadOnUpdate";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IBarterScheme, ITraderAssort, ITraderBase } from "../models/eft/common/tables/ITrader";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class TraderCallbacks extends OnLoadOnUpdate {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected traderController: TraderController;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, traderController: TraderController);
|
||||||
|
onLoad(): Promise<void>;
|
||||||
|
onUpdate(): Promise<boolean>;
|
||||||
|
getRoute(): string;
|
||||||
|
getTraderSettings(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ITraderBase[]>;
|
||||||
|
/**
|
||||||
|
* Handle client/trading/api/getUserAssortPrice/trader
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getProfilePurchases(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<Record<string, IBarterScheme[][]>>;
|
||||||
|
getTrader(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ITraderBase>;
|
||||||
|
getAssort(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<ITraderAssort>;
|
||||||
|
}
|
15
Live/CWX_DebugTool/types/callbacks/WeatherCallbacks.d.ts
vendored
Normal file
15
Live/CWX_DebugTool/types/callbacks/WeatherCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { WeatherController } from "../controllers/WeatherController";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData";
|
||||||
|
import { IWeatherData } from "../models/eft/weather/IWeatherData";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
export declare class WeatherCallbacks {
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected weatherController: WeatherController;
|
||||||
|
constructor(httpResponse: HttpResponseUtil, weatherController: WeatherController);
|
||||||
|
/**
|
||||||
|
* Handle client/weather
|
||||||
|
* @returns IWeatherData
|
||||||
|
*/
|
||||||
|
getWeather(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<IWeatherData>;
|
||||||
|
}
|
10
Live/CWX_DebugTool/types/callbacks/WishlistCallbacks.d.ts
vendored
Normal file
10
Live/CWX_DebugTool/types/callbacks/WishlistCallbacks.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { WishlistController } from "../controllers/WishlistController";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IWishlistActionData } from "../models/eft/wishlist/IWishlistActionData";
|
||||||
|
export declare class WishlistCallbacks {
|
||||||
|
protected wishlistController: WishlistController;
|
||||||
|
constructor(wishlistController: WishlistController);
|
||||||
|
addToWishlist(pmcData: IPmcData, body: IWishlistActionData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
removeFromWishlist(pmcData: IPmcData, body: IWishlistActionData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
}
|
9
Live/CWX_DebugTool/types/context/ApplicationContext.d.ts
vendored
Normal file
9
Live/CWX_DebugTool/types/context/ApplicationContext.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { ContextVariable } from "./ContextVariable";
|
||||||
|
import { ContextVariableType } from "./ContextVariableType";
|
||||||
|
export declare class ApplicationContext {
|
||||||
|
private variables;
|
||||||
|
private static holderMaxSize;
|
||||||
|
getLatestValue(type: ContextVariableType): ContextVariable;
|
||||||
|
getValues(type: ContextVariableType): ContextVariable[];
|
||||||
|
addValue(type: ContextVariableType, value: any): void;
|
||||||
|
}
|
10
Live/CWX_DebugTool/types/context/ContextVariable.d.ts
vendored
Normal file
10
Live/CWX_DebugTool/types/context/ContextVariable.d.ts
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { ContextVariableType } from "./ContextVariableType";
|
||||||
|
export declare class ContextVariable {
|
||||||
|
private value;
|
||||||
|
private timestamp;
|
||||||
|
private type;
|
||||||
|
constructor(value: any, type: ContextVariableType);
|
||||||
|
getValue<T>(): T;
|
||||||
|
getTimestamp(): Date;
|
||||||
|
getType(): ContextVariableType;
|
||||||
|
}
|
8
Live/CWX_DebugTool/types/context/ContextVariableType.d.ts
vendored
Normal file
8
Live/CWX_DebugTool/types/context/ContextVariableType.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export declare enum ContextVariableType {
|
||||||
|
/** Logged in users session id */
|
||||||
|
SESSION_ID = 0,
|
||||||
|
/** Currently acive raid information */
|
||||||
|
MATCH_INFO = 1,
|
||||||
|
/** Timestamp when client first connected */
|
||||||
|
CLIENT_START_TIMESTAMP = 2
|
||||||
|
}
|
73
Live/CWX_DebugTool/types/controllers/BotController.d.ts
vendored
Normal file
73
Live/CWX_DebugTool/types/controllers/BotController.d.ts
vendored
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
import { ApplicationContext } from "../context/ApplicationContext";
|
||||||
|
import { BotGenerator } from "../generators/BotGenerator";
|
||||||
|
import { BotDifficultyHelper } from "../helpers/BotDifficultyHelper";
|
||||||
|
import { BotHelper } from "../helpers/BotHelper";
|
||||||
|
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||||
|
import { WeightedRandomHelper } from "../helpers/WeightedRandomHelper";
|
||||||
|
import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData";
|
||||||
|
import { IBotBase } from "../models/eft/common/tables/IBotBase";
|
||||||
|
import { IBotCore } from "../models/eft/common/tables/IBotCore";
|
||||||
|
import { Difficulty } from "../models/eft/common/tables/IBotType";
|
||||||
|
import { IBotConfig } from "../models/spt/config/IBotConfig";
|
||||||
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
|
import { BotGenerationCacheService } from "../services/BotGenerationCacheService";
|
||||||
|
import { LocalisationService } from "../services/LocalisationService";
|
||||||
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
|
export declare class BotController {
|
||||||
|
protected logger: ILogger;
|
||||||
|
protected databaseServer: DatabaseServer;
|
||||||
|
protected botGenerator: BotGenerator;
|
||||||
|
protected botHelper: BotHelper;
|
||||||
|
protected botDifficultyHelper: BotDifficultyHelper;
|
||||||
|
protected botGenerationCacheService: BotGenerationCacheService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
|
protected weightedRandomHelper: WeightedRandomHelper;
|
||||||
|
protected profileHelper: ProfileHelper;
|
||||||
|
protected configServer: ConfigServer;
|
||||||
|
protected applicationContext: ApplicationContext;
|
||||||
|
protected jsonUtil: JsonUtil;
|
||||||
|
protected botConfig: IBotConfig;
|
||||||
|
static readonly pmcTypeLabel = "PMC";
|
||||||
|
constructor(logger: ILogger, databaseServer: DatabaseServer, botGenerator: BotGenerator, botHelper: BotHelper, botDifficultyHelper: BotDifficultyHelper, botGenerationCacheService: BotGenerationCacheService, localisationService: LocalisationService, weightedRandomHelper: WeightedRandomHelper, profileHelper: ProfileHelper, configServer: ConfigServer, applicationContext: ApplicationContext, jsonUtil: JsonUtil);
|
||||||
|
/**
|
||||||
|
* Return the number of bot loadout varieties to be generated
|
||||||
|
* @param type bot Type we want the loadout gen count for
|
||||||
|
* @returns number of bots to generate
|
||||||
|
*/
|
||||||
|
getBotPresetGenerationLimit(type: string): number;
|
||||||
|
/**
|
||||||
|
* Get the core.json difficulty settings from database\bots
|
||||||
|
* @returns IBotCore
|
||||||
|
*/
|
||||||
|
getBotCoreDifficulty(): IBotCore;
|
||||||
|
/**
|
||||||
|
* Get bot difficulty settings
|
||||||
|
* adjust PMC settings to ensure they engage the correct bot types
|
||||||
|
* @param type what bot the server is requesting settings for
|
||||||
|
* @param difficulty difficulty level server requested settings for
|
||||||
|
* @returns Difficulty object
|
||||||
|
*/
|
||||||
|
getBotDifficulty(type: string, difficulty: string): Difficulty;
|
||||||
|
/**
|
||||||
|
* Generate bot profiles and store in cache
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @param info bot generation request info
|
||||||
|
* @returns IBotBase array
|
||||||
|
*/
|
||||||
|
generate(sessionId: string, info: IGenerateBotsRequestData): IBotBase[];
|
||||||
|
/**
|
||||||
|
* Get the difficulty passed in, if its not "asoline", get selected difficulty from config
|
||||||
|
* @param requestedDifficulty
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getPMCDifficulty(requestedDifficulty: string): string;
|
||||||
|
/**
|
||||||
|
* Get the max number of bots allowed on a map
|
||||||
|
* Looks up location player is entering when getting cap value
|
||||||
|
* @returns cap number
|
||||||
|
*/
|
||||||
|
getBotCap(): number;
|
||||||
|
getPmcBotTypes(): Record<string, Record<string, Record<string, number>>>;
|
||||||
|
}
|
24
Live/CWX_DebugTool/types/controllers/CustomizationController.d.ts
vendored
Normal file
24
Live/CWX_DebugTool/types/controllers/CustomizationController.d.ts
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { ISuit } from "../models/eft/common/tables/ITrader";
|
||||||
|
import { IBuyClothingRequestData } from "../models/eft/customization/IBuyClothingRequestData";
|
||||||
|
import { IWearClothingRequestData } from "../models/eft/customization/IWearClothingRequestData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
|
import { EventOutputHolder } from "../routers/EventOutputHolder";
|
||||||
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
|
import { LocalisationService } from "../services/LocalisationService";
|
||||||
|
export declare class CustomizationController {
|
||||||
|
protected logger: ILogger;
|
||||||
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
|
protected databaseServer: DatabaseServer;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
|
protected profileHelper: ProfileHelper;
|
||||||
|
constructor(logger: ILogger, eventOutputHolder: EventOutputHolder, databaseServer: DatabaseServer, saveServer: SaveServer, localisationService: LocalisationService, profileHelper: ProfileHelper);
|
||||||
|
getTraderSuits(traderID: string, sessionID: string): ISuit[];
|
||||||
|
wearClothing(pmcData: IPmcData, body: IWearClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
buyClothing(pmcData: IPmcData, body: IBuyClothingRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
protected getAllTraderSuits(sessionID: string): ISuit[];
|
||||||
|
}
|
78
Live/CWX_DebugTool/types/controllers/DialogueController.d.ts
vendored
Normal file
78
Live/CWX_DebugTool/types/controllers/DialogueController.d.ts
vendored
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
import { DialogueHelper } from "../helpers/DialogueHelper";
|
||||||
|
import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse";
|
||||||
|
import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse";
|
||||||
|
import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData";
|
||||||
|
import { DialogueInfo, Message } from "../models/eft/profile/IAkiProfile";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
|
export declare class DialogueController {
|
||||||
|
protected saveServer: SaveServer;
|
||||||
|
protected timeUtil: TimeUtil;
|
||||||
|
protected dialogueHelper: DialogueHelper;
|
||||||
|
constructor(saveServer: SaveServer, timeUtil: TimeUtil, dialogueHelper: DialogueHelper);
|
||||||
|
update(): void;
|
||||||
|
getFriendList(sessionID: string): IGetFriendListDataResponse;
|
||||||
|
/**
|
||||||
|
* Create array holding trader dialogs and mail interactions with player
|
||||||
|
* Set the content of the dialogue on the list tab.
|
||||||
|
* @param sessionID Session Id
|
||||||
|
* @returns array of dialogs
|
||||||
|
*/
|
||||||
|
generateDialogueList(sessionID: string): DialogueInfo[];
|
||||||
|
/**
|
||||||
|
* Get the content of a dialogue
|
||||||
|
* @param dialogueID Dialog id
|
||||||
|
* @param sessionID Session Id
|
||||||
|
* @returns DialogueInfo
|
||||||
|
*/
|
||||||
|
getDialogueInfo(dialogueID: string, sessionID: string): DialogueInfo;
|
||||||
|
/**
|
||||||
|
* Set the content of the dialogue on the details panel, showing all the messages
|
||||||
|
* for the specified dialogue.
|
||||||
|
* @param dialogueID Dialog id
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns IGetMailDialogViewResponseData object
|
||||||
|
*/
|
||||||
|
generateDialogueView(dialogueID: string, sessionID: string): IGetMailDialogViewResponseData;
|
||||||
|
/**
|
||||||
|
* Get a count of messages with attachments from a particular dialog
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @param dialogueID Dialog id
|
||||||
|
* @returns Count of messages with attachments
|
||||||
|
*/
|
||||||
|
protected getUnreadMessagesWithAttachmentsCount(sessionID: string, dialogueID: string): number;
|
||||||
|
/**
|
||||||
|
* Does array have messages with uncollected rewards (includes expired rewards)
|
||||||
|
* @param messages Messages to check
|
||||||
|
* @returns true if uncollected rewards found
|
||||||
|
*/
|
||||||
|
protected messagesHaveUncollectedRewards(messages: Message[]): boolean;
|
||||||
|
removeDialogue(dialogueID: string, sessionID: string): void;
|
||||||
|
setDialoguePin(dialogueID: string, shouldPin: boolean, sessionID: string): void;
|
||||||
|
setRead(dialogueIDs: string[], sessionID: string): void;
|
||||||
|
/**
|
||||||
|
* Get all uncollected items attached to mail in a particular dialog
|
||||||
|
* @param dialogueID Dialog to get mail attachments from
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getAllAttachments(dialogueID: string, sessionID: string): IGetAllAttachmentsResponse;
|
||||||
|
/**
|
||||||
|
* Get messages from a specific dialog that have items not expired
|
||||||
|
* @param sessionId Session id
|
||||||
|
* @param dialogueId Dialog to get mail attachments from
|
||||||
|
* @returns Message array
|
||||||
|
*/
|
||||||
|
protected getActiveMessagesFromDialog(sessionId: string, dialogueId: string): Message[];
|
||||||
|
/**
|
||||||
|
* Return array of messages with uncollected items (includes expired)
|
||||||
|
* @param messages Messages to parse
|
||||||
|
* @returns messages with items to collect
|
||||||
|
*/
|
||||||
|
protected getMessagesWithAttachments(messages: Message[]): Message[];
|
||||||
|
/**
|
||||||
|
* Delete expired items. triggers when updating traders.
|
||||||
|
* @param sessionID Session id
|
||||||
|
*/
|
||||||
|
protected removeExpiredItems(sessionID: string): void;
|
||||||
|
}
|
43
Live/CWX_DebugTool/types/controllers/GameController.d.ts
vendored
Normal file
43
Live/CWX_DebugTool/types/controllers/GameController.d.ts
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
import { ApplicationContext } from "../context/ApplicationContext";
|
||||||
|
import { HttpServerHelper } from "../helpers/HttpServerHelper";
|
||||||
|
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||||
|
import { IEmptyRequestData } from "../models/eft/common/IEmptyRequestData";
|
||||||
|
import { ICheckVersionResponse } from "../models/eft/game/ICheckVersionResponse";
|
||||||
|
import { IGameConfigResponse } from "../models/eft/game/IGameConfigResponse";
|
||||||
|
import { IServerDetails } from "../models/eft/game/IServerDetails";
|
||||||
|
import { IAkiProfile } from "../models/eft/profile/IAkiProfile";
|
||||||
|
import { ICoreConfig } from "../models/spt/config/ICoreConfig";
|
||||||
|
import { IHttpConfig } from "../models/spt/config/IHttpConfig";
|
||||||
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
|
import { LocalisationService } from "../services/LocalisationService";
|
||||||
|
import { ProfileFixerService } from "../services/ProfileFixerService";
|
||||||
|
import { SeasonalEventService } from "../services/SeasonalEventService";
|
||||||
|
export declare class GameController {
|
||||||
|
protected logger: ILogger;
|
||||||
|
protected databaseServer: DatabaseServer;
|
||||||
|
protected httpServerHelper: HttpServerHelper;
|
||||||
|
protected profileHelper: ProfileHelper;
|
||||||
|
protected profileFixerService: ProfileFixerService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected applicationContext: ApplicationContext;
|
||||||
|
protected configServer: ConfigServer;
|
||||||
|
protected httpConfig: IHttpConfig;
|
||||||
|
protected coreConfig: ICoreConfig;
|
||||||
|
constructor(logger: ILogger, databaseServer: DatabaseServer, httpServerHelper: HttpServerHelper, profileHelper: ProfileHelper, profileFixerService: ProfileFixerService, localisationService: LocalisationService, seasonalEventService: SeasonalEventService, applicationContext: ApplicationContext, configServer: ConfigServer);
|
||||||
|
gameStart(_url: string, _info: IEmptyRequestData, sessionID: string, startTimeStampMS: number): void;
|
||||||
|
/**
|
||||||
|
* Blank out the "test" mail message from prapor
|
||||||
|
*/
|
||||||
|
protected removePraporTestMessage(): void;
|
||||||
|
/**
|
||||||
|
* Make non-trigger-spawned raiders spawn earlier + always
|
||||||
|
*/
|
||||||
|
protected adjustLabsRaiderSpawnRate(): void;
|
||||||
|
protected logProfileDetails(fullProfile: IAkiProfile): void;
|
||||||
|
getGameConfig(sessionID: string): IGameConfigResponse;
|
||||||
|
getServer(): IServerDetails[];
|
||||||
|
getValidGameVersion(): ICheckVersionResponse;
|
||||||
|
}
|
8
Live/CWX_DebugTool/types/controllers/HandbookController.d.ts
vendored
Normal file
8
Live/CWX_DebugTool/types/controllers/HandbookController.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { HandbookHelper } from "../helpers/HandbookHelper";
|
||||||
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
|
export declare class HandbookController {
|
||||||
|
protected databaseServer: DatabaseServer;
|
||||||
|
protected handbookHelper: HandbookHelper;
|
||||||
|
constructor(databaseServer: DatabaseServer, handbookHelper: HandbookHelper);
|
||||||
|
load(): void;
|
||||||
|
}
|
48
Live/CWX_DebugTool/types/controllers/HealthController.d.ts
vendored
Normal file
48
Live/CWX_DebugTool/types/controllers/HealthController.d.ts
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { HealthHelper } from "../helpers/HealthHelper";
|
||||||
|
import { InventoryHelper } from "../helpers/InventoryHelper";
|
||||||
|
import { ItemHelper } from "../helpers/ItemHelper";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { IHealthTreatmentRequestData } from "../models/eft/health/IHealthTreatmentRequestData";
|
||||||
|
import { IOffraidEatRequestData } from "../models/eft/health/IOffraidEatRequestData";
|
||||||
|
import { IOffraidHealRequestData } from "../models/eft/health/IOffraidHealRequestData";
|
||||||
|
import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
|
import { EventOutputHolder } from "../routers/EventOutputHolder";
|
||||||
|
import { LocalisationService } from "../services/LocalisationService";
|
||||||
|
import { PaymentService } from "../services/PaymentService";
|
||||||
|
export declare class HealthController {
|
||||||
|
protected logger: ILogger;
|
||||||
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
|
protected itemHelper: ItemHelper;
|
||||||
|
protected paymentService: PaymentService;
|
||||||
|
protected inventoryHelper: InventoryHelper;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
|
protected healthHelper: HealthHelper;
|
||||||
|
constructor(logger: ILogger, eventOutputHolder: EventOutputHolder, itemHelper: ItemHelper, paymentService: PaymentService, inventoryHelper: InventoryHelper, localisationService: LocalisationService, healthHelper: HealthHelper);
|
||||||
|
/**
|
||||||
|
* stores in-raid player health
|
||||||
|
* @param pmcData Player profile
|
||||||
|
* @param info Request data
|
||||||
|
* @param sessionID
|
||||||
|
* @param addEffects Should effects found be added or removed from profile
|
||||||
|
*/
|
||||||
|
saveVitality(pmcData: IPmcData, info: ISyncHealthRequestData, sessionID: string, addEffects?: boolean): void;
|
||||||
|
/**
|
||||||
|
* When healing in menu
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param sessionID
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
offraidHeal(pmcData: IPmcData, body: IOffraidHealRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
offraidEat(pmcData: IPmcData, body: IOffraidEatRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Occurs on post-raid healing page
|
||||||
|
* @param pmcData player profile
|
||||||
|
* @param info Request data from client
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
healthTreatment(pmcData: IPmcData, info: IHealthTreatmentRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
}
|
106
Live/CWX_DebugTool/types/controllers/HideoutController.d.ts
vendored
Normal file
106
Live/CWX_DebugTool/types/controllers/HideoutController.d.ts
vendored
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
import { ScavCaseRewardGenerator } from "../generators/ScavCaseRewardGenerator";
|
||||||
|
import { HideoutHelper } from "../helpers/HideoutHelper";
|
||||||
|
import { InventoryHelper } from "../helpers/InventoryHelper";
|
||||||
|
import { PaymentHelper } from "../helpers/PaymentHelper";
|
||||||
|
import { PresetHelper } from "../helpers/PresetHelper";
|
||||||
|
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { HideoutArea, Product } from "../models/eft/common/tables/IBotBase";
|
||||||
|
import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData";
|
||||||
|
import { IHideoutContinousProductionStartRequestData } from "../models/eft/hideout/IHideoutContinousProductionStartRequestData";
|
||||||
|
import { IHideoutProduction } from "../models/eft/hideout/IHideoutProduction";
|
||||||
|
import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData";
|
||||||
|
import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData";
|
||||||
|
import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData";
|
||||||
|
import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData";
|
||||||
|
import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData";
|
||||||
|
import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData";
|
||||||
|
import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData";
|
||||||
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
||||||
|
import { IHideoutConfig } from "../models/spt/config/IHideoutConfig";
|
||||||
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
|
import { EventOutputHolder } from "../routers/EventOutputHolder";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
|
import { LocalisationService } from "../services/LocalisationService";
|
||||||
|
import { PlayerService } from "../services/PlayerService";
|
||||||
|
import { HashUtil } from "../utils/HashUtil";
|
||||||
|
import { HttpResponseUtil } from "../utils/HttpResponseUtil";
|
||||||
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
|
import { RandomUtil } from "../utils/RandomUtil";
|
||||||
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
|
export declare class HideoutController {
|
||||||
|
protected logger: ILogger;
|
||||||
|
protected hashUtil: HashUtil;
|
||||||
|
protected timeUtil: TimeUtil;
|
||||||
|
protected databaseServer: DatabaseServer;
|
||||||
|
protected randomUtil: RandomUtil;
|
||||||
|
protected inventoryHelper: InventoryHelper;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
|
protected playerService: PlayerService;
|
||||||
|
protected presetHelper: PresetHelper;
|
||||||
|
protected paymentHelper: PaymentHelper;
|
||||||
|
protected eventOutputHolder: EventOutputHolder;
|
||||||
|
protected httpResponse: HttpResponseUtil;
|
||||||
|
protected profileHelper: ProfileHelper;
|
||||||
|
protected hideoutHelper: HideoutHelper;
|
||||||
|
protected scavCaseRewardGenerator: ScavCaseRewardGenerator;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
|
protected configServer: ConfigServer;
|
||||||
|
protected jsonUtil: JsonUtil;
|
||||||
|
protected static nameBackendCountersCrafting: string;
|
||||||
|
protected hideoutConfig: IHideoutConfig;
|
||||||
|
constructor(logger: ILogger, hashUtil: HashUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, randomUtil: RandomUtil, inventoryHelper: InventoryHelper, saveServer: SaveServer, playerService: PlayerService, presetHelper: PresetHelper, paymentHelper: PaymentHelper, eventOutputHolder: EventOutputHolder, httpResponse: HttpResponseUtil, profileHelper: ProfileHelper, hideoutHelper: HideoutHelper, scavCaseRewardGenerator: ScavCaseRewardGenerator, localisationService: LocalisationService, configServer: ConfigServer, jsonUtil: JsonUtil);
|
||||||
|
upgrade(pmcData: IPmcData, body: IHideoutUpgradeRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
upgradeComplete(pmcData: IPmcData, body: HideoutUpgradeCompleteRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Create item in hideout slot item array, remove item from player inventory
|
||||||
|
* @param pmcData Profile data
|
||||||
|
* @param addItemToHideoutRequest reqeust from client to place item in area slot
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns IItemEventRouterResponse object
|
||||||
|
*/
|
||||||
|
putItemsInAreaSlots(pmcData: IPmcData, addItemToHideoutRequest: IHideoutPutItemInRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
takeItemsFromAreaSlots(pmcData: IPmcData, body: IHideoutTakeItemOutRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Find resource item in hideout area, add copy to player inventory, remove Item from hideout slot
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @param pmcData Profile to update
|
||||||
|
* @param removeResourceRequest client request
|
||||||
|
* @param output response to send to client
|
||||||
|
* @param hideoutArea Area fuel is being removed from
|
||||||
|
* @returns IItemEventRouterResponse response
|
||||||
|
*/
|
||||||
|
protected removeResourceFromArea(sessionID: string, pmcData: IPmcData, removeResourceRequest: IHideoutTakeItemOutRequestData, output: IItemEventRouterResponse, hideoutArea: HideoutArea): IItemEventRouterResponse;
|
||||||
|
toggleArea(pmcData: IPmcData, body: IHideoutToggleAreaRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
singleProductionStart(pmcData: IPmcData, body: IHideoutSingleProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handles event after clicking 'start' on the scav case hideout page
|
||||||
|
* @param pmcData player profile
|
||||||
|
* @param body client request object
|
||||||
|
* @param sessionID session id
|
||||||
|
* @returns item event router response
|
||||||
|
*/
|
||||||
|
scavCaseProductionStart(pmcData: IPmcData, body: IHideoutScavCaseStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Add generated scav case rewards to player profile
|
||||||
|
* @param pmcData player profile to add rewards to
|
||||||
|
* @param rewards reward items to add to profile
|
||||||
|
*/
|
||||||
|
protected addScavCaseRewardsToProfile(pmcData: IPmcData, rewards: Product[]): void;
|
||||||
|
continuousProductionStart(pmcData: IPmcData, body: IHideoutContinousProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
takeProduction(pmcData: IPmcData, body: IHideoutTakeProductionRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
protected handleRecipie(sessionID: string, recipe: IHideoutProduction, pmcData: IPmcData, body: IHideoutTakeProductionRequestData, output: IItemEventRouterResponse): IItemEventRouterResponse;
|
||||||
|
/**
|
||||||
|
* Handles giving rewards stored in player profile to player after clicking 'get rewards'
|
||||||
|
* @param sessionID
|
||||||
|
* @param pmcData
|
||||||
|
* @param body
|
||||||
|
* @param output
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
protected handleScavCase(sessionID: string, pmcData: IPmcData, body: IHideoutTakeProductionRequestData, output: IItemEventRouterResponse): IItemEventRouterResponse;
|
||||||
|
registerProduction(pmcData: IPmcData, body: IHideoutSingleProductionStartRequestData | IHideoutContinousProductionStartRequestData, sessionID: string): IItemEventRouterResponse;
|
||||||
|
update(): void;
|
||||||
|
}
|
130
Live/CWX_DebugTool/types/controllers/InraidController.d.ts
vendored
Normal file
130
Live/CWX_DebugTool/types/controllers/InraidController.d.ts
vendored
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
import { PlayerScavGenerator } from "../generators/PlayerScavGenerator";
|
||||||
|
import { HealthHelper } from "../helpers/HealthHelper";
|
||||||
|
import { InRaidHelper } from "../helpers/InRaidHelper";
|
||||||
|
import { ItemHelper } from "../helpers/ItemHelper";
|
||||||
|
import { ProfileHelper } from "../helpers/ProfileHelper";
|
||||||
|
import { QuestHelper } from "../helpers/QuestHelper";
|
||||||
|
import { TraderHelper } from "../helpers/TraderHelper";
|
||||||
|
import { IPmcData } from "../models/eft/common/IPmcData";
|
||||||
|
import { Item } from "../models/eft/common/tables/IItem";
|
||||||
|
import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData";
|
||||||
|
import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData";
|
||||||
|
import { IAirdropConfig } from "../models/spt/config/IAirdropConfig";
|
||||||
|
import { IInRaidConfig } from "../models/spt/config/IInRaidConfig";
|
||||||
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||||||
|
import { ConfigServer } from "../servers/ConfigServer";
|
||||||
|
import { DatabaseServer } from "../servers/DatabaseServer";
|
||||||
|
import { SaveServer } from "../servers/SaveServer";
|
||||||
|
import { InsuranceService } from "../services/InsuranceService";
|
||||||
|
import { JsonUtil } from "../utils/JsonUtil";
|
||||||
|
import { TimeUtil } from "../utils/TimeUtil";
|
||||||
|
/**
|
||||||
|
* Logic for handling In Raid callbacks
|
||||||
|
*/
|
||||||
|
export declare class InraidController {
|
||||||
|
protected logger: ILogger;
|
||||||
|
protected saveServer: SaveServer;
|
||||||
|
protected jsonUtil: JsonUtil;
|
||||||
|
protected timeUtil: TimeUtil;
|
||||||
|
protected databaseServer: DatabaseServer;
|
||||||
|
protected questHelper: QuestHelper;
|
||||||
|
protected itemHelper: ItemHelper;
|
||||||
|
protected profileHelper: ProfileHelper;
|
||||||
|
protected playerScavGenerator: PlayerScavGenerator;
|
||||||
|
protected healthHelper: HealthHelper;
|
||||||
|
protected traderHelper: TraderHelper;
|
||||||
|
protected insuranceService: InsuranceService;
|
||||||
|
protected inRaidHelper: InRaidHelper;
|
||||||
|
protected configServer: ConfigServer;
|
||||||
|
protected airdropConfig: IAirdropConfig;
|
||||||
|
protected inraidConfig: IInRaidConfig;
|
||||||
|
constructor(logger: ILogger, saveServer: SaveServer, jsonUtil: JsonUtil, timeUtil: TimeUtil, databaseServer: DatabaseServer, questHelper: QuestHelper, itemHelper: ItemHelper, profileHelper: ProfileHelper, playerScavGenerator: PlayerScavGenerator, healthHelper: HealthHelper, traderHelper: TraderHelper, insuranceService: InsuranceService, inRaidHelper: InRaidHelper, configServer: ConfigServer);
|
||||||
|
/**
|
||||||
|
* Save locationid to active profiles inraid object
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @param info Register player request
|
||||||
|
*/
|
||||||
|
addPlayer(sessionID: string, info: IRegisterPlayerRequestData): void;
|
||||||
|
/**
|
||||||
|
* Save profile state to disk
|
||||||
|
* Handles pmc/pscav
|
||||||
|
* @param offraidData post-raid request data
|
||||||
|
* @param sessionID Session id
|
||||||
|
*/
|
||||||
|
savePostRaidProgress(offraidData: ISaveProgressRequestData, sessionID: string): void;
|
||||||
|
/**
|
||||||
|
* Handle updating player profile post-pmc raid
|
||||||
|
* @param sessionID session id
|
||||||
|
* @param offraidData post-raid data
|
||||||
|
*/
|
||||||
|
protected savePmcProgress(sessionID: string, offraidData: ISaveProgressRequestData): void;
|
||||||
|
/**
|
||||||
|
* Make changes to pmc profile after they left raid dead,
|
||||||
|
* alter bodypart hp, handle insurance, delete inventory items, remove carried quest items
|
||||||
|
* @param postRaidSaveRequest post-raid save request
|
||||||
|
* @param pmcData pmc profile
|
||||||
|
* @param insuranceEnabled is insurance enabled
|
||||||
|
* @param preRaidGear gear player had before raid
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @returns Updated profile object
|
||||||
|
*/
|
||||||
|
protected performPostRaidActionsWhenDead(postRaidSaveRequest: ISaveProgressRequestData, pmcData: IPmcData, insuranceEnabled: boolean, preRaidGear: Item[], sessionID: string): IPmcData;
|
||||||
|
/**
|
||||||
|
* Adjust player characters bodypart hp if they left raid early
|
||||||
|
* @param postRaidSaveRequest post raid data
|
||||||
|
* @param pmcData player profile
|
||||||
|
*/
|
||||||
|
protected updatePmcHealthPostRaid(postRaidSaveRequest: ISaveProgressRequestData, pmcData: IPmcData): void;
|
||||||
|
/**
|
||||||
|
* Reduce body part hp to % of max
|
||||||
|
* @param pmcData profile to edit
|
||||||
|
* @param multipler multipler to apply to max health
|
||||||
|
*/
|
||||||
|
protected reducePmcHealthToPercent(pmcData: IPmcData, multipler: number): void;
|
||||||
|
/**
|
||||||
|
* Handle updating the profile post-pscav raid
|
||||||
|
* @param sessionID session id
|
||||||
|
* @param offraidData post-raid data of raid
|
||||||
|
*/
|
||||||
|
protected savePlayerScavProgress(sessionID: string, offraidData: ISaveProgressRequestData): void;
|
||||||
|
/**
|
||||||
|
* Is the player dead after a raid - dead is anything other than "survived" / "runner"
|
||||||
|
* @param statusOnExit exit value from offraidData object
|
||||||
|
* @returns true if dead
|
||||||
|
*/
|
||||||
|
protected isPlayerDead(statusOnExit: string): boolean;
|
||||||
|
/**
|
||||||
|
* Mark inventory items as FiR if player survived raid, otherwise remove FiR from them
|
||||||
|
* @param offraidData Save Progress Request
|
||||||
|
* @param pmcData player profile
|
||||||
|
* @param isPlayerScav Was the player a pScav
|
||||||
|
*/
|
||||||
|
protected markOrRemoveFoundInRaidItems(offraidData: ISaveProgressRequestData, pmcData: IPmcData, isPlayerScav: boolean): void;
|
||||||
|
/**
|
||||||
|
* Update profile after player completes scav raid
|
||||||
|
* @param scavData Scav profile
|
||||||
|
* @param sessionID Session id
|
||||||
|
* @param offraidData Post-raid save request
|
||||||
|
* @param pmcData Pmc profile
|
||||||
|
* @param isDead Is player dead
|
||||||
|
*/
|
||||||
|
protected handlePostRaidPlayerScavProcess(scavData: IPmcData, sessionID: string, offraidData: ISaveProgressRequestData, pmcData: IPmcData, isDead: boolean): void;
|
||||||
|
/**
|
||||||
|
* Update profile with scav karma values based on in-raid actions
|
||||||
|
* @param pmcData Pmc profile
|
||||||
|
* @param offraidData Post-raid save request
|
||||||
|
* @param scavData Scav profile
|
||||||
|
* @param sessionID Session id
|
||||||
|
*/
|
||||||
|
protected handlePostRaidPlayerScavKarmaChanges(pmcData: IPmcData, offraidData: ISaveProgressRequestData, scavData: IPmcData, sessionID: string): void;
|
||||||
|
/**
|
||||||
|
* Get the inraid config from configs/inraid.json
|
||||||
|
* @returns InRaid Config
|
||||||
|
*/
|
||||||
|
getInraidConfig(): IInRaidConfig;
|
||||||
|
/**
|
||||||
|
* Get airdrop config from configs/airdrop.json
|
||||||
|
* @returns Airdrop config
|
||||||
|
*/
|
||||||
|
getAirdropConfig(): IAirdropConfig;
|
||||||
|
}
|
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