Removed unused interfaces
Renamed Interfaces to follow correct naming system
This commit is contained in:
parent
e15ed9b7eb
commit
b0159e6427
@ -8,7 +8,6 @@ import { ProfileHelper } from "@spt/helpers/ProfileHelper";
|
||||
import { IPmcData } from "@spt/models/eft/common/IPmcData";
|
||||
import { IBotHideoutArea, IProduct, IScavCase, ITaskConditionCounter } from "@spt/models/eft/common/tables/IBotBase";
|
||||
import { IItem } from "@spt/models/eft/common/tables/IItem";
|
||||
import { HideoutUpgradeCompleteRequestData } from "@spt/models/eft/hideout/HideoutUpgradeCompleteRequestData";
|
||||
import { IHandleQTEEventRequestData } from "@spt/models/eft/hideout/IHandleQTEEventRequestData";
|
||||
import { IHideoutArea, Stage } from "@spt/models/eft/hideout/IHideoutArea";
|
||||
import { IHideoutCancelProductionRequestData } from "@spt/models/eft/hideout/IHideoutCancelProductionRequestData";
|
||||
@ -23,6 +22,7 @@ import { IHideoutSingleProductionStartRequestData } from "@spt/models/eft/hideou
|
||||
import { IHideoutTakeItemOutRequestData } from "@spt/models/eft/hideout/IHideoutTakeItemOutRequestData";
|
||||
import { IHideoutTakeProductionRequestData } from "@spt/models/eft/hideout/IHideoutTakeProductionRequestData";
|
||||
import { IHideoutToggleAreaRequestData } from "@spt/models/eft/hideout/IHideoutToggleAreaRequestData";
|
||||
import { IHideoutUpgradeCompleteRequestData } from "@spt/models/eft/hideout/IHideoutUpgradeCompleteRequestData";
|
||||
import { IHideoutUpgradeRequestData } from "@spt/models/eft/hideout/IHideoutUpgradeRequestData";
|
||||
import { IQteData, IQteResult } from "@spt/models/eft/hideout/IQteData";
|
||||
import { IRecordShootingRangePoints } from "@spt/models/eft/hideout/IRecordShootingRangePoints";
|
||||
@ -171,7 +171,7 @@ export class HideoutController {
|
||||
*/
|
||||
public upgradeComplete(
|
||||
pmcData: IPmcData,
|
||||
request: HideoutUpgradeCompleteRequestData,
|
||||
request: IHideoutUpgradeCompleteRequestData,
|
||||
sessionID: string,
|
||||
output: IItemEventRouterResponse,
|
||||
): void {
|
||||
|
@ -12,8 +12,8 @@ import { IItem } from "@spt/models/eft/common/tables/IItem";
|
||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||
import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
|
||||
import { EquipmentSlots } from "@spt/models/enums/EquipmentSlots";
|
||||
import { GenerateWeaponResult } from "@spt/models/spt/bots/GenerateWeaponResult";
|
||||
import { IGenerateWeaponRequest } from "@spt/models/spt/bots/IGenerateWeaponRequest";
|
||||
import { IGenerateWeaponResult } from "@spt/models/spt/bots/IGenerateWeaponResult";
|
||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||
import { IPmcConfig } from "@spt/models/spt/config/IPmcConfig";
|
||||
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
||||
@ -77,7 +77,7 @@ export class BotWeaponGenerator {
|
||||
botRole: string,
|
||||
isPmc: boolean,
|
||||
botLevel: number,
|
||||
): GenerateWeaponResult {
|
||||
): IGenerateWeaponResult {
|
||||
const weaponTpl = this.pickWeightedWeaponTplFromPool(equipmentSlot, botTemplateInventory);
|
||||
return this.generateWeaponByTpl(
|
||||
sessionId,
|
||||
@ -124,7 +124,7 @@ export class BotWeaponGenerator {
|
||||
botRole: string,
|
||||
isPmc: boolean,
|
||||
botLevel: number,
|
||||
): GenerateWeaponResult {
|
||||
): IGenerateWeaponResult {
|
||||
const modPool = botTemplateInventory.mods;
|
||||
const weaponItemTemplate = this.itemHelper.getItem(weaponTpl)[1];
|
||||
|
||||
@ -380,7 +380,7 @@ export class BotWeaponGenerator {
|
||||
* @param botRole The bot type we're getting generating extra mags for
|
||||
*/
|
||||
public addExtraMagazinesToInventory(
|
||||
generatedWeaponResult: GenerateWeaponResult,
|
||||
generatedWeaponResult: IGenerateWeaponResult,
|
||||
magWeights: IGenerationData,
|
||||
inventory: PmcInventory,
|
||||
botRole: string,
|
||||
@ -438,7 +438,7 @@ export class BotWeaponGenerator {
|
||||
*/
|
||||
protected addUbglGrenadesToBotInventory(
|
||||
weaponMods: IItem[],
|
||||
generatedWeaponResult: GenerateWeaponResult,
|
||||
generatedWeaponResult: IGenerateWeaponResult,
|
||||
inventory: PmcInventory,
|
||||
): void {
|
||||
// Find ubgl mod item + get details of it from db
|
||||
|
@ -1,5 +0,0 @@
|
||||
export interface HideoutUpgradeCompleteRequestData {
|
||||
Action: string;
|
||||
areaType: number;
|
||||
timestamp: number;
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
import { LootItem } from "@spt/models/spt/services/LootItem";
|
||||
import { ILootItem } from "@spt/models/spt/services/LootItem";
|
||||
|
||||
export interface IAirdropLootResult {
|
||||
dropType: string;
|
||||
loot: LootItem[];
|
||||
loot: ILootItem[];
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ import { IMods } from "@spt/models/eft/common/tables/IBotType";
|
||||
import { IItem } from "@spt/models/eft/common/tables/IItem";
|
||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||
|
||||
export class GenerateWeaponResult {
|
||||
export interface IGenerateWeaponResult {
|
||||
weapon: IItem[];
|
||||
chosenAmmoTpl: string;
|
||||
chosenUbglAmmoTpl: string;
|
@ -1,6 +0,0 @@
|
||||
import { IPreset } from "@spt/models/eft/common/IGlobals";
|
||||
|
||||
export interface CustomPreset {
|
||||
key: string;
|
||||
preset: IPreset;
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
import { ITraderAssort } from "@spt/models/eft/common/tables/ITrader";
|
||||
import { Traders } from "@spt/models/enums/Traders";
|
||||
|
||||
export interface CustomTraderAssortData {
|
||||
traderId: Traders;
|
||||
assorts: ITraderAssort;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
export class LootItem {
|
||||
export class ILootItem {
|
||||
id?: string;
|
||||
tpl: string;
|
||||
isPreset: boolean;
|
||||
|
Loading…
x
Reference in New Issue
Block a user