From 17882ddeab1590ff31c9e9f2690bb478ff653839 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 28 May 2024 10:33:29 +0100 Subject: [PATCH] Add interface for database bots object --- project/src/models/spt/bots/IBots.ts | 10 ++++++++++ project/src/models/spt/server/IDatabaseTables.ts | 6 ++---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 project/src/models/spt/bots/IBots.ts diff --git a/project/src/models/spt/bots/IBots.ts b/project/src/models/spt/bots/IBots.ts new file mode 100644 index 00000000..0a4cff07 --- /dev/null +++ b/project/src/models/spt/bots/IBots.ts @@ -0,0 +1,10 @@ +import { IBotBase } from "@spt/models/eft/common/tables/IBotBase"; +import { IBotCore } from "@spt/models/eft/common/tables/IBotCore"; +import { IBotType } from "@spt/models/eft/common/tables/IBotType"; + +export interface IBots +{ + types: Record + base: IBotBase + core: IBotCore +} diff --git a/project/src/models/spt/server/IDatabaseTables.ts b/project/src/models/spt/server/IDatabaseTables.ts index db2a7178..262b843f 100644 --- a/project/src/models/spt/server/IDatabaseTables.ts +++ b/project/src/models/spt/server/IDatabaseTables.ts @@ -1,8 +1,5 @@ import { IGlobals } from "@spt/models/eft/common/IGlobals"; import { IAchievement } from "@spt/models/eft/common/tables/IAchievement"; -import { IBotBase } from "@spt/models/eft/common/tables/IBotBase"; -import { IBotCore } from "@spt/models/eft/common/tables/IBotCore"; -import { IBotType } from "@spt/models/eft/common/tables/IBotType"; import { ICustomizationItem } from "@spt/models/eft/common/tables/ICustomizationItem"; import { IHandbookBase } from "@spt/models/eft/common/tables/IHandbookBase"; import { IMatch } from "@spt/models/eft/common/tables/IMatch"; @@ -17,6 +14,7 @@ import { IHideoutScavCase } from "@spt/models/eft/hideout/IHideoutScavCase"; import { IHideoutSettingsBase } from "@spt/models/eft/hideout/IHideoutSettingsBase"; import { IQteData } from "@spt/models/eft/hideout/IQteData"; import { IDefaultEquipmentPreset } from "@spt/models/eft/profile/ISptProfile"; +import { IBots } from "@spt/models/spt/bots/IBots"; import { ILocaleBase } from "@spt/models/spt/server/ILocaleBase"; import { ILocations } from "@spt/models/spt/server/ILocations"; import { IServerBase } from "@spt/models/spt/server/IServerBase"; @@ -24,7 +22,7 @@ import { ISettingsBase } from "@spt/models/spt/server/ISettingsBase"; export interface IDatabaseTables { - bots?: { types: Record, base: IBotBase, core: IBotCore } + bots?: IBots hideout?: { areas: IHideoutArea[] production: IHideoutProduction[]