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 { IPmcData } from "@spt/models/eft/common/IPmcData";
|
||||||
import { IBotHideoutArea, IProduct, IScavCase, ITaskConditionCounter } from "@spt/models/eft/common/tables/IBotBase";
|
import { IBotHideoutArea, IProduct, IScavCase, ITaskConditionCounter } from "@spt/models/eft/common/tables/IBotBase";
|
||||||
import { IItem } from "@spt/models/eft/common/tables/IItem";
|
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 { IHandleQTEEventRequestData } from "@spt/models/eft/hideout/IHandleQTEEventRequestData";
|
||||||
import { IHideoutArea, Stage } from "@spt/models/eft/hideout/IHideoutArea";
|
import { IHideoutArea, Stage } from "@spt/models/eft/hideout/IHideoutArea";
|
||||||
import { IHideoutCancelProductionRequestData } from "@spt/models/eft/hideout/IHideoutCancelProductionRequestData";
|
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 { IHideoutTakeItemOutRequestData } from "@spt/models/eft/hideout/IHideoutTakeItemOutRequestData";
|
||||||
import { IHideoutTakeProductionRequestData } from "@spt/models/eft/hideout/IHideoutTakeProductionRequestData";
|
import { IHideoutTakeProductionRequestData } from "@spt/models/eft/hideout/IHideoutTakeProductionRequestData";
|
||||||
import { IHideoutToggleAreaRequestData } from "@spt/models/eft/hideout/IHideoutToggleAreaRequestData";
|
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 { IHideoutUpgradeRequestData } from "@spt/models/eft/hideout/IHideoutUpgradeRequestData";
|
||||||
import { IQteData, IQteResult } from "@spt/models/eft/hideout/IQteData";
|
import { IQteData, IQteResult } from "@spt/models/eft/hideout/IQteData";
|
||||||
import { IRecordShootingRangePoints } from "@spt/models/eft/hideout/IRecordShootingRangePoints";
|
import { IRecordShootingRangePoints } from "@spt/models/eft/hideout/IRecordShootingRangePoints";
|
||||||
@ -171,7 +171,7 @@ export class HideoutController {
|
|||||||
*/
|
*/
|
||||||
public upgradeComplete(
|
public upgradeComplete(
|
||||||
pmcData: IPmcData,
|
pmcData: IPmcData,
|
||||||
request: HideoutUpgradeCompleteRequestData,
|
request: IHideoutUpgradeCompleteRequestData,
|
||||||
sessionID: string,
|
sessionID: string,
|
||||||
output: IItemEventRouterResponse,
|
output: IItemEventRouterResponse,
|
||||||
): void {
|
): void {
|
||||||
|
@ -12,8 +12,8 @@ import { IItem } from "@spt/models/eft/common/tables/IItem";
|
|||||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||||
import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
|
import { ConfigTypes } from "@spt/models/enums/ConfigTypes";
|
||||||
import { EquipmentSlots } from "@spt/models/enums/EquipmentSlots";
|
import { EquipmentSlots } from "@spt/models/enums/EquipmentSlots";
|
||||||
import { GenerateWeaponResult } from "@spt/models/spt/bots/GenerateWeaponResult";
|
|
||||||
import { IGenerateWeaponRequest } from "@spt/models/spt/bots/IGenerateWeaponRequest";
|
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 { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { IPmcConfig } from "@spt/models/spt/config/IPmcConfig";
|
import { IPmcConfig } from "@spt/models/spt/config/IPmcConfig";
|
||||||
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
import { IRepairConfig } from "@spt/models/spt/config/IRepairConfig";
|
||||||
@ -77,7 +77,7 @@ export class BotWeaponGenerator {
|
|||||||
botRole: string,
|
botRole: string,
|
||||||
isPmc: boolean,
|
isPmc: boolean,
|
||||||
botLevel: number,
|
botLevel: number,
|
||||||
): GenerateWeaponResult {
|
): IGenerateWeaponResult {
|
||||||
const weaponTpl = this.pickWeightedWeaponTplFromPool(equipmentSlot, botTemplateInventory);
|
const weaponTpl = this.pickWeightedWeaponTplFromPool(equipmentSlot, botTemplateInventory);
|
||||||
return this.generateWeaponByTpl(
|
return this.generateWeaponByTpl(
|
||||||
sessionId,
|
sessionId,
|
||||||
@ -124,7 +124,7 @@ export class BotWeaponGenerator {
|
|||||||
botRole: string,
|
botRole: string,
|
||||||
isPmc: boolean,
|
isPmc: boolean,
|
||||||
botLevel: number,
|
botLevel: number,
|
||||||
): GenerateWeaponResult {
|
): IGenerateWeaponResult {
|
||||||
const modPool = botTemplateInventory.mods;
|
const modPool = botTemplateInventory.mods;
|
||||||
const weaponItemTemplate = this.itemHelper.getItem(weaponTpl)[1];
|
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
|
* @param botRole The bot type we're getting generating extra mags for
|
||||||
*/
|
*/
|
||||||
public addExtraMagazinesToInventory(
|
public addExtraMagazinesToInventory(
|
||||||
generatedWeaponResult: GenerateWeaponResult,
|
generatedWeaponResult: IGenerateWeaponResult,
|
||||||
magWeights: IGenerationData,
|
magWeights: IGenerationData,
|
||||||
inventory: PmcInventory,
|
inventory: PmcInventory,
|
||||||
botRole: string,
|
botRole: string,
|
||||||
@ -438,7 +438,7 @@ export class BotWeaponGenerator {
|
|||||||
*/
|
*/
|
||||||
protected addUbglGrenadesToBotInventory(
|
protected addUbglGrenadesToBotInventory(
|
||||||
weaponMods: IItem[],
|
weaponMods: IItem[],
|
||||||
generatedWeaponResult: GenerateWeaponResult,
|
generatedWeaponResult: IGenerateWeaponResult,
|
||||||
inventory: PmcInventory,
|
inventory: PmcInventory,
|
||||||
): void {
|
): void {
|
||||||
// Find ubgl mod item + get details of it from db
|
// 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 {
|
export interface IAirdropLootResult {
|
||||||
dropType: string;
|
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 { IItem } from "@spt/models/eft/common/tables/IItem";
|
||||||
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
|
||||||
|
|
||||||
export class GenerateWeaponResult {
|
export interface IGenerateWeaponResult {
|
||||||
weapon: IItem[];
|
weapon: IItem[];
|
||||||
chosenAmmoTpl: string;
|
chosenAmmoTpl: string;
|
||||||
chosenUbglAmmoTpl: 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;
|
id?: string;
|
||||||
tpl: string;
|
tpl: string;
|
||||||
isPreset: boolean;
|
isPreset: boolean;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user