From 183276e8575460fbde3b92823ee22b1c31bad10a Mon Sep 17 00:00:00 2001 From: Chomp Date: Sat, 28 May 2022 09:41:19 +0100 Subject: [PATCH] Update types --- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ .../10ScopesAndTypes/types/utils/VFS.d.ts | 1 + .../types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ .../types/utils/VFS.d.ts | 1 + .../types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ TypeScript/1LogToConsole/types/utils/VFS.d.ts | 1 + .../1LogToConsole/types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ TypeScript/2EditDatabase/types/utils/VFS.d.ts | 1 + .../2EditDatabase/types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ .../3.0GetSptConfigFile/types/utils/VFS.d.ts | 1 + .../types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ .../types/utils/VFS.d.ts | 1 + .../types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ .../5ReplaceMethod/types/utils/VFS.d.ts | 1 + .../5ReplaceMethod/types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ .../types/utils/VFS.d.ts | 1 + .../types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../7OnLoadHook/types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../7OnLoadHook/types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../7OnLoadHook/types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../7OnLoadHook/types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ TypeScript/7OnLoadHook/types/utils/VFS.d.ts | 1 + .../7OnLoadHook/types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ TypeScript/8OnUpdateHook/types/utils/VFS.d.ts | 1 + .../8OnUpdateHook/types/utils/Watermark.d.ts | 2 +- .../types/controllers/BotController.d.ts | 8 +- .../types/controllers/DialogueController.d.ts | 8 +- .../types/controllers/HideoutController.d.ts | 38 ++++---- .../types/controllers/InraidController.d.ts | 16 ++-- .../controllers/InsuranceController.d.ts | 18 ++-- .../types/controllers/LauncherController.d.ts | 14 +-- .../types/controllers/QuestController.d.ts | 16 ++-- .../types/controllers/RepairController.d.ts | 18 ++-- .../RepeatableQuestController.d.ts | 3 +- .../types/controllers/WeatherController.d.ts | 2 +- .../types/generators/BotGenerator.d.ts | 14 +-- .../types/generators/BotLootGenerator.d.ts | 8 +- .../types/generators/LocationGenerator.d.ts | 16 ++-- .../generators/RagfairAssortGenerator.d.ts | 2 +- .../generators/RagfairOfferGenerator.d.ts | 20 ++-- .../types/helpers/BotGeneratorHelper.d.ts | 21 +--- .../9RouterHooks/types/helpers/BotHelper.d.ts | 4 +- .../types/helpers/DialogueHelper.d.ts | 7 +- .../types/helpers/DurabilityLimitsHelper.d.ts | 2 +- .../types/helpers/HealthHelper.d.ts | 6 +- .../types/helpers/ItemHelper.d.ts | 95 +------------------ .../types/helpers/RagfairServerHelper.d.ts | 2 +- .../types/helpers/RepairHelper.d.ts | 4 +- .../types/helpers/TraderHelper.d.ts | 14 +-- .../types/loaders/InitialModLoader.d.ts | 6 +- .../types/models/eft/common/IPmcData.d.ts | 6 +- .../models/eft/common/tables/IQuest.d.ts | 34 +++++++ .../dialog/IGetFriendListDataResponse.d.ts | 2 +- .../dialog/IGetMailDialogViewRequestData.d.ts | 2 +- .../eft/dialog/ISendMessageRequest.d.ts | 2 +- .../types/models/eft/profile/IAkiProfile.d.ts | 17 +--- .../models/eft/ragfair/IRagfairOffer.d.ts | 2 +- .../types/models/enums/BaseClasses.d.ts | 84 ++++++++++++++++ .../types/models/enums/ConfigTypes.d.ts | 18 ++++ .../types/models/enums/ELocationName.d.ts | 11 +++ .../types/models/enums/EquipmentSlots.d.ts | 16 ++++ .../types/models/enums/HideoutAreas.d.ts | 25 +++++ .../types/models/enums/MemberCategory.d.ts | 13 +++ .../types/models/enums/MessageType.d.ts | 16 ++++ .../types/models/enums/Money.d.ts | 5 + .../types/models/enums/Traders.d.ts | 10 ++ .../types/models/spt/config/IQuestConfig.d.ts | 12 +-- .../types/models/spt/mod/IMod.d.ts | 2 +- .../types/models/spt/server/IHttpServer.d.ts | 1 + .../types/routers/ImageRouter.d.ts | 7 +- .../types/servers/ConfigServer.d.ts | 20 +--- .../types/servers/HttpServer.d.ts | 1 + .../types/servers/RagfairServer.d.ts | 22 ++--- .../types/services/FenceService.d.ts | 4 +- .../types/services/RagfairPriceService.d.ts | 6 +- .../services/mod/image/imageRouteService.d.ts | 6 ++ TypeScript/9RouterHooks/types/utils/VFS.d.ts | 1 + .../9RouterHooks/types/utils/Watermark.d.ts | 2 +- 583 files changed, 4444 insertions(+), 3355 deletions(-) create mode 100644 TypeScript/10ScopesAndTypes/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/10ScopesAndTypes/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/10ScopesAndTypes/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/10ScopesAndTypes/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/10ScopesAndTypes/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/10ScopesAndTypes/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/10ScopesAndTypes/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/10ScopesAndTypes/types/models/enums/Money.d.ts create mode 100644 TypeScript/10ScopesAndTypes/types/models/enums/Traders.d.ts create mode 100644 TypeScript/10ScopesAndTypes/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/enums/Money.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/models/enums/Traders.d.ts create mode 100644 TypeScript/11BundleLoadingSample/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/enums/Money.d.ts create mode 100644 TypeScript/1LogToConsole/types/models/enums/Traders.d.ts create mode 100644 TypeScript/1LogToConsole/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/enums/Money.d.ts create mode 100644 TypeScript/2EditDatabase/types/models/enums/Traders.d.ts create mode 100644 TypeScript/2EditDatabase/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/models/enums/Money.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/models/enums/Traders.d.ts create mode 100644 TypeScript/3.0GetSptConfigFile/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/enums/Money.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/models/enums/Traders.d.ts create mode 100644 TypeScript/4UseACustomConfigFile/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/enums/Money.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/models/enums/Traders.d.ts create mode 100644 TypeScript/5ReplaceMethod/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/enums/Money.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/models/enums/Traders.d.ts create mode 100644 TypeScript/6ReferenceAnotherClass/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/enums/Money.d.ts create mode 100644 TypeScript/7OnLoadHook/types/models/enums/Traders.d.ts create mode 100644 TypeScript/7OnLoadHook/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/enums/Money.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/models/enums/Traders.d.ts create mode 100644 TypeScript/8OnUpdateHook/types/services/mod/image/imageRouteService.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/enums/BaseClasses.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/enums/ConfigTypes.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/enums/ELocationName.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/enums/EquipmentSlots.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/enums/HideoutAreas.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/enums/MemberCategory.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/enums/MessageType.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/enums/Money.d.ts create mode 100644 TypeScript/9RouterHooks/types/models/enums/Traders.d.ts create mode 100644 TypeScript/9RouterHooks/types/services/mod/image/imageRouteService.d.ts diff --git a/TypeScript/10ScopesAndTypes/types/controllers/BotController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/BotController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/DialogueController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/DialogueController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/HideoutController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/HideoutController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/InraidController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/InraidController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/InsuranceController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/InsuranceController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/LauncherController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/LauncherController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/QuestController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/QuestController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/RepairController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/RepairController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/RepeatableQuestController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/10ScopesAndTypes/types/controllers/WeatherController.d.ts b/TypeScript/10ScopesAndTypes/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/10ScopesAndTypes/types/controllers/WeatherController.d.ts +++ b/TypeScript/10ScopesAndTypes/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/10ScopesAndTypes/types/generators/BotGenerator.d.ts b/TypeScript/10ScopesAndTypes/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/10ScopesAndTypes/types/generators/BotGenerator.d.ts +++ b/TypeScript/10ScopesAndTypes/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/10ScopesAndTypes/types/generators/BotLootGenerator.d.ts b/TypeScript/10ScopesAndTypes/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/10ScopesAndTypes/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/10ScopesAndTypes/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/10ScopesAndTypes/types/generators/LocationGenerator.d.ts b/TypeScript/10ScopesAndTypes/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/10ScopesAndTypes/types/generators/LocationGenerator.d.ts +++ b/TypeScript/10ScopesAndTypes/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/10ScopesAndTypes/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/10ScopesAndTypes/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/10ScopesAndTypes/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/10ScopesAndTypes/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/10ScopesAndTypes/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/10ScopesAndTypes/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/10ScopesAndTypes/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/10ScopesAndTypes/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/10ScopesAndTypes/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/10ScopesAndTypes/types/helpers/BotHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/BotHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/10ScopesAndTypes/types/helpers/DialogueHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/10ScopesAndTypes/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/10ScopesAndTypes/types/helpers/HealthHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/HealthHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/10ScopesAndTypes/types/helpers/ItemHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/ItemHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/10ScopesAndTypes/types/helpers/RagfairServerHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/10ScopesAndTypes/types/helpers/RepairHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/RepairHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/10ScopesAndTypes/types/helpers/TraderHelper.d.ts b/TypeScript/10ScopesAndTypes/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/10ScopesAndTypes/types/helpers/TraderHelper.d.ts +++ b/TypeScript/10ScopesAndTypes/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/10ScopesAndTypes/types/loaders/InitialModLoader.d.ts b/TypeScript/10ScopesAndTypes/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/10ScopesAndTypes/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/10ScopesAndTypes/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/10ScopesAndTypes/types/models/eft/common/IPmcData.d.ts b/TypeScript/10ScopesAndTypes/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/10ScopesAndTypes/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/10ScopesAndTypes/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/10ScopesAndTypes/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/10ScopesAndTypes/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/10ScopesAndTypes/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/10ScopesAndTypes/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/10ScopesAndTypes/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/10ScopesAndTypes/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/10ScopesAndTypes/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/10ScopesAndTypes/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/10ScopesAndTypes/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/10ScopesAndTypes/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/10ScopesAndTypes/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/10ScopesAndTypes/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/10ScopesAndTypes/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/10ScopesAndTypes/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/10ScopesAndTypes/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/10ScopesAndTypes/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/10ScopesAndTypes/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/BaseClasses.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/ConfigTypes.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/ELocationName.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/EquipmentSlots.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/HideoutAreas.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/MemberCategory.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/MessageType.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/Money.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/10ScopesAndTypes/types/models/enums/Traders.d.ts b/TypeScript/10ScopesAndTypes/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/10ScopesAndTypes/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/10ScopesAndTypes/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/10ScopesAndTypes/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/10ScopesAndTypes/types/models/spt/mod/IMod.d.ts b/TypeScript/10ScopesAndTypes/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/10ScopesAndTypes/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/10ScopesAndTypes/types/models/spt/server/IHttpServer.d.ts b/TypeScript/10ScopesAndTypes/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/10ScopesAndTypes/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/10ScopesAndTypes/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/10ScopesAndTypes/types/routers/ImageRouter.d.ts b/TypeScript/10ScopesAndTypes/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/10ScopesAndTypes/types/routers/ImageRouter.d.ts +++ b/TypeScript/10ScopesAndTypes/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/10ScopesAndTypes/types/servers/ConfigServer.d.ts b/TypeScript/10ScopesAndTypes/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/10ScopesAndTypes/types/servers/ConfigServer.d.ts +++ b/TypeScript/10ScopesAndTypes/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/10ScopesAndTypes/types/servers/HttpServer.d.ts b/TypeScript/10ScopesAndTypes/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/10ScopesAndTypes/types/servers/HttpServer.d.ts +++ b/TypeScript/10ScopesAndTypes/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/10ScopesAndTypes/types/servers/RagfairServer.d.ts b/TypeScript/10ScopesAndTypes/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/10ScopesAndTypes/types/servers/RagfairServer.d.ts +++ b/TypeScript/10ScopesAndTypes/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/10ScopesAndTypes/types/services/FenceService.d.ts b/TypeScript/10ScopesAndTypes/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/10ScopesAndTypes/types/services/FenceService.d.ts +++ b/TypeScript/10ScopesAndTypes/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/10ScopesAndTypes/types/services/RagfairPriceService.d.ts b/TypeScript/10ScopesAndTypes/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/10ScopesAndTypes/types/services/RagfairPriceService.d.ts +++ b/TypeScript/10ScopesAndTypes/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/10ScopesAndTypes/types/services/mod/image/imageRouteService.d.ts b/TypeScript/10ScopesAndTypes/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/10ScopesAndTypes/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/10ScopesAndTypes/types/utils/VFS.d.ts b/TypeScript/10ScopesAndTypes/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/10ScopesAndTypes/types/utils/VFS.d.ts +++ b/TypeScript/10ScopesAndTypes/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/10ScopesAndTypes/types/utils/Watermark.d.ts b/TypeScript/10ScopesAndTypes/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/10ScopesAndTypes/types/utils/Watermark.d.ts +++ b/TypeScript/10ScopesAndTypes/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/BotController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/BotController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/DialogueController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/DialogueController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/HideoutController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/HideoutController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/InraidController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/InraidController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/InsuranceController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/InsuranceController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/LauncherController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/LauncherController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/QuestController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/QuestController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/RepairController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/RepairController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/RepeatableQuestController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/11BundleLoadingSample/types/controllers/WeatherController.d.ts b/TypeScript/11BundleLoadingSample/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/11BundleLoadingSample/types/controllers/WeatherController.d.ts +++ b/TypeScript/11BundleLoadingSample/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/11BundleLoadingSample/types/generators/BotGenerator.d.ts b/TypeScript/11BundleLoadingSample/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/11BundleLoadingSample/types/generators/BotGenerator.d.ts +++ b/TypeScript/11BundleLoadingSample/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/11BundleLoadingSample/types/generators/BotLootGenerator.d.ts b/TypeScript/11BundleLoadingSample/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/11BundleLoadingSample/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/11BundleLoadingSample/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/11BundleLoadingSample/types/generators/LocationGenerator.d.ts b/TypeScript/11BundleLoadingSample/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/11BundleLoadingSample/types/generators/LocationGenerator.d.ts +++ b/TypeScript/11BundleLoadingSample/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/11BundleLoadingSample/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/11BundleLoadingSample/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/11BundleLoadingSample/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/11BundleLoadingSample/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/11BundleLoadingSample/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/11BundleLoadingSample/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/11BundleLoadingSample/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/11BundleLoadingSample/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/11BundleLoadingSample/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/11BundleLoadingSample/types/helpers/BotHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/BotHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/11BundleLoadingSample/types/helpers/DialogueHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/11BundleLoadingSample/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/11BundleLoadingSample/types/helpers/HealthHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/HealthHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/11BundleLoadingSample/types/helpers/ItemHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/ItemHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/11BundleLoadingSample/types/helpers/RagfairServerHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/11BundleLoadingSample/types/helpers/RepairHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/RepairHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/11BundleLoadingSample/types/helpers/TraderHelper.d.ts b/TypeScript/11BundleLoadingSample/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/11BundleLoadingSample/types/helpers/TraderHelper.d.ts +++ b/TypeScript/11BundleLoadingSample/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/11BundleLoadingSample/types/loaders/InitialModLoader.d.ts b/TypeScript/11BundleLoadingSample/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/11BundleLoadingSample/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/11BundleLoadingSample/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/11BundleLoadingSample/types/models/eft/common/IPmcData.d.ts b/TypeScript/11BundleLoadingSample/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/11BundleLoadingSample/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/11BundleLoadingSample/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/11BundleLoadingSample/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/11BundleLoadingSample/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/11BundleLoadingSample/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/11BundleLoadingSample/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/11BundleLoadingSample/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/11BundleLoadingSample/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/11BundleLoadingSample/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/11BundleLoadingSample/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/11BundleLoadingSample/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/11BundleLoadingSample/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/11BundleLoadingSample/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/11BundleLoadingSample/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/11BundleLoadingSample/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/11BundleLoadingSample/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/11BundleLoadingSample/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/11BundleLoadingSample/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/11BundleLoadingSample/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/BaseClasses.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/ConfigTypes.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/ELocationName.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/EquipmentSlots.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/HideoutAreas.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/MemberCategory.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/MessageType.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/Money.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/11BundleLoadingSample/types/models/enums/Traders.d.ts b/TypeScript/11BundleLoadingSample/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/11BundleLoadingSample/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/11BundleLoadingSample/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/11BundleLoadingSample/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/11BundleLoadingSample/types/models/spt/mod/IMod.d.ts b/TypeScript/11BundleLoadingSample/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/11BundleLoadingSample/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/11BundleLoadingSample/types/models/spt/server/IHttpServer.d.ts b/TypeScript/11BundleLoadingSample/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/11BundleLoadingSample/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/11BundleLoadingSample/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/11BundleLoadingSample/types/routers/ImageRouter.d.ts b/TypeScript/11BundleLoadingSample/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/11BundleLoadingSample/types/routers/ImageRouter.d.ts +++ b/TypeScript/11BundleLoadingSample/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/11BundleLoadingSample/types/servers/ConfigServer.d.ts b/TypeScript/11BundleLoadingSample/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/11BundleLoadingSample/types/servers/ConfigServer.d.ts +++ b/TypeScript/11BundleLoadingSample/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/11BundleLoadingSample/types/servers/HttpServer.d.ts b/TypeScript/11BundleLoadingSample/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/11BundleLoadingSample/types/servers/HttpServer.d.ts +++ b/TypeScript/11BundleLoadingSample/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/11BundleLoadingSample/types/servers/RagfairServer.d.ts b/TypeScript/11BundleLoadingSample/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/11BundleLoadingSample/types/servers/RagfairServer.d.ts +++ b/TypeScript/11BundleLoadingSample/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/11BundleLoadingSample/types/services/FenceService.d.ts b/TypeScript/11BundleLoadingSample/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/11BundleLoadingSample/types/services/FenceService.d.ts +++ b/TypeScript/11BundleLoadingSample/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/11BundleLoadingSample/types/services/RagfairPriceService.d.ts b/TypeScript/11BundleLoadingSample/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/11BundleLoadingSample/types/services/RagfairPriceService.d.ts +++ b/TypeScript/11BundleLoadingSample/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/11BundleLoadingSample/types/services/mod/image/imageRouteService.d.ts b/TypeScript/11BundleLoadingSample/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/11BundleLoadingSample/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/11BundleLoadingSample/types/utils/VFS.d.ts b/TypeScript/11BundleLoadingSample/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/11BundleLoadingSample/types/utils/VFS.d.ts +++ b/TypeScript/11BundleLoadingSample/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/11BundleLoadingSample/types/utils/Watermark.d.ts b/TypeScript/11BundleLoadingSample/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/11BundleLoadingSample/types/utils/Watermark.d.ts +++ b/TypeScript/11BundleLoadingSample/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/1LogToConsole/types/controllers/BotController.d.ts b/TypeScript/1LogToConsole/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/1LogToConsole/types/controllers/BotController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/1LogToConsole/types/controllers/DialogueController.d.ts b/TypeScript/1LogToConsole/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/1LogToConsole/types/controllers/DialogueController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/1LogToConsole/types/controllers/HideoutController.d.ts b/TypeScript/1LogToConsole/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/1LogToConsole/types/controllers/HideoutController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/1LogToConsole/types/controllers/InraidController.d.ts b/TypeScript/1LogToConsole/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/1LogToConsole/types/controllers/InraidController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/1LogToConsole/types/controllers/InsuranceController.d.ts b/TypeScript/1LogToConsole/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/1LogToConsole/types/controllers/InsuranceController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/1LogToConsole/types/controllers/LauncherController.d.ts b/TypeScript/1LogToConsole/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/1LogToConsole/types/controllers/LauncherController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/1LogToConsole/types/controllers/QuestController.d.ts b/TypeScript/1LogToConsole/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/1LogToConsole/types/controllers/QuestController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/1LogToConsole/types/controllers/RepairController.d.ts b/TypeScript/1LogToConsole/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/1LogToConsole/types/controllers/RepairController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/1LogToConsole/types/controllers/RepeatableQuestController.d.ts b/TypeScript/1LogToConsole/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/1LogToConsole/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/1LogToConsole/types/controllers/WeatherController.d.ts b/TypeScript/1LogToConsole/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/1LogToConsole/types/controllers/WeatherController.d.ts +++ b/TypeScript/1LogToConsole/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/1LogToConsole/types/generators/BotGenerator.d.ts b/TypeScript/1LogToConsole/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/1LogToConsole/types/generators/BotGenerator.d.ts +++ b/TypeScript/1LogToConsole/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/1LogToConsole/types/generators/BotLootGenerator.d.ts b/TypeScript/1LogToConsole/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/1LogToConsole/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/1LogToConsole/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/1LogToConsole/types/generators/LocationGenerator.d.ts b/TypeScript/1LogToConsole/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/1LogToConsole/types/generators/LocationGenerator.d.ts +++ b/TypeScript/1LogToConsole/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/1LogToConsole/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/1LogToConsole/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/1LogToConsole/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/1LogToConsole/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/1LogToConsole/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/1LogToConsole/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/1LogToConsole/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/1LogToConsole/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/1LogToConsole/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/1LogToConsole/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/1LogToConsole/types/helpers/BotHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/1LogToConsole/types/helpers/BotHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/1LogToConsole/types/helpers/DialogueHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/1LogToConsole/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/1LogToConsole/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/1LogToConsole/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/1LogToConsole/types/helpers/HealthHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/1LogToConsole/types/helpers/HealthHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/1LogToConsole/types/helpers/ItemHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/1LogToConsole/types/helpers/ItemHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/1LogToConsole/types/helpers/RagfairServerHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/1LogToConsole/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/1LogToConsole/types/helpers/RepairHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/1LogToConsole/types/helpers/RepairHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/1LogToConsole/types/helpers/TraderHelper.d.ts b/TypeScript/1LogToConsole/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/1LogToConsole/types/helpers/TraderHelper.d.ts +++ b/TypeScript/1LogToConsole/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/1LogToConsole/types/loaders/InitialModLoader.d.ts b/TypeScript/1LogToConsole/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/1LogToConsole/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/1LogToConsole/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/1LogToConsole/types/models/eft/common/IPmcData.d.ts b/TypeScript/1LogToConsole/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/1LogToConsole/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/1LogToConsole/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/1LogToConsole/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/1LogToConsole/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/1LogToConsole/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/1LogToConsole/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/1LogToConsole/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/1LogToConsole/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/1LogToConsole/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/1LogToConsole/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/1LogToConsole/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/1LogToConsole/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/1LogToConsole/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/1LogToConsole/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/1LogToConsole/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/1LogToConsole/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/1LogToConsole/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/1LogToConsole/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/1LogToConsole/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/1LogToConsole/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/1LogToConsole/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/1LogToConsole/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/1LogToConsole/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/1LogToConsole/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/1LogToConsole/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/1LogToConsole/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/1LogToConsole/types/models/enums/BaseClasses.d.ts b/TypeScript/1LogToConsole/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/1LogToConsole/types/models/enums/ConfigTypes.d.ts b/TypeScript/1LogToConsole/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/1LogToConsole/types/models/enums/ELocationName.d.ts b/TypeScript/1LogToConsole/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/1LogToConsole/types/models/enums/EquipmentSlots.d.ts b/TypeScript/1LogToConsole/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/1LogToConsole/types/models/enums/HideoutAreas.d.ts b/TypeScript/1LogToConsole/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/1LogToConsole/types/models/enums/MemberCategory.d.ts b/TypeScript/1LogToConsole/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/1LogToConsole/types/models/enums/MessageType.d.ts b/TypeScript/1LogToConsole/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/1LogToConsole/types/models/enums/Money.d.ts b/TypeScript/1LogToConsole/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/1LogToConsole/types/models/enums/Traders.d.ts b/TypeScript/1LogToConsole/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/1LogToConsole/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/1LogToConsole/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/1LogToConsole/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/1LogToConsole/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/1LogToConsole/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/1LogToConsole/types/models/spt/mod/IMod.d.ts b/TypeScript/1LogToConsole/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/1LogToConsole/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/1LogToConsole/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/1LogToConsole/types/models/spt/server/IHttpServer.d.ts b/TypeScript/1LogToConsole/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/1LogToConsole/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/1LogToConsole/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/1LogToConsole/types/routers/ImageRouter.d.ts b/TypeScript/1LogToConsole/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/1LogToConsole/types/routers/ImageRouter.d.ts +++ b/TypeScript/1LogToConsole/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/1LogToConsole/types/servers/ConfigServer.d.ts b/TypeScript/1LogToConsole/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/1LogToConsole/types/servers/ConfigServer.d.ts +++ b/TypeScript/1LogToConsole/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/1LogToConsole/types/servers/HttpServer.d.ts b/TypeScript/1LogToConsole/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/1LogToConsole/types/servers/HttpServer.d.ts +++ b/TypeScript/1LogToConsole/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/1LogToConsole/types/servers/RagfairServer.d.ts b/TypeScript/1LogToConsole/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/1LogToConsole/types/servers/RagfairServer.d.ts +++ b/TypeScript/1LogToConsole/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/1LogToConsole/types/services/FenceService.d.ts b/TypeScript/1LogToConsole/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/1LogToConsole/types/services/FenceService.d.ts +++ b/TypeScript/1LogToConsole/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/1LogToConsole/types/services/RagfairPriceService.d.ts b/TypeScript/1LogToConsole/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/1LogToConsole/types/services/RagfairPriceService.d.ts +++ b/TypeScript/1LogToConsole/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/1LogToConsole/types/services/mod/image/imageRouteService.d.ts b/TypeScript/1LogToConsole/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/1LogToConsole/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/1LogToConsole/types/utils/VFS.d.ts b/TypeScript/1LogToConsole/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/1LogToConsole/types/utils/VFS.d.ts +++ b/TypeScript/1LogToConsole/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/1LogToConsole/types/utils/Watermark.d.ts b/TypeScript/1LogToConsole/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/1LogToConsole/types/utils/Watermark.d.ts +++ b/TypeScript/1LogToConsole/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/2EditDatabase/types/controllers/BotController.d.ts b/TypeScript/2EditDatabase/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/2EditDatabase/types/controllers/BotController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/2EditDatabase/types/controllers/DialogueController.d.ts b/TypeScript/2EditDatabase/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/2EditDatabase/types/controllers/DialogueController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/2EditDatabase/types/controllers/HideoutController.d.ts b/TypeScript/2EditDatabase/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/2EditDatabase/types/controllers/HideoutController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/2EditDatabase/types/controllers/InraidController.d.ts b/TypeScript/2EditDatabase/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/2EditDatabase/types/controllers/InraidController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/2EditDatabase/types/controllers/InsuranceController.d.ts b/TypeScript/2EditDatabase/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/2EditDatabase/types/controllers/InsuranceController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/2EditDatabase/types/controllers/LauncherController.d.ts b/TypeScript/2EditDatabase/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/2EditDatabase/types/controllers/LauncherController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/2EditDatabase/types/controllers/QuestController.d.ts b/TypeScript/2EditDatabase/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/2EditDatabase/types/controllers/QuestController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/2EditDatabase/types/controllers/RepairController.d.ts b/TypeScript/2EditDatabase/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/2EditDatabase/types/controllers/RepairController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/2EditDatabase/types/controllers/RepeatableQuestController.d.ts b/TypeScript/2EditDatabase/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/2EditDatabase/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/2EditDatabase/types/controllers/WeatherController.d.ts b/TypeScript/2EditDatabase/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/2EditDatabase/types/controllers/WeatherController.d.ts +++ b/TypeScript/2EditDatabase/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/2EditDatabase/types/generators/BotGenerator.d.ts b/TypeScript/2EditDatabase/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/2EditDatabase/types/generators/BotGenerator.d.ts +++ b/TypeScript/2EditDatabase/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/2EditDatabase/types/generators/BotLootGenerator.d.ts b/TypeScript/2EditDatabase/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/2EditDatabase/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/2EditDatabase/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/2EditDatabase/types/generators/LocationGenerator.d.ts b/TypeScript/2EditDatabase/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/2EditDatabase/types/generators/LocationGenerator.d.ts +++ b/TypeScript/2EditDatabase/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/2EditDatabase/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/2EditDatabase/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/2EditDatabase/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/2EditDatabase/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/2EditDatabase/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/2EditDatabase/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/2EditDatabase/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/2EditDatabase/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/2EditDatabase/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/2EditDatabase/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/2EditDatabase/types/helpers/BotHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/2EditDatabase/types/helpers/BotHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/2EditDatabase/types/helpers/DialogueHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/2EditDatabase/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/2EditDatabase/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/2EditDatabase/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/2EditDatabase/types/helpers/HealthHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/2EditDatabase/types/helpers/HealthHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/2EditDatabase/types/helpers/ItemHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/2EditDatabase/types/helpers/ItemHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/2EditDatabase/types/helpers/RagfairServerHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/2EditDatabase/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/2EditDatabase/types/helpers/RepairHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/2EditDatabase/types/helpers/RepairHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/2EditDatabase/types/helpers/TraderHelper.d.ts b/TypeScript/2EditDatabase/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/2EditDatabase/types/helpers/TraderHelper.d.ts +++ b/TypeScript/2EditDatabase/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/2EditDatabase/types/loaders/InitialModLoader.d.ts b/TypeScript/2EditDatabase/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/2EditDatabase/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/2EditDatabase/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/2EditDatabase/types/models/eft/common/IPmcData.d.ts b/TypeScript/2EditDatabase/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/2EditDatabase/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/2EditDatabase/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/2EditDatabase/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/2EditDatabase/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/2EditDatabase/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/2EditDatabase/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/2EditDatabase/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/2EditDatabase/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/2EditDatabase/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/2EditDatabase/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/2EditDatabase/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/2EditDatabase/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/2EditDatabase/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/2EditDatabase/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/2EditDatabase/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/2EditDatabase/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/2EditDatabase/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/2EditDatabase/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/2EditDatabase/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/2EditDatabase/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/2EditDatabase/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/2EditDatabase/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/2EditDatabase/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/2EditDatabase/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/2EditDatabase/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/2EditDatabase/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/2EditDatabase/types/models/enums/BaseClasses.d.ts b/TypeScript/2EditDatabase/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/2EditDatabase/types/models/enums/ConfigTypes.d.ts b/TypeScript/2EditDatabase/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/2EditDatabase/types/models/enums/ELocationName.d.ts b/TypeScript/2EditDatabase/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/2EditDatabase/types/models/enums/EquipmentSlots.d.ts b/TypeScript/2EditDatabase/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/2EditDatabase/types/models/enums/HideoutAreas.d.ts b/TypeScript/2EditDatabase/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/2EditDatabase/types/models/enums/MemberCategory.d.ts b/TypeScript/2EditDatabase/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/2EditDatabase/types/models/enums/MessageType.d.ts b/TypeScript/2EditDatabase/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/2EditDatabase/types/models/enums/Money.d.ts b/TypeScript/2EditDatabase/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/2EditDatabase/types/models/enums/Traders.d.ts b/TypeScript/2EditDatabase/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/2EditDatabase/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/2EditDatabase/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/2EditDatabase/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/2EditDatabase/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/2EditDatabase/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/2EditDatabase/types/models/spt/mod/IMod.d.ts b/TypeScript/2EditDatabase/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/2EditDatabase/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/2EditDatabase/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/2EditDatabase/types/models/spt/server/IHttpServer.d.ts b/TypeScript/2EditDatabase/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/2EditDatabase/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/2EditDatabase/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/2EditDatabase/types/routers/ImageRouter.d.ts b/TypeScript/2EditDatabase/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/2EditDatabase/types/routers/ImageRouter.d.ts +++ b/TypeScript/2EditDatabase/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/2EditDatabase/types/servers/ConfigServer.d.ts b/TypeScript/2EditDatabase/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/2EditDatabase/types/servers/ConfigServer.d.ts +++ b/TypeScript/2EditDatabase/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/2EditDatabase/types/servers/HttpServer.d.ts b/TypeScript/2EditDatabase/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/2EditDatabase/types/servers/HttpServer.d.ts +++ b/TypeScript/2EditDatabase/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/2EditDatabase/types/servers/RagfairServer.d.ts b/TypeScript/2EditDatabase/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/2EditDatabase/types/servers/RagfairServer.d.ts +++ b/TypeScript/2EditDatabase/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/2EditDatabase/types/services/FenceService.d.ts b/TypeScript/2EditDatabase/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/2EditDatabase/types/services/FenceService.d.ts +++ b/TypeScript/2EditDatabase/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/2EditDatabase/types/services/RagfairPriceService.d.ts b/TypeScript/2EditDatabase/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/2EditDatabase/types/services/RagfairPriceService.d.ts +++ b/TypeScript/2EditDatabase/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/2EditDatabase/types/services/mod/image/imageRouteService.d.ts b/TypeScript/2EditDatabase/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/2EditDatabase/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/2EditDatabase/types/utils/VFS.d.ts b/TypeScript/2EditDatabase/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/2EditDatabase/types/utils/VFS.d.ts +++ b/TypeScript/2EditDatabase/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/2EditDatabase/types/utils/Watermark.d.ts b/TypeScript/2EditDatabase/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/2EditDatabase/types/utils/Watermark.d.ts +++ b/TypeScript/2EditDatabase/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/BotController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/BotController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/DialogueController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/DialogueController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/HideoutController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/HideoutController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/InraidController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/InraidController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/InsuranceController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/InsuranceController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/LauncherController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/LauncherController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/QuestController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/QuestController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/RepairController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/RepairController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/RepeatableQuestController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/3.0GetSptConfigFile/types/controllers/WeatherController.d.ts b/TypeScript/3.0GetSptConfigFile/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/3.0GetSptConfigFile/types/controllers/WeatherController.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/3.0GetSptConfigFile/types/generators/BotGenerator.d.ts b/TypeScript/3.0GetSptConfigFile/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/3.0GetSptConfigFile/types/generators/BotGenerator.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/generators/BotLootGenerator.d.ts b/TypeScript/3.0GetSptConfigFile/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/3.0GetSptConfigFile/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/generators/LocationGenerator.d.ts b/TypeScript/3.0GetSptConfigFile/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/3.0GetSptConfigFile/types/generators/LocationGenerator.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/3.0GetSptConfigFile/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/3.0GetSptConfigFile/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/3.0GetSptConfigFile/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/3.0GetSptConfigFile/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/3.0GetSptConfigFile/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/3.0GetSptConfigFile/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/3.0GetSptConfigFile/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/3.0GetSptConfigFile/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/3.0GetSptConfigFile/types/helpers/BotHelper.d.ts b/TypeScript/3.0GetSptConfigFile/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/3.0GetSptConfigFile/types/helpers/BotHelper.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/helpers/DialogueHelper.d.ts b/TypeScript/3.0GetSptConfigFile/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/3.0GetSptConfigFile/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/3.0GetSptConfigFile/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/3.0GetSptConfigFile/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/3.0GetSptConfigFile/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/3.0GetSptConfigFile/types/helpers/HealthHelper.d.ts b/TypeScript/3.0GetSptConfigFile/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/3.0GetSptConfigFile/types/helpers/HealthHelper.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/3.0GetSptConfigFile/types/helpers/ItemHelper.d.ts b/TypeScript/3.0GetSptConfigFile/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/3.0GetSptConfigFile/types/helpers/ItemHelper.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/3.0GetSptConfigFile/types/helpers/RagfairServerHelper.d.ts b/TypeScript/3.0GetSptConfigFile/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/3.0GetSptConfigFile/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/3.0GetSptConfigFile/types/helpers/RepairHelper.d.ts b/TypeScript/3.0GetSptConfigFile/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/3.0GetSptConfigFile/types/helpers/RepairHelper.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/helpers/TraderHelper.d.ts b/TypeScript/3.0GetSptConfigFile/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/3.0GetSptConfigFile/types/helpers/TraderHelper.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/3.0GetSptConfigFile/types/loaders/InitialModLoader.d.ts b/TypeScript/3.0GetSptConfigFile/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/3.0GetSptConfigFile/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/eft/common/IPmcData.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/enums/BaseClasses.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/3.0GetSptConfigFile/types/models/enums/ConfigTypes.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/3.0GetSptConfigFile/types/models/enums/ELocationName.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/3.0GetSptConfigFile/types/models/enums/EquipmentSlots.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/3.0GetSptConfigFile/types/models/enums/HideoutAreas.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/3.0GetSptConfigFile/types/models/enums/MemberCategory.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/3.0GetSptConfigFile/types/models/enums/MessageType.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/3.0GetSptConfigFile/types/models/enums/Money.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/3.0GetSptConfigFile/types/models/enums/Traders.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/3.0GetSptConfigFile/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/spt/mod/IMod.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/3.0GetSptConfigFile/types/models/spt/server/IHttpServer.d.ts b/TypeScript/3.0GetSptConfigFile/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/3.0GetSptConfigFile/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/3.0GetSptConfigFile/types/routers/ImageRouter.d.ts b/TypeScript/3.0GetSptConfigFile/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/3.0GetSptConfigFile/types/routers/ImageRouter.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/3.0GetSptConfigFile/types/servers/ConfigServer.d.ts b/TypeScript/3.0GetSptConfigFile/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/3.0GetSptConfigFile/types/servers/ConfigServer.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/3.0GetSptConfigFile/types/servers/HttpServer.d.ts b/TypeScript/3.0GetSptConfigFile/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/3.0GetSptConfigFile/types/servers/HttpServer.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/3.0GetSptConfigFile/types/servers/RagfairServer.d.ts b/TypeScript/3.0GetSptConfigFile/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/3.0GetSptConfigFile/types/servers/RagfairServer.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/3.0GetSptConfigFile/types/services/FenceService.d.ts b/TypeScript/3.0GetSptConfigFile/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/3.0GetSptConfigFile/types/services/FenceService.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/3.0GetSptConfigFile/types/services/RagfairPriceService.d.ts b/TypeScript/3.0GetSptConfigFile/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/3.0GetSptConfigFile/types/services/RagfairPriceService.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/3.0GetSptConfigFile/types/services/mod/image/imageRouteService.d.ts b/TypeScript/3.0GetSptConfigFile/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/3.0GetSptConfigFile/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/3.0GetSptConfigFile/types/utils/VFS.d.ts b/TypeScript/3.0GetSptConfigFile/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/3.0GetSptConfigFile/types/utils/VFS.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/3.0GetSptConfigFile/types/utils/Watermark.d.ts b/TypeScript/3.0GetSptConfigFile/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/3.0GetSptConfigFile/types/utils/Watermark.d.ts +++ b/TypeScript/3.0GetSptConfigFile/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/BotController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/BotController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/DialogueController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/DialogueController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/HideoutController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/HideoutController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/InraidController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/InraidController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/InsuranceController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/InsuranceController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/LauncherController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/LauncherController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/QuestController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/QuestController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/RepairController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/RepairController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/RepeatableQuestController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/4UseACustomConfigFile/types/controllers/WeatherController.d.ts b/TypeScript/4UseACustomConfigFile/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/4UseACustomConfigFile/types/controllers/WeatherController.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/4UseACustomConfigFile/types/generators/BotGenerator.d.ts b/TypeScript/4UseACustomConfigFile/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/4UseACustomConfigFile/types/generators/BotGenerator.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/generators/BotLootGenerator.d.ts b/TypeScript/4UseACustomConfigFile/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/4UseACustomConfigFile/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/generators/LocationGenerator.d.ts b/TypeScript/4UseACustomConfigFile/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/4UseACustomConfigFile/types/generators/LocationGenerator.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/4UseACustomConfigFile/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/4UseACustomConfigFile/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/4UseACustomConfigFile/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/4UseACustomConfigFile/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/4UseACustomConfigFile/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/4UseACustomConfigFile/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/BotHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/BotHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/DialogueHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/HealthHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/HealthHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/ItemHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/ItemHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/RagfairServerHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/RepairHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/RepairHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/helpers/TraderHelper.d.ts b/TypeScript/4UseACustomConfigFile/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/4UseACustomConfigFile/types/helpers/TraderHelper.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/4UseACustomConfigFile/types/loaders/InitialModLoader.d.ts b/TypeScript/4UseACustomConfigFile/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/4UseACustomConfigFile/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/4UseACustomConfigFile/types/models/eft/common/IPmcData.d.ts b/TypeScript/4UseACustomConfigFile/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/4UseACustomConfigFile/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/4UseACustomConfigFile/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/4UseACustomConfigFile/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/4UseACustomConfigFile/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/4UseACustomConfigFile/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/4UseACustomConfigFile/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/BaseClasses.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/ConfigTypes.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/ELocationName.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/EquipmentSlots.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/HideoutAreas.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/MemberCategory.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/MessageType.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/Money.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/enums/Traders.d.ts b/TypeScript/4UseACustomConfigFile/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/4UseACustomConfigFile/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/4UseACustomConfigFile/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/4UseACustomConfigFile/types/models/spt/mod/IMod.d.ts b/TypeScript/4UseACustomConfigFile/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/4UseACustomConfigFile/types/models/spt/server/IHttpServer.d.ts b/TypeScript/4UseACustomConfigFile/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/4UseACustomConfigFile/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/4UseACustomConfigFile/types/routers/ImageRouter.d.ts b/TypeScript/4UseACustomConfigFile/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/4UseACustomConfigFile/types/routers/ImageRouter.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/4UseACustomConfigFile/types/servers/ConfigServer.d.ts b/TypeScript/4UseACustomConfigFile/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/4UseACustomConfigFile/types/servers/ConfigServer.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/4UseACustomConfigFile/types/servers/HttpServer.d.ts b/TypeScript/4UseACustomConfigFile/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/4UseACustomConfigFile/types/servers/HttpServer.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/4UseACustomConfigFile/types/servers/RagfairServer.d.ts b/TypeScript/4UseACustomConfigFile/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/4UseACustomConfigFile/types/servers/RagfairServer.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/4UseACustomConfigFile/types/services/FenceService.d.ts b/TypeScript/4UseACustomConfigFile/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/4UseACustomConfigFile/types/services/FenceService.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/4UseACustomConfigFile/types/services/RagfairPriceService.d.ts b/TypeScript/4UseACustomConfigFile/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/4UseACustomConfigFile/types/services/RagfairPriceService.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/4UseACustomConfigFile/types/services/mod/image/imageRouteService.d.ts b/TypeScript/4UseACustomConfigFile/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/4UseACustomConfigFile/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/4UseACustomConfigFile/types/utils/VFS.d.ts b/TypeScript/4UseACustomConfigFile/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/4UseACustomConfigFile/types/utils/VFS.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/4UseACustomConfigFile/types/utils/Watermark.d.ts b/TypeScript/4UseACustomConfigFile/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/4UseACustomConfigFile/types/utils/Watermark.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/5ReplaceMethod/types/controllers/BotController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/BotController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/5ReplaceMethod/types/controllers/DialogueController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/DialogueController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/5ReplaceMethod/types/controllers/HideoutController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/HideoutController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/5ReplaceMethod/types/controllers/InraidController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/InraidController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/5ReplaceMethod/types/controllers/InsuranceController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/InsuranceController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/5ReplaceMethod/types/controllers/LauncherController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/LauncherController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/5ReplaceMethod/types/controllers/QuestController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/QuestController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/5ReplaceMethod/types/controllers/RepairController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/RepairController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/5ReplaceMethod/types/controllers/RepeatableQuestController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/5ReplaceMethod/types/controllers/WeatherController.d.ts b/TypeScript/5ReplaceMethod/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/5ReplaceMethod/types/controllers/WeatherController.d.ts +++ b/TypeScript/5ReplaceMethod/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/5ReplaceMethod/types/generators/BotGenerator.d.ts b/TypeScript/5ReplaceMethod/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/5ReplaceMethod/types/generators/BotGenerator.d.ts +++ b/TypeScript/5ReplaceMethod/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/5ReplaceMethod/types/generators/BotLootGenerator.d.ts b/TypeScript/5ReplaceMethod/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/5ReplaceMethod/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/5ReplaceMethod/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/5ReplaceMethod/types/generators/LocationGenerator.d.ts b/TypeScript/5ReplaceMethod/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/5ReplaceMethod/types/generators/LocationGenerator.d.ts +++ b/TypeScript/5ReplaceMethod/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/5ReplaceMethod/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/5ReplaceMethod/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/5ReplaceMethod/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/5ReplaceMethod/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/5ReplaceMethod/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/5ReplaceMethod/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/5ReplaceMethod/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/5ReplaceMethod/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/5ReplaceMethod/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/5ReplaceMethod/types/helpers/BotHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/BotHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/5ReplaceMethod/types/helpers/DialogueHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/5ReplaceMethod/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/5ReplaceMethod/types/helpers/HealthHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/HealthHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/5ReplaceMethod/types/helpers/ItemHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/ItemHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/5ReplaceMethod/types/helpers/RagfairServerHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/5ReplaceMethod/types/helpers/RepairHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/RepairHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/5ReplaceMethod/types/helpers/TraderHelper.d.ts b/TypeScript/5ReplaceMethod/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/5ReplaceMethod/types/helpers/TraderHelper.d.ts +++ b/TypeScript/5ReplaceMethod/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/5ReplaceMethod/types/loaders/InitialModLoader.d.ts b/TypeScript/5ReplaceMethod/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/5ReplaceMethod/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/5ReplaceMethod/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/5ReplaceMethod/types/models/eft/common/IPmcData.d.ts b/TypeScript/5ReplaceMethod/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/5ReplaceMethod/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/5ReplaceMethod/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/5ReplaceMethod/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/5ReplaceMethod/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/5ReplaceMethod/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/5ReplaceMethod/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/5ReplaceMethod/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/5ReplaceMethod/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/5ReplaceMethod/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/5ReplaceMethod/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/5ReplaceMethod/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/5ReplaceMethod/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/5ReplaceMethod/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/5ReplaceMethod/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/5ReplaceMethod/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/5ReplaceMethod/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/5ReplaceMethod/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/5ReplaceMethod/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/5ReplaceMethod/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/5ReplaceMethod/types/models/enums/BaseClasses.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/5ReplaceMethod/types/models/enums/ConfigTypes.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/5ReplaceMethod/types/models/enums/ELocationName.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/5ReplaceMethod/types/models/enums/EquipmentSlots.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/5ReplaceMethod/types/models/enums/HideoutAreas.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/5ReplaceMethod/types/models/enums/MemberCategory.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/5ReplaceMethod/types/models/enums/MessageType.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/5ReplaceMethod/types/models/enums/Money.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/5ReplaceMethod/types/models/enums/Traders.d.ts b/TypeScript/5ReplaceMethod/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/5ReplaceMethod/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/5ReplaceMethod/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/5ReplaceMethod/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/5ReplaceMethod/types/models/spt/mod/IMod.d.ts b/TypeScript/5ReplaceMethod/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/5ReplaceMethod/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/5ReplaceMethod/types/models/spt/server/IHttpServer.d.ts b/TypeScript/5ReplaceMethod/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/5ReplaceMethod/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/5ReplaceMethod/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/5ReplaceMethod/types/routers/ImageRouter.d.ts b/TypeScript/5ReplaceMethod/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/5ReplaceMethod/types/routers/ImageRouter.d.ts +++ b/TypeScript/5ReplaceMethod/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/5ReplaceMethod/types/servers/ConfigServer.d.ts b/TypeScript/5ReplaceMethod/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/5ReplaceMethod/types/servers/ConfigServer.d.ts +++ b/TypeScript/5ReplaceMethod/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/5ReplaceMethod/types/servers/HttpServer.d.ts b/TypeScript/5ReplaceMethod/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/5ReplaceMethod/types/servers/HttpServer.d.ts +++ b/TypeScript/5ReplaceMethod/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/5ReplaceMethod/types/servers/RagfairServer.d.ts b/TypeScript/5ReplaceMethod/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/5ReplaceMethod/types/servers/RagfairServer.d.ts +++ b/TypeScript/5ReplaceMethod/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/5ReplaceMethod/types/services/FenceService.d.ts b/TypeScript/5ReplaceMethod/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/5ReplaceMethod/types/services/FenceService.d.ts +++ b/TypeScript/5ReplaceMethod/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/5ReplaceMethod/types/services/RagfairPriceService.d.ts b/TypeScript/5ReplaceMethod/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/5ReplaceMethod/types/services/RagfairPriceService.d.ts +++ b/TypeScript/5ReplaceMethod/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/5ReplaceMethod/types/services/mod/image/imageRouteService.d.ts b/TypeScript/5ReplaceMethod/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/5ReplaceMethod/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/5ReplaceMethod/types/utils/VFS.d.ts b/TypeScript/5ReplaceMethod/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/5ReplaceMethod/types/utils/VFS.d.ts +++ b/TypeScript/5ReplaceMethod/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/5ReplaceMethod/types/utils/Watermark.d.ts b/TypeScript/5ReplaceMethod/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/5ReplaceMethod/types/utils/Watermark.d.ts +++ b/TypeScript/5ReplaceMethod/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/BotController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/BotController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/DialogueController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/DialogueController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/HideoutController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/HideoutController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/InraidController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/InraidController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/InsuranceController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/InsuranceController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/LauncherController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/LauncherController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/QuestController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/QuestController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/RepairController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/RepairController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/RepeatableQuestController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/6ReferenceAnotherClass/types/controllers/WeatherController.d.ts b/TypeScript/6ReferenceAnotherClass/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/6ReferenceAnotherClass/types/controllers/WeatherController.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/6ReferenceAnotherClass/types/generators/BotGenerator.d.ts b/TypeScript/6ReferenceAnotherClass/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/6ReferenceAnotherClass/types/generators/BotGenerator.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/generators/BotLootGenerator.d.ts b/TypeScript/6ReferenceAnotherClass/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/6ReferenceAnotherClass/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/generators/LocationGenerator.d.ts b/TypeScript/6ReferenceAnotherClass/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/6ReferenceAnotherClass/types/generators/LocationGenerator.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/6ReferenceAnotherClass/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/6ReferenceAnotherClass/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/6ReferenceAnotherClass/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/6ReferenceAnotherClass/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/6ReferenceAnotherClass/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/6ReferenceAnotherClass/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/BotHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/BotHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/DialogueHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/HealthHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/HealthHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/ItemHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/ItemHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/RagfairServerHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/RepairHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/RepairHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/helpers/TraderHelper.d.ts b/TypeScript/6ReferenceAnotherClass/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/6ReferenceAnotherClass/types/helpers/TraderHelper.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/6ReferenceAnotherClass/types/loaders/InitialModLoader.d.ts b/TypeScript/6ReferenceAnotherClass/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/6ReferenceAnotherClass/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/eft/common/IPmcData.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/BaseClasses.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/ConfigTypes.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/ELocationName.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/EquipmentSlots.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/HideoutAreas.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/MemberCategory.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/MessageType.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/Money.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/enums/Traders.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/6ReferenceAnotherClass/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/spt/mod/IMod.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/6ReferenceAnotherClass/types/models/spt/server/IHttpServer.d.ts b/TypeScript/6ReferenceAnotherClass/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/6ReferenceAnotherClass/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/6ReferenceAnotherClass/types/routers/ImageRouter.d.ts b/TypeScript/6ReferenceAnotherClass/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/6ReferenceAnotherClass/types/routers/ImageRouter.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/6ReferenceAnotherClass/types/servers/ConfigServer.d.ts b/TypeScript/6ReferenceAnotherClass/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/6ReferenceAnotherClass/types/servers/ConfigServer.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/6ReferenceAnotherClass/types/servers/HttpServer.d.ts b/TypeScript/6ReferenceAnotherClass/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/6ReferenceAnotherClass/types/servers/HttpServer.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/6ReferenceAnotherClass/types/servers/RagfairServer.d.ts b/TypeScript/6ReferenceAnotherClass/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/6ReferenceAnotherClass/types/servers/RagfairServer.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/6ReferenceAnotherClass/types/services/FenceService.d.ts b/TypeScript/6ReferenceAnotherClass/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/6ReferenceAnotherClass/types/services/FenceService.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/6ReferenceAnotherClass/types/services/RagfairPriceService.d.ts b/TypeScript/6ReferenceAnotherClass/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/6ReferenceAnotherClass/types/services/RagfairPriceService.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/6ReferenceAnotherClass/types/services/mod/image/imageRouteService.d.ts b/TypeScript/6ReferenceAnotherClass/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/6ReferenceAnotherClass/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/6ReferenceAnotherClass/types/utils/VFS.d.ts b/TypeScript/6ReferenceAnotherClass/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/6ReferenceAnotherClass/types/utils/VFS.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/6ReferenceAnotherClass/types/utils/Watermark.d.ts b/TypeScript/6ReferenceAnotherClass/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/6ReferenceAnotherClass/types/utils/Watermark.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/7OnLoadHook/types/controllers/BotController.d.ts b/TypeScript/7OnLoadHook/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/7OnLoadHook/types/controllers/BotController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/7OnLoadHook/types/controllers/DialogueController.d.ts b/TypeScript/7OnLoadHook/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/7OnLoadHook/types/controllers/DialogueController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/7OnLoadHook/types/controllers/HideoutController.d.ts b/TypeScript/7OnLoadHook/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/7OnLoadHook/types/controllers/HideoutController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/7OnLoadHook/types/controllers/InraidController.d.ts b/TypeScript/7OnLoadHook/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/7OnLoadHook/types/controllers/InraidController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/7OnLoadHook/types/controllers/InsuranceController.d.ts b/TypeScript/7OnLoadHook/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/7OnLoadHook/types/controllers/InsuranceController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/7OnLoadHook/types/controllers/LauncherController.d.ts b/TypeScript/7OnLoadHook/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/7OnLoadHook/types/controllers/LauncherController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/7OnLoadHook/types/controllers/QuestController.d.ts b/TypeScript/7OnLoadHook/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/7OnLoadHook/types/controllers/QuestController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/7OnLoadHook/types/controllers/RepairController.d.ts b/TypeScript/7OnLoadHook/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/7OnLoadHook/types/controllers/RepairController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/7OnLoadHook/types/controllers/RepeatableQuestController.d.ts b/TypeScript/7OnLoadHook/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/7OnLoadHook/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/7OnLoadHook/types/controllers/WeatherController.d.ts b/TypeScript/7OnLoadHook/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/7OnLoadHook/types/controllers/WeatherController.d.ts +++ b/TypeScript/7OnLoadHook/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/7OnLoadHook/types/generators/BotGenerator.d.ts b/TypeScript/7OnLoadHook/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/7OnLoadHook/types/generators/BotGenerator.d.ts +++ b/TypeScript/7OnLoadHook/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/7OnLoadHook/types/generators/BotLootGenerator.d.ts b/TypeScript/7OnLoadHook/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/7OnLoadHook/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/7OnLoadHook/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/7OnLoadHook/types/generators/LocationGenerator.d.ts b/TypeScript/7OnLoadHook/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/7OnLoadHook/types/generators/LocationGenerator.d.ts +++ b/TypeScript/7OnLoadHook/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/7OnLoadHook/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/7OnLoadHook/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/7OnLoadHook/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/7OnLoadHook/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/7OnLoadHook/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/7OnLoadHook/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/7OnLoadHook/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/7OnLoadHook/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/7OnLoadHook/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/7OnLoadHook/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/7OnLoadHook/types/helpers/BotHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/7OnLoadHook/types/helpers/BotHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/7OnLoadHook/types/helpers/DialogueHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/7OnLoadHook/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/7OnLoadHook/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/7OnLoadHook/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/7OnLoadHook/types/helpers/HealthHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/7OnLoadHook/types/helpers/HealthHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/7OnLoadHook/types/helpers/ItemHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/7OnLoadHook/types/helpers/ItemHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/7OnLoadHook/types/helpers/RagfairServerHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/7OnLoadHook/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/7OnLoadHook/types/helpers/RepairHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/7OnLoadHook/types/helpers/RepairHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/7OnLoadHook/types/helpers/TraderHelper.d.ts b/TypeScript/7OnLoadHook/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/7OnLoadHook/types/helpers/TraderHelper.d.ts +++ b/TypeScript/7OnLoadHook/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/7OnLoadHook/types/loaders/InitialModLoader.d.ts b/TypeScript/7OnLoadHook/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/7OnLoadHook/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/7OnLoadHook/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/7OnLoadHook/types/models/eft/common/IPmcData.d.ts b/TypeScript/7OnLoadHook/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/7OnLoadHook/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/7OnLoadHook/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/7OnLoadHook/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/7OnLoadHook/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/7OnLoadHook/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/7OnLoadHook/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/7OnLoadHook/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/7OnLoadHook/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/7OnLoadHook/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/7OnLoadHook/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/7OnLoadHook/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/7OnLoadHook/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/7OnLoadHook/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/7OnLoadHook/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/7OnLoadHook/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/7OnLoadHook/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/7OnLoadHook/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/7OnLoadHook/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/7OnLoadHook/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/7OnLoadHook/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/7OnLoadHook/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/7OnLoadHook/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/7OnLoadHook/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/7OnLoadHook/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/7OnLoadHook/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/7OnLoadHook/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/7OnLoadHook/types/models/enums/BaseClasses.d.ts b/TypeScript/7OnLoadHook/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/7OnLoadHook/types/models/enums/ConfigTypes.d.ts b/TypeScript/7OnLoadHook/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/7OnLoadHook/types/models/enums/ELocationName.d.ts b/TypeScript/7OnLoadHook/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/7OnLoadHook/types/models/enums/EquipmentSlots.d.ts b/TypeScript/7OnLoadHook/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/7OnLoadHook/types/models/enums/HideoutAreas.d.ts b/TypeScript/7OnLoadHook/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/7OnLoadHook/types/models/enums/MemberCategory.d.ts b/TypeScript/7OnLoadHook/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/7OnLoadHook/types/models/enums/MessageType.d.ts b/TypeScript/7OnLoadHook/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/7OnLoadHook/types/models/enums/Money.d.ts b/TypeScript/7OnLoadHook/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/7OnLoadHook/types/models/enums/Traders.d.ts b/TypeScript/7OnLoadHook/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/7OnLoadHook/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/7OnLoadHook/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/7OnLoadHook/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/7OnLoadHook/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/7OnLoadHook/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/7OnLoadHook/types/models/spt/mod/IMod.d.ts b/TypeScript/7OnLoadHook/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/7OnLoadHook/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/7OnLoadHook/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/7OnLoadHook/types/models/spt/server/IHttpServer.d.ts b/TypeScript/7OnLoadHook/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/7OnLoadHook/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/7OnLoadHook/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/7OnLoadHook/types/routers/ImageRouter.d.ts b/TypeScript/7OnLoadHook/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/7OnLoadHook/types/routers/ImageRouter.d.ts +++ b/TypeScript/7OnLoadHook/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/7OnLoadHook/types/servers/ConfigServer.d.ts b/TypeScript/7OnLoadHook/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/7OnLoadHook/types/servers/ConfigServer.d.ts +++ b/TypeScript/7OnLoadHook/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/7OnLoadHook/types/servers/HttpServer.d.ts b/TypeScript/7OnLoadHook/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/7OnLoadHook/types/servers/HttpServer.d.ts +++ b/TypeScript/7OnLoadHook/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/7OnLoadHook/types/servers/RagfairServer.d.ts b/TypeScript/7OnLoadHook/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/7OnLoadHook/types/servers/RagfairServer.d.ts +++ b/TypeScript/7OnLoadHook/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/7OnLoadHook/types/services/FenceService.d.ts b/TypeScript/7OnLoadHook/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/7OnLoadHook/types/services/FenceService.d.ts +++ b/TypeScript/7OnLoadHook/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/7OnLoadHook/types/services/RagfairPriceService.d.ts b/TypeScript/7OnLoadHook/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/7OnLoadHook/types/services/RagfairPriceService.d.ts +++ b/TypeScript/7OnLoadHook/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/7OnLoadHook/types/services/mod/image/imageRouteService.d.ts b/TypeScript/7OnLoadHook/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/7OnLoadHook/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/7OnLoadHook/types/utils/VFS.d.ts b/TypeScript/7OnLoadHook/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/7OnLoadHook/types/utils/VFS.d.ts +++ b/TypeScript/7OnLoadHook/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/7OnLoadHook/types/utils/Watermark.d.ts b/TypeScript/7OnLoadHook/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/7OnLoadHook/types/utils/Watermark.d.ts +++ b/TypeScript/7OnLoadHook/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/8OnUpdateHook/types/controllers/BotController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/BotController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/8OnUpdateHook/types/controllers/DialogueController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/DialogueController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/8OnUpdateHook/types/controllers/HideoutController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/HideoutController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/8OnUpdateHook/types/controllers/InraidController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/InraidController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/8OnUpdateHook/types/controllers/InsuranceController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/InsuranceController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/8OnUpdateHook/types/controllers/LauncherController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/LauncherController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/8OnUpdateHook/types/controllers/QuestController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/QuestController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/8OnUpdateHook/types/controllers/RepairController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/RepairController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/8OnUpdateHook/types/controllers/RepeatableQuestController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/8OnUpdateHook/types/controllers/WeatherController.d.ts b/TypeScript/8OnUpdateHook/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/8OnUpdateHook/types/controllers/WeatherController.d.ts +++ b/TypeScript/8OnUpdateHook/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/8OnUpdateHook/types/generators/BotGenerator.d.ts b/TypeScript/8OnUpdateHook/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/8OnUpdateHook/types/generators/BotGenerator.d.ts +++ b/TypeScript/8OnUpdateHook/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/8OnUpdateHook/types/generators/BotLootGenerator.d.ts b/TypeScript/8OnUpdateHook/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/8OnUpdateHook/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/8OnUpdateHook/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/8OnUpdateHook/types/generators/LocationGenerator.d.ts b/TypeScript/8OnUpdateHook/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/8OnUpdateHook/types/generators/LocationGenerator.d.ts +++ b/TypeScript/8OnUpdateHook/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/8OnUpdateHook/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/8OnUpdateHook/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/8OnUpdateHook/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/8OnUpdateHook/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/8OnUpdateHook/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/8OnUpdateHook/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/8OnUpdateHook/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/8OnUpdateHook/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/8OnUpdateHook/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/8OnUpdateHook/types/helpers/BotHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/BotHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/8OnUpdateHook/types/helpers/DialogueHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/8OnUpdateHook/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/8OnUpdateHook/types/helpers/HealthHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/HealthHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/8OnUpdateHook/types/helpers/ItemHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/ItemHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/8OnUpdateHook/types/helpers/RagfairServerHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/8OnUpdateHook/types/helpers/RepairHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/RepairHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/8OnUpdateHook/types/helpers/TraderHelper.d.ts b/TypeScript/8OnUpdateHook/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/8OnUpdateHook/types/helpers/TraderHelper.d.ts +++ b/TypeScript/8OnUpdateHook/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/8OnUpdateHook/types/loaders/InitialModLoader.d.ts b/TypeScript/8OnUpdateHook/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/8OnUpdateHook/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/8OnUpdateHook/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/8OnUpdateHook/types/models/eft/common/IPmcData.d.ts b/TypeScript/8OnUpdateHook/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/8OnUpdateHook/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/8OnUpdateHook/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/8OnUpdateHook/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/8OnUpdateHook/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/8OnUpdateHook/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/8OnUpdateHook/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/8OnUpdateHook/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/8OnUpdateHook/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/8OnUpdateHook/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/8OnUpdateHook/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/8OnUpdateHook/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/8OnUpdateHook/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/8OnUpdateHook/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/8OnUpdateHook/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/8OnUpdateHook/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/8OnUpdateHook/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/8OnUpdateHook/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/8OnUpdateHook/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/8OnUpdateHook/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/8OnUpdateHook/types/models/enums/BaseClasses.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/8OnUpdateHook/types/models/enums/ConfigTypes.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/8OnUpdateHook/types/models/enums/ELocationName.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/8OnUpdateHook/types/models/enums/EquipmentSlots.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/8OnUpdateHook/types/models/enums/HideoutAreas.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/8OnUpdateHook/types/models/enums/MemberCategory.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/8OnUpdateHook/types/models/enums/MessageType.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/8OnUpdateHook/types/models/enums/Money.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/8OnUpdateHook/types/models/enums/Traders.d.ts b/TypeScript/8OnUpdateHook/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/8OnUpdateHook/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/8OnUpdateHook/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/8OnUpdateHook/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/8OnUpdateHook/types/models/spt/mod/IMod.d.ts b/TypeScript/8OnUpdateHook/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/8OnUpdateHook/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/8OnUpdateHook/types/models/spt/server/IHttpServer.d.ts b/TypeScript/8OnUpdateHook/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/8OnUpdateHook/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/8OnUpdateHook/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/8OnUpdateHook/types/routers/ImageRouter.d.ts b/TypeScript/8OnUpdateHook/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/8OnUpdateHook/types/routers/ImageRouter.d.ts +++ b/TypeScript/8OnUpdateHook/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/8OnUpdateHook/types/servers/ConfigServer.d.ts b/TypeScript/8OnUpdateHook/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/8OnUpdateHook/types/servers/ConfigServer.d.ts +++ b/TypeScript/8OnUpdateHook/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/8OnUpdateHook/types/servers/HttpServer.d.ts b/TypeScript/8OnUpdateHook/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/8OnUpdateHook/types/servers/HttpServer.d.ts +++ b/TypeScript/8OnUpdateHook/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/8OnUpdateHook/types/servers/RagfairServer.d.ts b/TypeScript/8OnUpdateHook/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/8OnUpdateHook/types/servers/RagfairServer.d.ts +++ b/TypeScript/8OnUpdateHook/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/8OnUpdateHook/types/services/FenceService.d.ts b/TypeScript/8OnUpdateHook/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/8OnUpdateHook/types/services/FenceService.d.ts +++ b/TypeScript/8OnUpdateHook/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/8OnUpdateHook/types/services/RagfairPriceService.d.ts b/TypeScript/8OnUpdateHook/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/8OnUpdateHook/types/services/RagfairPriceService.d.ts +++ b/TypeScript/8OnUpdateHook/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/8OnUpdateHook/types/services/mod/image/imageRouteService.d.ts b/TypeScript/8OnUpdateHook/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/8OnUpdateHook/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/8OnUpdateHook/types/utils/VFS.d.ts b/TypeScript/8OnUpdateHook/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/8OnUpdateHook/types/utils/VFS.d.ts +++ b/TypeScript/8OnUpdateHook/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/8OnUpdateHook/types/utils/Watermark.d.ts b/TypeScript/8OnUpdateHook/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/8OnUpdateHook/types/utils/Watermark.d.ts +++ b/TypeScript/8OnUpdateHook/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string; diff --git a/TypeScript/9RouterHooks/types/controllers/BotController.d.ts b/TypeScript/9RouterHooks/types/controllers/BotController.d.ts index d7dc36d..8ecb97f 100644 --- a/TypeScript/9RouterHooks/types/controllers/BotController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/BotController.d.ts @@ -1,11 +1,11 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { BotGenerator } from "../generators/BotGenerator"; +import { BotHelper } from "../helpers/BotHelper"; 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 { ConfigServer } from "../servers/ConfigServer"; -import { BotHelper } from "../helpers/BotHelper"; -import { BotGenerator } from "../generators/BotGenerator"; +import { DatabaseServer } from "../servers/DatabaseServer"; export declare class BotController { private databaseServer; private botGenerator; diff --git a/TypeScript/9RouterHooks/types/controllers/DialogueController.d.ts b/TypeScript/9RouterHooks/types/controllers/DialogueController.d.ts index 8095666..8cf2531 100644 --- a/TypeScript/9RouterHooks/types/controllers/DialogueController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/DialogueController.d.ts @@ -1,10 +1,10 @@ -import { SaveServer } from "../servers/SaveServer"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; -import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; import { IGetFriendListDataResponse } from "../models/eft/dialog/IGetFriendListDataResponse"; import { IGetMailDialogViewResponseData } from "../models/eft/dialog/IGetMailDialogViewResponseData"; -import { IGetAllAttachmentsResponse } from "../models/eft/dialog/IGetAllAttachmentsResponse"; +import { IGetBodyResponseData } from "../models/eft/httpResponse/IGetBodyResponseData"; +import { DialogueInfo } from "../models/eft/profile/IAkiProfile"; +import { SaveServer } from "../servers/SaveServer"; import { HttpResponseUtil } from "../utils/HttpResponseUtil"; export declare class DialogueController { private httpResponse; diff --git a/TypeScript/9RouterHooks/types/controllers/HideoutController.d.ts b/TypeScript/9RouterHooks/types/controllers/HideoutController.d.ts index 22b7040..f35c23b 100644 --- a/TypeScript/9RouterHooks/types/controllers/HideoutController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/HideoutController.d.ts @@ -1,29 +1,29 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +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 { PaymentHelper } from "../helpers/PaymentHelper"; -import { InventoryHelper } from "../helpers/InventoryHelper"; -import { HideoutHelper } from "../helpers/HideoutHelper"; -import { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IPmcData } from "../models/eft/common/IPmcData"; import { HideoutUpgradeCompleteRequestData } from "../models/eft/hideout/HideoutUpgradeCompleteRequestData"; -import { IHideoutPutItemInRequestData } from "../models/eft/hideout/IHideoutPutItemInRequestData"; -import { IHideoutTakeItemOutRequestData } from "../models/eft/hideout/IHideoutTakeItemOutRequestData"; -import { IHideoutToggleAreaRequestData } from "../models/eft/hideout/IHideoutToggleAreaRequestData"; -import { IHideoutSingleProductionStartRequestData } from "../models/eft/hideout/IHideoutSingleProductionStartRequestData"; -import { IHideoutScavCaseStartRequestData } from "../models/eft/hideout/IHideoutScavCaseStartRequestData"; -import { IHideoutTakeProductionRequestData } from "../models/eft/hideout/IHideoutTakeProductionRequestData"; 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 { IHideoutUpgradeRequestData } from "../models/eft/hideout/IHideoutUpgradeRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { PlayerService } from "../services/PlayerService"; +import { HashUtil } from "../utils/HashUtil"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class HideoutController { private logger; private hashUtil; diff --git a/TypeScript/9RouterHooks/types/controllers/InraidController.d.ts b/TypeScript/9RouterHooks/types/controllers/InraidController.d.ts index 1033e5f..c1cd6f5 100644 --- a/TypeScript/9RouterHooks/types/controllers/InraidController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/InraidController.d.ts @@ -1,16 +1,16 @@ -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; +import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; import { HealthHelper } from "../helpers/HealthHelper"; +import { InRaidHelper } from "../helpers/InRaidHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { QuestHelper } from "../helpers/QuestHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; import { IRegisterPlayerRequestData } from "../models/eft/inRaid/IRegisterPlayerRequestData"; import { ISaveProgressRequestData } from "../models/eft/inRaid/ISaveProgressRequestData"; import { ConfigServer } from "../servers/ConfigServer"; -import { JsonUtil } from "../utils/JsonUtil"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { InRaidHelper } from "../helpers/InRaidHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; import { InsuranceService } from "../services/InsuranceService"; -import { ExtendedProfileHelper } from "../helpers/ExtendedProfileHelper"; +import { JsonUtil } from "../utils/JsonUtil"; export declare class InraidController { private saveServer; private jsonUtil; diff --git a/TypeScript/9RouterHooks/types/controllers/InsuranceController.d.ts b/TypeScript/9RouterHooks/types/controllers/InsuranceController.d.ts index 50437a6..b175a06 100644 --- a/TypeScript/9RouterHooks/types/controllers/InsuranceController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/InsuranceController.d.ts @@ -1,19 +1,19 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { SaveServer } from "../servers/SaveServer"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PaymentService } from "../services/PaymentService"; import { DialogueHelper } from "../helpers/DialogueHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { ItemHelper } from "../helpers/ItemHelper"; +import { ProfileHelper } from "../helpers/ProfileHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IGetInsuranceCostRequestData } from "../models/eft/insurance/IGetInsuranceCostRequestData"; import { IInsureRequestData } from "../models/eft/insurance/IInsureRequestData"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { InsuranceService } from "../services/InsuranceService"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { InsuranceService } from "../services/InsuranceService"; +import { PaymentService } from "../services/PaymentService"; +import { RandomUtil } from "../utils/RandomUtil"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class InsuranceController { private logger; private randomUtil; diff --git a/TypeScript/9RouterHooks/types/controllers/LauncherController.d.ts b/TypeScript/9RouterHooks/types/controllers/LauncherController.d.ts index d3d8e6a..2a30713 100644 --- a/TypeScript/9RouterHooks/types/controllers/LauncherController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/LauncherController.d.ts @@ -1,12 +1,12 @@ -import { HashUtil } from "../utils/HashUtil"; -import { SaveServer } from "../servers/SaveServer"; +import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; +import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; +import { IRegisterData } from "../models/eft/launcher/IRegisterData"; +import { Info } from "../models/eft/profile/IAkiProfile"; import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { IRegisterData } from "../models/eft/launcher/IRegisterData"; -import { ILoginRequestData } from "../models/eft/launcher/ILoginRequestData"; -import { IChangeRequestData } from "../models/eft/launcher/IChangeRequestData"; -import { Info } from "../models/eft/profile/IAkiProfile"; -import { HttpServerHelper } from "../helpers/HttpServerHelper"; +import { SaveServer } from "../servers/SaveServer"; +import { HashUtil } from "../utils/HashUtil"; export declare class LauncherController { private hashUtil; private saveServer; diff --git a/TypeScript/9RouterHooks/types/controllers/QuestController.d.ts b/TypeScript/9RouterHooks/types/controllers/QuestController.d.ts index a964c32..d8caee5 100644 --- a/TypeScript/9RouterHooks/types/controllers/QuestController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/QuestController.d.ts @@ -1,20 +1,20 @@ -import { TimeUtil } from "../utils/TimeUtil"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; -import { QuestHelper } from "../helpers/QuestHelper"; -import { ItemHelper } from "../helpers/ItemHelper"; import { DialogueHelper } from "../helpers/DialogueHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; import { ProfileHelper } from "../helpers/ProfileHelper"; import { QuestConditionHelper } from "../helpers/QuestConditionHelper"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { PlayerService } from "../services/PlayerService"; +import { QuestHelper } from "../helpers/QuestHelper"; import { IPmcData } from "../models/eft/common/IPmcData"; import { IQuest } from "../models/eft/common/tables/IQuest"; +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 { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PlayerService } from "../services/PlayerService"; +import { TimeUtil } from "../utils/TimeUtil"; export declare class QuestController { private logger; private timeUtil; diff --git a/TypeScript/9RouterHooks/types/controllers/RepairController.d.ts b/TypeScript/9RouterHooks/types/controllers/RepairController.d.ts index 3a9f3a2..77dd47a 100644 --- a/TypeScript/9RouterHooks/types/controllers/RepairController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/RepairController.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { QuestHelper } from "../helpers/QuestHelper"; -import { TraderHelper } from "../helpers/TraderHelper"; -import { PaymentService } from "../services/PaymentService"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { IRepairActionDataRequest } from "../models/eft/repair/IRepairActionDataRequest"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ITraderRepairActionDataRequest } from "../models/eft/repair/ITraderRepairActionDataRequest"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RepairHelper } from "../helpers/RepairHelper"; +import { TraderHelper } from "../helpers/TraderHelper"; +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"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { PaymentService } from "../services/PaymentService"; export declare class RepairController { private logger; private itemEventRouter; diff --git a/TypeScript/9RouterHooks/types/controllers/RepeatableQuestController.d.ts b/TypeScript/9RouterHooks/types/controllers/RepeatableQuestController.d.ts index bd5e5a1..a33ad62 100644 --- a/TypeScript/9RouterHooks/types/controllers/RepeatableQuestController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/RepeatableQuestController.d.ts @@ -8,7 +8,8 @@ import { IPmcData, TraderInfo } from "../models/eft/common/IPmcData"; import { ICompletion, ICompletionAvailableFor, IElimination, IEliminationCondition, IExploration, IExplorationCondition, IPmcDataRepeatableQuest, IRepeatableQuest, IReward, IRewards } from "../models/eft/common/tables/IRepeatableQuests"; import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; import { IRepeatableQuestChangeRequest } from "../models/eft/quests/IRepeatableQuestChangeRequest"; -import { ELocationName, IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; +import { ELocationName } from "../models/enums/ELocationName"; +import { IRepeatableQuestConfig } from "../models/spt/config/IQuestConfig"; import { ILogger } from "../models/spt/utils/ILogger"; import { ItemEventRouter } from "../routers/ItemEventRouter"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/9RouterHooks/types/controllers/WeatherController.d.ts b/TypeScript/9RouterHooks/types/controllers/WeatherController.d.ts index 4f8bcf1..312c3a3 100644 --- a/TypeScript/9RouterHooks/types/controllers/WeatherController.d.ts +++ b/TypeScript/9RouterHooks/types/controllers/WeatherController.d.ts @@ -1,6 +1,6 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { WeatherGenerator } from "../generators/WeatherGenerator"; import { IWeatherData } from "../models/eft/weather/IWeatherData"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WeatherController { private weatherGenerator; private configServer; diff --git a/TypeScript/9RouterHooks/types/generators/BotGenerator.d.ts b/TypeScript/9RouterHooks/types/generators/BotGenerator.d.ts index af7d7d4..e2565b7 100644 --- a/TypeScript/9RouterHooks/types/generators/BotGenerator.d.ts +++ b/TypeScript/9RouterHooks/types/generators/BotGenerator.d.ts @@ -1,14 +1,14 @@ -import { HashUtil } from "../utils/HashUtil"; -import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { BotHelper } from "../helpers/BotHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; import { IGenerateBotsRequestData } from "../models/eft/bot/IGenerateBotsRequestData"; import { IBotBase } from "../models/eft/common/tables/IBotBase"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { JsonUtil } from "../utils/JsonUtil"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; -import { GameEventHelper } from "../helpers/GameEventHelper"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { HashUtil } from "../utils/HashUtil"; +import { JsonUtil } from "../utils/JsonUtil"; +import { RandomUtil } from "../utils/RandomUtil"; import { BotInventoryGenerator } from "./BotInventoryGenerator"; -import { BotHelper } from "../helpers/BotHelper"; export declare class BotGenerator { private logger; private hashUtil; diff --git a/TypeScript/9RouterHooks/types/generators/BotLootGenerator.d.ts b/TypeScript/9RouterHooks/types/generators/BotLootGenerator.d.ts index 3bf1b36..1d8c8e1 100644 --- a/TypeScript/9RouterHooks/types/generators/BotLootGenerator.d.ts +++ b/TypeScript/9RouterHooks/types/generators/BotLootGenerator.d.ts @@ -1,13 +1,13 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { HandbookHelper } from "../helpers/HandbookHelper"; import { PMCLootGenerator } from "../generators/PMCLootGenerator"; +import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; +import { HandbookHelper } from "../helpers/HandbookHelper"; import { Inventory as PmcInventory } from "../models/eft/common/IPmcData"; import { ItemMinMax, Items } from "../models/eft/common/tables/IBotType"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { BotGeneratorHelper } from "../helpers/BotGeneratorHelper"; export declare class BotLootGenerator { private jsonUtil; private hashUtil; diff --git a/TypeScript/9RouterHooks/types/generators/LocationGenerator.d.ts b/TypeScript/9RouterHooks/types/generators/LocationGenerator.d.ts index b7ba7c5..4b96792 100644 --- a/TypeScript/9RouterHooks/types/generators/LocationGenerator.d.ts +++ b/TypeScript/9RouterHooks/types/generators/LocationGenerator.d.ts @@ -1,17 +1,17 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { IStaticContainerProps, IStaticLootDetails, IStaticAmmoDetails, IStaticForcedProps } from "../models/eft/common/tables/ILootBase"; +import { ContainerHelper } from "../helpers/ContainerHelper"; +import { GameEventHelper } from "../helpers/GameEventHelper"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; import { ILooseLoot, SpawnpointTemplate } from "../models/eft/common/ILooseLoot"; import { Item } from "../models/eft/common/tables/IItem"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { GameEventHelper } from "../helpers/GameEventHelper"; -import { ContainerHelper } from "../helpers/ContainerHelper"; -import { PresetHelper } from "../helpers/PresetHelper"; +import { IStaticAmmoDetails, IStaticContainerProps, IStaticForcedProps, IStaticLootDetails } from "../models/eft/common/tables/ILootBase"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { JsonUtil } from "../utils/JsonUtil"; import { MathUtil } from "../utils/MathUtil"; import { ObjectId } from "../utils/ObjectId"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { RandomUtil } from "../utils/RandomUtil"; export interface IContainerItem { items: Item[]; width: number; diff --git a/TypeScript/9RouterHooks/types/generators/RagfairAssortGenerator.d.ts b/TypeScript/9RouterHooks/types/generators/RagfairAssortGenerator.d.ts index 8b52a90..1897050 100644 --- a/TypeScript/9RouterHooks/types/generators/RagfairAssortGenerator.d.ts +++ b/TypeScript/9RouterHooks/types/generators/RagfairAssortGenerator.d.ts @@ -1,6 +1,6 @@ +import { ItemHelper } from "../helpers/ItemHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { DatabaseServer } from "../servers/DatabaseServer"; -import { ItemHelper } from "../helpers/ItemHelper"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; export declare class RagfairAssortGenerator { diff --git a/TypeScript/9RouterHooks/types/generators/RagfairOfferGenerator.d.ts b/TypeScript/9RouterHooks/types/generators/RagfairOfferGenerator.d.ts index cb2566c..2939b3a 100644 --- a/TypeScript/9RouterHooks/types/generators/RagfairOfferGenerator.d.ts +++ b/TypeScript/9RouterHooks/types/generators/RagfairOfferGenerator.d.ts @@ -1,21 +1,21 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; -import { SaveServer } from "../servers/SaveServer"; +import { ItemHelper } from "../helpers/ItemHelper"; +import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { PresetHelper } from "../helpers/PresetHelper"; import { RagfairAssortGenerator } from "./RagfairAssortGenerator"; -import { ItemHelper } from "../helpers/ItemHelper"; -import { RagfairOfferService } from "../services/RagfairOfferService"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { FenceService } from "../services/FenceService"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RagfairOfferGenerator { private logger; private jsonUtil; diff --git a/TypeScript/9RouterHooks/types/helpers/BotGeneratorHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/BotGeneratorHelper.d.ts index 6abdc07..141f71d 100644 --- a/TypeScript/9RouterHooks/types/helpers/BotGeneratorHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/BotGeneratorHelper.d.ts @@ -12,7 +12,7 @@ import { RandomUtil } from "../utils/RandomUtil"; import { ContainerHelper } from "./ContainerHelper"; import { InventoryHelper } from "./InventoryHelper"; import { ItemHelper } from "./ItemHelper"; -declare class BotGeneratorHelper { +export declare class BotGeneratorHelper { private logger; private jsonUtil; private hashUtil; @@ -58,22 +58,3 @@ export declare class ExhaustableArray { getFirstValue(): T; hasValues(): boolean; } -declare namespace BotGeneratorHelper { - enum EquipmentSlots { - HEADWEAR = "Headwear", - EARPIECE = "Earpiece", - FACE_COVER = "FaceCover", - ARMOR_VEST = "ArmorVest", - EYEWEAR = "Eyewear", - ARM_BAND = "ArmBand", - TACTICAL_VEST = "TacticalVest", - POCKETS = "Pockets", - BACKPACK = "Backpack", - SECURED_CONTAINER = "SecuredContainer", - FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", - SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", - HOLSTER = "Holster", - SCABBARD = "Scabbard" - } -} -export { BotGeneratorHelper }; diff --git a/TypeScript/9RouterHooks/types/helpers/BotHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/BotHelper.d.ts index 032218b..d901362 100644 --- a/TypeScript/9RouterHooks/types/helpers/BotHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/BotHelper.d.ts @@ -1,9 +1,9 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { Difficulty } from "../models/eft/common/tables/IBotType"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class BotHelper { private logger; private jsonUtil; diff --git a/TypeScript/9RouterHooks/types/helpers/DialogueHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/DialogueHelper.d.ts index d8082e4..ae1f581 100644 --- a/TypeScript/9RouterHooks/types/helpers/DialogueHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/DialogueHelper.d.ts @@ -1,10 +1,11 @@ +import { Dialogue, MessageContent, MessagePreview } from "../models/eft/profile/IAkiProfile"; +import { MessageType } from "../models/enums/MessageType"; import { DatabaseServer } from "../servers/DatabaseServer"; import { SaveServer } from "../servers/SaveServer"; -import { ItemHelper } from "./ItemHelper"; -import { Dialogue, MessageContent, MessagePreview, MessageType } from "../models/eft/profile/IAkiProfile"; import { HashUtil } from "../utils/HashUtil"; -import { NotifierHelper } from "./NotifierHelper"; +import { ItemHelper } from "./ItemHelper"; import { NotificationSendHelper } from "./NotificationSendHelper"; +import { NotifierHelper } from "./NotifierHelper"; export declare class DialogueHelper { private hashUtil; private saveServer; diff --git a/TypeScript/9RouterHooks/types/helpers/DurabilityLimitsHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/DurabilityLimitsHelper.d.ts index ee8c887..609bc7d 100644 --- a/TypeScript/9RouterHooks/types/helpers/DurabilityLimitsHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/DurabilityLimitsHelper.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; +import { ConfigServer } from "../servers/ConfigServer"; import { RandomUtil } from "../utils/RandomUtil"; import { BotHelper } from "./BotHelper"; export declare class DurabilityLimitsHelper { diff --git a/TypeScript/9RouterHooks/types/helpers/HealthHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/HealthHelper.d.ts index fb5bed7..bb160a3 100644 --- a/TypeScript/9RouterHooks/types/helpers/HealthHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/HealthHelper.d.ts @@ -1,11 +1,11 @@ -import { SaveServer } from "../servers/SaveServer"; import { IPmcData } from "../models/eft/common/IPmcData"; -import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; import { ISyncHealthRequestData } from "../models/eft/health/ISyncHealthRequestData"; +import { IAkiProfile } from "../models/eft/profile/IAkiProfile"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { SaveServer } from "../servers/SaveServer"; import { JsonUtil } from "../utils/JsonUtil"; import { TimeUtil } from "../utils/TimeUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class HealthHelper { private jsonUtil; private logger; diff --git a/TypeScript/9RouterHooks/types/helpers/ItemHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/ItemHelper.d.ts index 8c1175a..5ff64b6 100644 --- a/TypeScript/9RouterHooks/types/helpers/ItemHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/ItemHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { InsuredItem, IPmcData } from "../models/eft/common/IPmcData"; -import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; import { Item } from "../models/eft/common/tables/IItem"; +import { ITemplateItem, StackSlot } from "../models/eft/common/tables/ITemplateItem"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; declare class ItemHelper { private logger; private hashUtil; @@ -139,98 +139,9 @@ declare class ItemHelper { getItemSize(items: Item[], rootItemId: string): ItemHelper.ItemSize; } declare namespace ItemHelper { - enum BaseClasses { - WEAPON = "5422acb9af1c889c16000029", - ARMOR = "5448e54d4bdc2dcc718b4568", - VEST = "5448e5284bdc2dcb718b4567", - BACKPACK = "5448e53e4bdc2d60728b4567", - VISORS = "5448e5724bdc2ddf718b4568", - FOOD = "5448e8d04bdc2ddf718b4569", - DRINK = "5448e8d64bdc2dce718b4568", - BARTER_ITEM = "5448eb774bdc2d0a728b4567", - INFO = "5448ecbe4bdc2d60728b4568", - MEDKIT = "5448f39d4bdc2d0a728b4568", - DRUGS = "5448f3a14bdc2d27728b4569", - STIMULATOR = "5448f3a64bdc2d60728b456a", - MEDICAL = "5448f3ac4bdc2dce718b4569", - MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", - MOD = "5448fe124bdc2da5018b4567", - FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", - FUEL = "5d650c3e815116009f6201d2", - GEAR_MOD = "55802f3e4bdc2de7118b4584", - STOCK = "55818a594bdc2db9688b456a", - FOREGRIP = "55818af64bdc2d5b648b4570", - MASTER_MOD = "55802f4a4bdc2ddb688b4569", - MOUNT = "55818b224bdc2dde698b456f", - MUZZLE = "5448fe394bdc2d0d028b456c", - SIGHTS = "5448fe7a4bdc2d6f028b456b", - MEDS = "543be5664bdc2dd4348b4569", - MONEY = "543be5dd4bdc2deb348b4569", - KEY = "543be5e94bdc2df1348b4568", - KEY_MECHANICAL = "5c99f98d86f7745c314214b3", - KEYCARD = "5c164d2286f774194c5e69fa", - EQUIPMENT = "543be5f84bdc2dd4348b456a", - THROW_WEAPON = "543be6564bdc2df4348b4568", - FOOD_DRINK = "543be6674bdc2df1348b4569", - PISTOL = "5447b5cf4bdc2d65278b4567", - SMG = "5447b5e04bdc2d62278b4567", - ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", - ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", - SHOTGUN = "5447b6094bdc2dc3278b4567", - MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", - SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", - MACHINE_GUN = "5447bed64bdc2d97278b4568", - GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", - SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", - SPEC_ITEM = "5447e0e74bdc2d3c308b4567", - KNIFE = "5447e1d04bdc2dff2f8b4567", - AMMO = "5485a8684bdc2da71d8b4567", - AMMO_BOX = "543be5cb4bdc2deb348b4568", - LOOT_CONTAINER = "566965d44bdc2d814c8b4571", - MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", - SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", - STASH = "566abbb64bdc2d144c8b457d", - SORTING_TABLE = "6050cac987d3f925bf016837", - LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", - SIMPLE_CONTAINER = "5795f317245977243854e041", - INVENTORY = "55d720f24bdc2d88028b456d", - STATIONARY_CONTAINER = "567583764bdc2d98058b456e", - POCKETS = "557596e64bdc2dc2118b4571", - ARMBAND = "5b3f15d486f77432d0509248", - DOG_TAG_USEC = "59f32c3b86f77472a31742f0", - DOG_TAG_BEAR = "59f32bb586f774757e1e8442", - JEWELRY = "57864a3d24597754843f8721", - ELECTRONICS = "57864a66245977548f04a81f", - BUILDING_MATERIAL = "57864ada245977548638de91", - TOOL = "57864bb7245977548b3b66c2", - HOUSEHOLD_GOODS = "57864c322459775490116fbf", - LUBRICANT = "57864e4c24597754843f8723", - BATTERY = "57864ee62459775490116fc1", - ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", - REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", - TACTICAL_COMBO = "55818b164bdc2ddc698b456c", - MAGAZINE = "5448bc234bdc2d3c308b4569", - LIGHT_LASER = "55818b0e4bdc2dde698b456e", - FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", - COLLIMATOR = "55818ad54bdc2ddc698b4569", - COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", - COMPENSATOR = "550aa4af4bdc2dd4348b456e", - OPTIC_SCOPE = "55818ae44bdc2dde698b456c", - SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", - OTHER = "590c745b86f7743cc433c5f2", - SILENCER = "550aa4cd4bdc2dd8348b456c", - PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", - ITEM = "54009119af1c881c07000029", - CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" - } interface ItemSize { width: number; height: number; } - enum Money { - ROUBLES = "5449016a4bdc2d6f028b456f", - EUROS = "569668774bdc2da2298b4568", - DOLLARS = "5696686a4bdc2da3298b456a" - } } export { ItemHelper }; diff --git a/TypeScript/9RouterHooks/types/helpers/RagfairServerHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/RagfairServerHelper.d.ts index 0f32a66..aca9651 100644 --- a/TypeScript/9RouterHooks/types/helpers/RagfairServerHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/RagfairServerHelper.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../models/eft/common/MemberCategory"; +import { MemberCategory } from "../models/enums/MemberCategory"; import { Item } from "../models/eft/common/tables/IItem"; import { ITemplateItem } from "../models/eft/common/tables/ITemplateItem"; import { ConfigServer } from "../servers/ConfigServer"; diff --git a/TypeScript/9RouterHooks/types/helpers/RepairHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/RepairHelper.d.ts index d11d0d2..47123e1 100644 --- a/TypeScript/9RouterHooks/types/helpers/RepairHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/RepairHelper.d.ts @@ -1,10 +1,10 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { IPmcData } from "../models/eft/common/IPmcData"; import { Item } from "../models/eft/common/tables/IItem"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class RepairHelper { private logger; private jsonUtil; diff --git a/TypeScript/9RouterHooks/types/helpers/TraderHelper.d.ts b/TypeScript/9RouterHooks/types/helpers/TraderHelper.d.ts index 5440afe..ec64d59 100644 --- a/TypeScript/9RouterHooks/types/helpers/TraderHelper.d.ts +++ b/TypeScript/9RouterHooks/types/helpers/TraderHelper.d.ts @@ -1,15 +1,15 @@ -import { SaveServer } from "../servers/SaveServer"; +import { IPmcData } from "../models/eft/common/IPmcData"; +import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; import { DatabaseServer } from "../servers/DatabaseServer"; +import { SaveServer } from "../servers/SaveServer"; +import { FenceService } from "../services/FenceService"; import { PlayerService } from "../services/PlayerService"; import { HandbookHelper } from "./HandbookHelper"; import { ItemHelper } from "./ItemHelper"; -import { ProfileHelper } from "./ProfileHelper"; import { PaymentHelper } from "./PaymentHelper"; -import { FenceService } from "../services/FenceService"; -import { IBarterScheme, ITraderAssort, ITraderBase, LoyaltyLevel } from "../models/eft/common/tables/ITrader"; -import { IPmcData } from "../models/eft/common/IPmcData"; -import { ConfigServer } from "../servers/ConfigServer"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { ProfileHelper } from "./ProfileHelper"; export declare class TraderHelper { private logger; private databaseServer; diff --git a/TypeScript/9RouterHooks/types/loaders/InitialModLoader.d.ts b/TypeScript/9RouterHooks/types/loaders/InitialModLoader.d.ts index d30a3fe..8ee3958 100644 --- a/TypeScript/9RouterHooks/types/loaders/InitialModLoader.d.ts +++ b/TypeScript/9RouterHooks/types/loaders/InitialModLoader.d.ts @@ -1,25 +1,29 @@ import { DependencyContainer } from "tsyringe"; +import { ModLoader } from "../models/spt/mod/IMod"; import { IModLoader } from "../models/spt/mod/IModLoader"; import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; import { ModCompilerService } from "../services/ModCompilerService"; import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; +import { BundleLoader } from "./BundleLoader"; export declare class InitialModLoader implements IModLoader { private logger; private vfs; private jsonUtil; private modCompilerService; + private bundleLoader; private configServer; private static container; private readonly basepath; private imported; private onLoad; private akiConfig; - constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, configServer: ConfigServer); + constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil, modCompilerService: ModCompilerService, bundleLoader: BundleLoader, configServer: ConfigServer); load(container: DependencyContainer): Promise; getBundles(local: boolean): string; getBundle(key: string, local: boolean): void; + getMods(): Record; getImportedModsNames(): string[]; getModPath(mod: string): string; private importClass; diff --git a/TypeScript/9RouterHooks/types/models/eft/common/IPmcData.d.ts b/TypeScript/9RouterHooks/types/models/eft/common/IPmcData.d.ts index 2360147..adc2aa5 100644 --- a/TypeScript/9RouterHooks/types/models/eft/common/IPmcData.d.ts +++ b/TypeScript/9RouterHooks/types/models/eft/common/IPmcData.d.ts @@ -1,8 +1,8 @@ import { IRagfairOffer } from "../ragfair/IRagfairOffer"; import { IPmcDataRepeatableQuest } from "./tables/IRepeatableQuests"; import { Item, Upd } from "./tables/IItem"; -import { HideoutAreasEnum } from "../hideout/HideoutAreasEnum"; -import { MemberCategory } from "./MemberCategory"; +import { HideoutAreas } from "../../enums/HideoutAreas"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IPmcData { _id: string; aid: string; @@ -289,7 +289,7 @@ export interface Production extends Productive { ProductionTime: number; } export interface HideoutArea { - type: HideoutAreasEnum; + type: HideoutAreas; level: number; active: boolean; passiveBonusesEnabled: boolean; diff --git a/TypeScript/9RouterHooks/types/models/eft/common/tables/IQuest.d.ts b/TypeScript/9RouterHooks/types/models/eft/common/tables/IQuest.d.ts index 0aa7a4e..e1fc888 100644 --- a/TypeScript/9RouterHooks/types/models/eft/common/tables/IQuest.d.ts +++ b/TypeScript/9RouterHooks/types/models/eft/common/tables/IQuest.d.ts @@ -46,6 +46,40 @@ export interface AvailableForProps { visibilityConditions?: VisibilityCondition[]; target?: string | string[]; status?: number[]; + onlyFoundInRaid?: boolean; + oneSessionOnly?: boolean; + doNotResetIfCounterCompleted?: boolean; + dogtagLevel?: number; + maxDurability?: number; + minDurability?: number; + counter?: AvailableForCounter; + plantTime?: number; + zoneId?: string; + type?: boolean; +} +export interface AvailableForCounter { + id: string; + conditions: CounterCondition[]; +} +export interface CounterCondition { + _parent: string; + _props: CounterProps; +} +export interface CounterProps { + id: string; + target: string[] | string; + compareMethod?: string; + value?: string; + weapon?: string[]; + equipmentInclusive?: string[][]; + weaponModsInclusive?: string[][]; + status?: string[]; + bodyPart?: string[]; + daytime?: DaytimeCounter; +} +export interface DaytimeCounter { + from: number; + to: number; } export interface VisibilityCondition { id: string; diff --git a/TypeScript/9RouterHooks/types/models/eft/dialog/IGetFriendListDataResponse.d.ts b/TypeScript/9RouterHooks/types/models/eft/dialog/IGetFriendListDataResponse.d.ts index 41858c9..1d0c0e8 100644 --- a/TypeScript/9RouterHooks/types/models/eft/dialog/IGetFriendListDataResponse.d.ts +++ b/TypeScript/9RouterHooks/types/models/eft/dialog/IGetFriendListDataResponse.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; export interface IGetFriendListDataResponse { Friends: Friend[]; Ignore: any[]; diff --git a/TypeScript/9RouterHooks/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts b/TypeScript/9RouterHooks/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts index db45477..43d416e 100644 --- a/TypeScript/9RouterHooks/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts +++ b/TypeScript/9RouterHooks/types/models/eft/dialog/IGetMailDialogViewRequestData.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface IGetMailDialogViewRequestData { type: MessageType; dialogId: string; diff --git a/TypeScript/9RouterHooks/types/models/eft/dialog/ISendMessageRequest.d.ts b/TypeScript/9RouterHooks/types/models/eft/dialog/ISendMessageRequest.d.ts index 5f140c7..dd79deb 100644 --- a/TypeScript/9RouterHooks/types/models/eft/dialog/ISendMessageRequest.d.ts +++ b/TypeScript/9RouterHooks/types/models/eft/dialog/ISendMessageRequest.d.ts @@ -1,4 +1,4 @@ -import { MessageType } from "../profile/IAkiProfile"; +import { MessageType } from "../../enums/MessageType"; export interface ISendMessageRequest { dialogId: string; type: MessageType; diff --git a/TypeScript/9RouterHooks/types/models/eft/profile/IAkiProfile.d.ts b/TypeScript/9RouterHooks/types/models/eft/profile/IAkiProfile.d.ts index f95e9a8..80dd02d 100644 --- a/TypeScript/9RouterHooks/types/models/eft/profile/IAkiProfile.d.ts +++ b/TypeScript/9RouterHooks/types/models/eft/profile/IAkiProfile.d.ts @@ -1,3 +1,4 @@ +import { MessageType } from "../../enums/MessageType"; import { IPmcData } from "../common/IPmcData"; import { Item } from "../common/tables/IItem"; export interface IAkiProfile { @@ -43,22 +44,6 @@ export interface DialogueInfo { new: number; attachmentsNew: number; } -export declare enum MessageType { - USER_MESSAGE = 1, - NPC_TRADER = 2, - AUCTION_MESSAGE = 3, - FLEAMARKET_MESSAGE = 4, - ADMIN_MESSAGE = 5, - GROUP_CHAT_MESSAGE = 6, - SYSTEM_MESSAGE = 7, - INSURANCE_RETURN = 8, - GLOBAL_CHAT = 9, - QUEST_START = 10, - QUEST_FAIL = 11, - QUEST_SUCCESS = 12, - MESSAGE_WITH_ITEMS = 13, - INITIAL_SUPPORT = 14 -} export interface Message { _id: string; uid: string; diff --git a/TypeScript/9RouterHooks/types/models/eft/ragfair/IRagfairOffer.d.ts b/TypeScript/9RouterHooks/types/models/eft/ragfair/IRagfairOffer.d.ts index 6620a00..63f655e 100644 --- a/TypeScript/9RouterHooks/types/models/eft/ragfair/IRagfairOffer.d.ts +++ b/TypeScript/9RouterHooks/types/models/eft/ragfair/IRagfairOffer.d.ts @@ -1,4 +1,4 @@ -import { MemberCategory } from "../common/MemberCategory"; +import { MemberCategory } from "../../enums/MemberCategory"; import { Item } from "../common/tables/IItem"; export interface IRagfairOffer { sellResult?: SellResult[]; diff --git a/TypeScript/9RouterHooks/types/models/enums/BaseClasses.d.ts b/TypeScript/9RouterHooks/types/models/enums/BaseClasses.d.ts new file mode 100644 index 0000000..e733bca --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/enums/BaseClasses.d.ts @@ -0,0 +1,84 @@ +export declare enum BaseClasses { + WEAPON = "5422acb9af1c889c16000029", + ARMOR = "5448e54d4bdc2dcc718b4568", + VEST = "5448e5284bdc2dcb718b4567", + BACKPACK = "5448e53e4bdc2d60728b4567", + VISORS = "5448e5724bdc2ddf718b4568", + FOOD = "5448e8d04bdc2ddf718b4569", + DRINK = "5448e8d64bdc2dce718b4568", + BARTER_ITEM = "5448eb774bdc2d0a728b4567", + INFO = "5448ecbe4bdc2d60728b4568", + MEDKIT = "5448f39d4bdc2d0a728b4568", + DRUGS = "5448f3a14bdc2d27728b4569", + STIMULATOR = "5448f3a64bdc2d60728b456a", + MEDICAL = "5448f3ac4bdc2dce718b4569", + MEDICAL_SUPPLIES = "57864c8c245977548867e7f1", + MOD = "5448fe124bdc2da5018b4567", + FUNCTIONAL_MOD = "550aa4154bdc2dd8348b456b", + FUEL = "5d650c3e815116009f6201d2", + GEAR_MOD = "55802f3e4bdc2de7118b4584", + STOCK = "55818a594bdc2db9688b456a", + FOREGRIP = "55818af64bdc2d5b648b4570", + MASTER_MOD = "55802f4a4bdc2ddb688b4569", + MOUNT = "55818b224bdc2dde698b456f", + MUZZLE = "5448fe394bdc2d0d028b456c", + SIGHTS = "5448fe7a4bdc2d6f028b456b", + MEDS = "543be5664bdc2dd4348b4569", + MONEY = "543be5dd4bdc2deb348b4569", + KEY = "543be5e94bdc2df1348b4568", + KEY_MECHANICAL = "5c99f98d86f7745c314214b3", + KEYCARD = "5c164d2286f774194c5e69fa", + EQUIPMENT = "543be5f84bdc2dd4348b456a", + THROW_WEAPON = "543be6564bdc2df4348b4568", + FOOD_DRINK = "543be6674bdc2df1348b4569", + PISTOL = "5447b5cf4bdc2d65278b4567", + SMG = "5447b5e04bdc2d62278b4567", + ASSAULT_RIFLE = "5447b5f14bdc2d61278b4567", + ASSAULT_CARBINE = "5447b5fc4bdc2d87278b4567", + SHOTGUN = "5447b6094bdc2dc3278b4567", + MARKSMAN_RIFLE = "5447b6194bdc2d67278b4567", + SNIPER_RIFLE = "5447b6254bdc2dc3278b4568", + MACHINE_GUN = "5447bed64bdc2d97278b4568", + GRENADE_LAUNCHER = "5447bedf4bdc2d87278b4568", + SPECIAL_WEAPON = "5447bee84bdc2dc3278b4569", + SPEC_ITEM = "5447e0e74bdc2d3c308b4567", + KNIFE = "5447e1d04bdc2dff2f8b4567", + AMMO = "5485a8684bdc2da71d8b4567", + AMMO_BOX = "543be5cb4bdc2deb348b4568", + LOOT_CONTAINER = "566965d44bdc2d814c8b4571", + MOD_CONTAINER = "5448bf274bdc2dfc2f8b456a", + SEARCHABLE_ITEM = "566168634bdc2d144c8b456c", + STASH = "566abbb64bdc2d144c8b457d", + SORTING_TABLE = "6050cac987d3f925bf016837", + LOCKABLE_CONTAINER = "5671435f4bdc2d96058b4569", + SIMPLE_CONTAINER = "5795f317245977243854e041", + INVENTORY = "55d720f24bdc2d88028b456d", + STATIONARY_CONTAINER = "567583764bdc2d98058b456e", + POCKETS = "557596e64bdc2dc2118b4571", + ARMBAND = "5b3f15d486f77432d0509248", + DOG_TAG_USEC = "59f32c3b86f77472a31742f0", + DOG_TAG_BEAR = "59f32bb586f774757e1e8442", + JEWELRY = "57864a3d24597754843f8721", + ELECTRONICS = "57864a66245977548f04a81f", + BUILDING_MATERIAL = "57864ada245977548638de91", + TOOL = "57864bb7245977548b3b66c2", + HOUSEHOLD_GOODS = "57864c322459775490116fbf", + LUBRICANT = "57864e4c24597754843f8723", + BATTERY = "57864ee62459775490116fc1", + ASSAULT_SCOPE = "55818add4bdc2d5b648b456f", + REFLEX_SIGHT = "55818ad54bdc2ddc698b4569", + TACTICAL_COMBO = "55818b164bdc2ddc698b456c", + MAGAZINE = "5448bc234bdc2d3c308b4569", + LIGHT_LASER = "55818b0e4bdc2dde698b456e", + FLASH_HIDER = "550aa4bf4bdc2dd6348b456b", + COLLIMATOR = "55818ad54bdc2ddc698b4569", + COMPACT_COLLIMATOR = "55818acf4bdc2dde698b456b", + COMPENSATOR = "550aa4af4bdc2dd4348b456e", + OPTIC_SCOPE = "55818ae44bdc2dde698b456c", + SPECIAL_SCOPE = "55818aeb4bdc2ddc698b456a", + OTHER = "590c745b86f7743cc433c5f2", + SILENCER = "550aa4cd4bdc2dd8348b456c", + PORTABLE_RANGE_FINDER = "61605ddea09d851a0a0c1bbc", + ITEM = "54009119af1c881c07000029", + CYLINDER_MAGAZINE = "610720f290b75a49ff2e5e25" +} diff --git a/TypeScript/9RouterHooks/types/models/enums/ConfigTypes.d.ts b/TypeScript/9RouterHooks/types/models/enums/ConfigTypes.d.ts new file mode 100644 index 0000000..6bd31e8 --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/enums/ConfigTypes.d.ts @@ -0,0 +1,18 @@ +export declare enum ConfigTypes { + AIRDROP = "aki-airdrop", + BOT = "aki-bot", + CORE = "aki-core", + HEALTH = "aki-health", + HIDEOUT = "aki-hideout", + HTTP = "aki-http", + IN_RAID = "aki-inraid", + INSURANCE = "aki-insurance", + INVENTORY = "aki-inventory", + LOCATION = "aki-location", + MATCH = "aki-match", + QUEST = "aki-quest", + RAGFAIR = "aki-ragfair", + REPAIR = "aki-repair", + TRADER = "aki-trader", + WEATHER = "aki-weather" +} diff --git a/TypeScript/9RouterHooks/types/models/enums/ELocationName.d.ts b/TypeScript/9RouterHooks/types/models/enums/ELocationName.d.ts new file mode 100644 index 0000000..b56cc08 --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/enums/ELocationName.d.ts @@ -0,0 +1,11 @@ +export declare enum ELocationName { + FACTORY_DAY = "factory4_day", + BIGMAP = "bigmap", + WOODS = "Woods", + SHORELINE = "Shoreline", + INTERCHANGE = "Interchange", + LIGHTHOUSE = "Lighthouse", + LABORATORY = "laboratory", + RESERVE = "RezervBase", + ANY = "any" +} diff --git a/TypeScript/9RouterHooks/types/models/enums/EquipmentSlots.d.ts b/TypeScript/9RouterHooks/types/models/enums/EquipmentSlots.d.ts new file mode 100644 index 0000000..35c18ff --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/enums/EquipmentSlots.d.ts @@ -0,0 +1,16 @@ +export declare enum EquipmentSlots { + HEADWEAR = "Headwear", + EARPIECE = "Earpiece", + FACE_COVER = "FaceCover", + ARMOR_VEST = "ArmorVest", + EYEWEAR = "Eyewear", + ARM_BAND = "ArmBand", + TACTICAL_VEST = "TacticalVest", + POCKETS = "Pockets", + BACKPACK = "Backpack", + SECURED_CONTAINER = "SecuredContainer", + FIRST_PRIMARY_WEAPON = "FirstPrimaryWeapon", + SECOND_PRIMARY_WEAPON = "SecondPrimaryWeapon", + HOLSTER = "Holster", + SCABBARD = "Scabbard" +} diff --git a/TypeScript/9RouterHooks/types/models/enums/HideoutAreas.d.ts b/TypeScript/9RouterHooks/types/models/enums/HideoutAreas.d.ts new file mode 100644 index 0000000..b44a20a --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/enums/HideoutAreas.d.ts @@ -0,0 +1,25 @@ +export declare enum HideoutAreas { + NOTSET = -1, + VENTS = 0, + SECURITY = 1, + LAVATORY = 2, + STASH = 3, + GENERATOR = 4, + HEATING = 5, + WATER_COLLECTOR = 6, + MEDSTATION = 7, + NUTRITION_UNIT = 8, + REST_SPACE = 9, + WORKBENCH = 10, + INTEL_CENTER = 11, + SHOOTING_RANGE = 12, + LIBRARY = 13, + SCAV_CASE = 14, + ILLUMINATION = 15, + PLACE_OF_FAME = 16, + AIR_FILTERING = 17, + SOLAR_POWER = 18, + BOOZE_GENERATOR = 19, + BITCOIN_FARM = 20, + CHRISTMAS_TREE = 21 +} diff --git a/TypeScript/9RouterHooks/types/models/enums/MemberCategory.d.ts b/TypeScript/9RouterHooks/types/models/enums/MemberCategory.d.ts new file mode 100644 index 0000000..3bd9a21 --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/enums/MemberCategory.d.ts @@ -0,0 +1,13 @@ +export declare enum MemberCategory { + Default = 0, + Developer = 1, + UniqueId = 2, + Trader = 4, + Group = 8, + System = 16, + ChatModerator = 32, + ChatModeratorWithPermanentBan = 64, + UnitTest = 128, + Sherpa = 256, + Emissary = 512 +} diff --git a/TypeScript/9RouterHooks/types/models/enums/MessageType.d.ts b/TypeScript/9RouterHooks/types/models/enums/MessageType.d.ts new file mode 100644 index 0000000..1b0c649 --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/enums/MessageType.d.ts @@ -0,0 +1,16 @@ +export declare enum MessageType { + USER_MESSAGE = 1, + NPC_TRADER = 2, + AUCTION_MESSAGE = 3, + FLEAMARKET_MESSAGE = 4, + ADMIN_MESSAGE = 5, + GROUP_CHAT_MESSAGE = 6, + SYSTEM_MESSAGE = 7, + INSURANCE_RETURN = 8, + GLOBAL_CHAT = 9, + QUEST_START = 10, + QUEST_FAIL = 11, + QUEST_SUCCESS = 12, + MESSAGE_WITH_ITEMS = 13, + INITIAL_SUPPORT = 14 +} diff --git a/TypeScript/9RouterHooks/types/models/enums/Money.d.ts b/TypeScript/9RouterHooks/types/models/enums/Money.d.ts new file mode 100644 index 0000000..0d39613 --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/enums/Money.d.ts @@ -0,0 +1,5 @@ +export declare enum Money { + ROUBLES = "5449016a4bdc2d6f028b456f", + EUROS = "569668774bdc2da2298b4568", + DOLLARS = "5696686a4bdc2da3298b456a" +} diff --git a/TypeScript/9RouterHooks/types/models/enums/Traders.d.ts b/TypeScript/9RouterHooks/types/models/enums/Traders.d.ts new file mode 100644 index 0000000..163cd71 --- /dev/null +++ b/TypeScript/9RouterHooks/types/models/enums/Traders.d.ts @@ -0,0 +1,10 @@ +export declare enum Traders { + PRAPOR = "54cb50c76803fa8b248b4571", + THERAPIST = "54cb57776803fa99248b456e", + FENCE = "579dc571d53a0658a154fbec", + SKIER = "58330581ace78e27b8b10cee", + PEACEKEEPER = "5935c25fb3acc3127c3d8cd9", + MECHANIC = "5a7c2eca46aef81a7ca2145d", + RAGMAN = "5ac3b934156ae10c4430e83c", + JAEGER = "5c0647fdd443bc2504c2d371" +} diff --git a/TypeScript/9RouterHooks/types/models/spt/config/IQuestConfig.d.ts b/TypeScript/9RouterHooks/types/models/spt/config/IQuestConfig.d.ts index 03dc890..be4a97b 100644 --- a/TypeScript/9RouterHooks/types/models/spt/config/IQuestConfig.d.ts +++ b/TypeScript/9RouterHooks/types/models/spt/config/IQuestConfig.d.ts @@ -1,3 +1,4 @@ +import { ELocationName } from "../../enums/ELocationName"; import { IBaseConfig } from "./IBaseConfig"; export interface IQuestConfig extends IBaseConfig { kind: "aki-quest"; @@ -15,17 +16,6 @@ export interface IRepeatableQuestConfig { traderWhitelist: ITraderWhitelist[]; questConfig: IQuestConfig; } -export declare enum ELocationName { - FACTORY_DAY = "factory4_day", - BIGMAP = "bigmap", - WOODS = "Woods", - SHORELINE = "Shoreline", - INTERCHANGE = "Interchange", - LIGHTHOUSE = "Lighthouse", - LABORATORY = "laboratory", - RESERVE = "RezervBase", - ANY = "any" -} export interface IRewardScaling { levels: number[]; experience: number[]; diff --git a/TypeScript/9RouterHooks/types/models/spt/mod/IMod.d.ts b/TypeScript/9RouterHooks/types/models/spt/mod/IMod.d.ts index 623e3dd..e6eec79 100644 --- a/TypeScript/9RouterHooks/types/models/spt/mod/IMod.d.ts +++ b/TypeScript/9RouterHooks/types/models/spt/mod/IMod.d.ts @@ -1,4 +1,4 @@ -declare namespace ModLoader { +export declare namespace ModLoader { interface IMod { name: string; version: string; diff --git a/TypeScript/9RouterHooks/types/models/spt/server/IHttpServer.d.ts b/TypeScript/9RouterHooks/types/models/spt/server/IHttpServer.d.ts index 50e5c91..c828399 100644 --- a/TypeScript/9RouterHooks/types/models/spt/server/IHttpServer.d.ts +++ b/TypeScript/9RouterHooks/types/models/spt/server/IHttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { INotification } from "../../eft/notifier/INotifier"; export interface IHttpServer { diff --git a/TypeScript/9RouterHooks/types/routers/ImageRouter.d.ts b/TypeScript/9RouterHooks/types/routers/ImageRouter.d.ts index 07a0606..cc47018 100644 --- a/TypeScript/9RouterHooks/types/routers/ImageRouter.d.ts +++ b/TypeScript/9RouterHooks/types/routers/ImageRouter.d.ts @@ -1,11 +1,12 @@ /// import { IncomingMessage, ServerResponse } from "http"; -import { VFS } from "../utils/VFS"; import { IHttpServer } from "../models/spt/server/IHttpServer"; +import { ImageRouteService } from "../services/mod/image/imageRouteService"; +import { VFS } from "../utils/VFS"; export declare class ImageRouter { private vfs; - constructor(vfs: VFS); - private onRoute; + private imageRouteService; + constructor(vfs: VFS, imageRouteService: ImageRouteService); addRoute(key: string, valueToAdd: string): void; sendImage(sessionID: string, req: IncomingMessage, resp: ServerResponse, body: any, httpServer: IHttpServer): void; getImage(): string; diff --git a/TypeScript/9RouterHooks/types/servers/ConfigServer.d.ts b/TypeScript/9RouterHooks/types/servers/ConfigServer.d.ts index 9c2e114..83af38d 100644 --- a/TypeScript/9RouterHooks/types/servers/ConfigServer.d.ts +++ b/TypeScript/9RouterHooks/types/servers/ConfigServer.d.ts @@ -1,6 +1,7 @@ import { JsonUtil } from "../utils/JsonUtil"; import { VFS } from "../utils/VFS"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigTypes } from "../models/enums/ConfigTypes"; export declare class ConfigServer { private logger; private vfs; @@ -8,23 +9,6 @@ export declare class ConfigServer { private configs; constructor(logger: ILogger, vfs: VFS, jsonUtil: JsonUtil); getConfig(configType: ConfigTypes): T; + getConfigByString(configType: string): T; initialize(): void; } -export declare const enum ConfigTypes { - AIRDROP = "aki-airdrop", - BOT = "aki-bot", - CORE = "aki-core", - HEALTH = "aki-health", - HIDEOUT = "aki-hideout", - HTTP = "aki-http", - IN_RAID = "aki-inraid", - INSURANCE = "aki-insurance", - INVENTORY = "aki-inventory", - LOCATION = "aki-location", - MATCH = "aki-match", - QUEST = "aki-quest", - RAGFAIR = "aki-ragfair", - REPAIR = "aki-repair", - TRADER = "aki-trader", - WEATHER = "aki-weather" -} diff --git a/TypeScript/9RouterHooks/types/servers/HttpServer.d.ts b/TypeScript/9RouterHooks/types/servers/HttpServer.d.ts index d0db7e4..274a299 100644 --- a/TypeScript/9RouterHooks/types/servers/HttpServer.d.ts +++ b/TypeScript/9RouterHooks/types/servers/HttpServer.d.ts @@ -1,4 +1,5 @@ /// +/// import http, { ServerResponse } from "http"; import { Serializer } from "../di/Serializer"; import { HttpServerHelper } from "../helpers/HttpServerHelper"; diff --git a/TypeScript/9RouterHooks/types/servers/RagfairServer.d.ts b/TypeScript/9RouterHooks/types/servers/RagfairServer.d.ts index d103625..a2369b0 100644 --- a/TypeScript/9RouterHooks/types/servers/RagfairServer.d.ts +++ b/TypeScript/9RouterHooks/types/servers/RagfairServer.d.ts @@ -1,18 +1,18 @@ -import { HttpResponseUtil } from "../utils/HttpResponseUtil"; -import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; -import { ProfileHelper } from "../helpers/ProfileHelper"; import { RagfairOfferGenerator } from "../generators/RagfairOfferGenerator"; -import { SaveServer } from "./SaveServer"; -import { RagfairPriceService } from "../services/RagfairPriceService"; -import { RagfairOfferService } from "../services/RagfairOfferService"; +import { ProfileHelper } from "../helpers/ProfileHelper"; +import { RagfairServerHelper } from "../helpers/RagfairServerHelper"; +import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; +import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; +import { ILogger } from "../models/spt/utils/ILogger"; +import { ItemEventRouter } from "../routers/ItemEventRouter"; import { RagfairCategoriesService } from "../services/RagfairCategoriesService"; import { RagfairLinkedItemService } from "../services/RagfairLinkedItemService"; -import { IRagfairOffer } from "../models/eft/ragfair/IRagfairOffer"; -import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse"; -import { ConfigServer } from "./ConfigServer"; -import { ItemEventRouter } from "../routers/ItemEventRouter"; +import { RagfairOfferService } from "../services/RagfairOfferService"; +import { RagfairPriceService } from "../services/RagfairPriceService"; import { RagfairRequiredItemsService } from "../services/RagfairRequiredItemsService"; -import { ILogger } from "../models/spt/utils/ILogger"; +import { HttpResponseUtil } from "../utils/HttpResponseUtil"; +import { ConfigServer } from "./ConfigServer"; +import { SaveServer } from "./SaveServer"; export declare class RagfairServer { private logger; private ragfairOfferGenerator; diff --git a/TypeScript/9RouterHooks/types/services/FenceService.d.ts b/TypeScript/9RouterHooks/types/services/FenceService.d.ts index eef87b3..27d14ef 100644 --- a/TypeScript/9RouterHooks/types/services/FenceService.d.ts +++ b/TypeScript/9RouterHooks/types/services/FenceService.d.ts @@ -1,15 +1,15 @@ -import { DatabaseServer } from "../servers/DatabaseServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { FenceLevel } from "../models/eft/common/IGlobals"; import { IPmcData } from "../models/eft/common/IPmcData"; import { ITraderAssort } from "../models/eft/common/tables/ITrader"; +import { ILogger } from "../models/spt/utils/ILogger"; import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; import { HashUtil } from "../utils/HashUtil"; import { JsonUtil } from "../utils/JsonUtil"; import { RandomUtil } from "../utils/RandomUtil"; -import { ILogger } from "../models/spt/utils/ILogger"; export declare class FenceService { private logger; private hashUtil; diff --git a/TypeScript/9RouterHooks/types/services/RagfairPriceService.d.ts b/TypeScript/9RouterHooks/types/services/RagfairPriceService.d.ts index 7cc42f9..7cdf854 100644 --- a/TypeScript/9RouterHooks/types/services/RagfairPriceService.d.ts +++ b/TypeScript/9RouterHooks/types/services/RagfairPriceService.d.ts @@ -1,12 +1,12 @@ -import { RandomUtil } from "../utils/RandomUtil"; -import { DatabaseServer } from "../servers/DatabaseServer"; -import { ConfigServer } from "../servers/ConfigServer"; import { HandbookHelper } from "../helpers/HandbookHelper"; import { ItemHelper } from "../helpers/ItemHelper"; import { PresetHelper } from "../helpers/PresetHelper"; import { Item } from "../models/eft/common/tables/IItem"; import { IBarterScheme } from "../models/eft/common/tables/ITrader"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; +import { DatabaseServer } from "../servers/DatabaseServer"; +import { RandomUtil } from "../utils/RandomUtil"; export declare class RagfairPriceService { private handbookHelper; private databaseServer; diff --git a/TypeScript/9RouterHooks/types/services/mod/image/imageRouteService.d.ts b/TypeScript/9RouterHooks/types/services/mod/image/imageRouteService.d.ts new file mode 100644 index 0000000..854083c --- /dev/null +++ b/TypeScript/9RouterHooks/types/services/mod/image/imageRouteService.d.ts @@ -0,0 +1,6 @@ +export declare class ImageRouteService { + private routes; + addRoute(urlKey: string, route: string): void; + getByKey(urlKey: string): string; + existsByKey(urlKey: string): boolean; +} diff --git a/TypeScript/9RouterHooks/types/utils/VFS.d.ts b/TypeScript/9RouterHooks/types/utils/VFS.d.ts index b064cf4..c84ece5 100644 --- a/TypeScript/9RouterHooks/types/utils/VFS.d.ts +++ b/TypeScript/9RouterHooks/types/utils/VFS.d.ts @@ -1,4 +1,5 @@ /// +/// import "reflect-metadata"; import fs from "fs"; import { IAsyncQueue } from "../models/spt/utils/IAsyncQueue"; diff --git a/TypeScript/9RouterHooks/types/utils/Watermark.d.ts b/TypeScript/9RouterHooks/types/utils/Watermark.d.ts index e7b9883..1a5dee3 100644 --- a/TypeScript/9RouterHooks/types/utils/Watermark.d.ts +++ b/TypeScript/9RouterHooks/types/utils/Watermark.d.ts @@ -1,5 +1,5 @@ -import { ConfigServer } from "../servers/ConfigServer"; import { ILogger } from "../models/spt/utils/ILogger"; +import { ConfigServer } from "../servers/ConfigServer"; export declare class WatermarkLocale { private locales; getLocale(): string;