From aff8698093c2a54baceddbcd005752699163b1c5 Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 14 Oct 2023 21:06:56 +0100 Subject: [PATCH] Update types --- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- .../types/services/SeasonalEventService.d.ts | 16 +++++++--------- 21 files changed, 147 insertions(+), 189 deletions(-) diff --git a/TypeScript/10ScopesAndTypes/types/services/SeasonalEventService.d.ts b/TypeScript/10ScopesAndTypes/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/10ScopesAndTypes/types/services/SeasonalEventService.d.ts +++ b/TypeScript/10ScopesAndTypes/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/11BundleLoadingSample/types/services/SeasonalEventService.d.ts b/TypeScript/11BundleLoadingSample/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/11BundleLoadingSample/types/services/SeasonalEventService.d.ts +++ b/TypeScript/11BundleLoadingSample/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/12ClassExtensionOverride/types/services/SeasonalEventService.d.ts b/TypeScript/12ClassExtensionOverride/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/12ClassExtensionOverride/types/services/SeasonalEventService.d.ts +++ b/TypeScript/12ClassExtensionOverride/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/13AddTrader/types/services/SeasonalEventService.d.ts b/TypeScript/13AddTrader/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/13AddTrader/types/services/SeasonalEventService.d.ts +++ b/TypeScript/13AddTrader/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/14AfterDBLoadHook/types/services/SeasonalEventService.d.ts b/TypeScript/14AfterDBLoadHook/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/14AfterDBLoadHook/types/services/SeasonalEventService.d.ts +++ b/TypeScript/14AfterDBLoadHook/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/15HttpListenerExample/types/services/SeasonalEventService.d.ts b/TypeScript/15HttpListenerExample/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/15HttpListenerExample/types/services/SeasonalEventService.d.ts +++ b/TypeScript/15HttpListenerExample/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/16ImporterUtil/types/services/SeasonalEventService.d.ts b/TypeScript/16ImporterUtil/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/16ImporterUtil/types/services/SeasonalEventService.d.ts +++ b/TypeScript/16ImporterUtil/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/17AsyncImporterWithDependency1/types/services/SeasonalEventService.d.ts b/TypeScript/17AsyncImporterWithDependency1/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/17AsyncImporterWithDependency1/types/services/SeasonalEventService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency1/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/17AsyncImporterWithDependency2/types/services/SeasonalEventService.d.ts b/TypeScript/17AsyncImporterWithDependency2/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/17AsyncImporterWithDependency2/types/services/SeasonalEventService.d.ts +++ b/TypeScript/17AsyncImporterWithDependency2/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/18CustomItemService/types/services/SeasonalEventService.d.ts b/TypeScript/18CustomItemService/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/18CustomItemService/types/services/SeasonalEventService.d.ts +++ b/TypeScript/18CustomItemService/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/19UseExternalLibraries/types/services/SeasonalEventService.d.ts b/TypeScript/19UseExternalLibraries/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/19UseExternalLibraries/types/services/SeasonalEventService.d.ts +++ b/TypeScript/19UseExternalLibraries/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/1LogToConsole/types/services/SeasonalEventService.d.ts b/TypeScript/1LogToConsole/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/1LogToConsole/types/services/SeasonalEventService.d.ts +++ b/TypeScript/1LogToConsole/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/2EditDatabase/types/services/SeasonalEventService.d.ts b/TypeScript/2EditDatabase/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/2EditDatabase/types/services/SeasonalEventService.d.ts +++ b/TypeScript/2EditDatabase/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/3GetSptConfigFile/types/services/SeasonalEventService.d.ts b/TypeScript/3GetSptConfigFile/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/3GetSptConfigFile/types/services/SeasonalEventService.d.ts +++ b/TypeScript/3GetSptConfigFile/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/SeasonalEventService.d.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/SeasonalEventService.d.ts +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/4UseACustomConfigFile/types/services/SeasonalEventService.d.ts b/TypeScript/4UseACustomConfigFile/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/4UseACustomConfigFile/types/services/SeasonalEventService.d.ts +++ b/TypeScript/4UseACustomConfigFile/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/5ReplaceMethod/types/services/SeasonalEventService.d.ts b/TypeScript/5ReplaceMethod/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/5ReplaceMethod/types/services/SeasonalEventService.d.ts +++ b/TypeScript/5ReplaceMethod/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/6ReferenceAnotherClass/types/services/SeasonalEventService.d.ts b/TypeScript/6ReferenceAnotherClass/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/6ReferenceAnotherClass/types/services/SeasonalEventService.d.ts +++ b/TypeScript/6ReferenceAnotherClass/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/7OnLoadHook/types/services/SeasonalEventService.d.ts b/TypeScript/7OnLoadHook/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/7OnLoadHook/types/services/SeasonalEventService.d.ts +++ b/TypeScript/7OnLoadHook/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/8OnUpdateHook/types/services/SeasonalEventService.d.ts b/TypeScript/8OnUpdateHook/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/8OnUpdateHook/types/services/SeasonalEventService.d.ts +++ b/TypeScript/8OnUpdateHook/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over diff --git a/TypeScript/9RouterHooks/types/services/SeasonalEventService.d.ts b/TypeScript/9RouterHooks/types/services/SeasonalEventService.d.ts index 9fb3454..73d3b84 100644 --- a/TypeScript/9RouterHooks/types/services/SeasonalEventService.d.ts +++ b/TypeScript/9RouterHooks/types/services/SeasonalEventService.d.ts @@ -24,6 +24,8 @@ export declare class SeasonalEventService { protected seasonalEventConfig: ISeasonalEventConfig; protected questConfig: IQuestConfig; protected httpConfig: IHttpConfig; + protected halloweenEventActive: any; + protected christmasEventActive: any; constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer); protected get christmasEventItems(): string[]; protected get halloweenEventItems(): string[]; @@ -51,23 +53,18 @@ export declare class SeasonalEventService { * @returns array of tpl strings */ getAllSeasonalEventItems(): string[]; - /** - * Get an array of seasonal items that should be blocked as season is not currently active - * @returns Array of tpl strings - */ - getSeasonalEventItemsToBlock(): string[]; /** * Is a seasonal event currently active * @returns true if event is active */ seasonalEventEnabled(): boolean; /** - * Is christmas event active (Globals eventtype array contains even name) + * Is christmas event active * @returns true if active */ christmasEventEnabled(): boolean; /** - * is halloween event active (Globals eventtype array contains even name) + * is halloween event active * @returns true if active */ halloweenEventEnabled(): boolean; @@ -95,10 +92,11 @@ export declare class SeasonalEventService { */ isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean; /** - * Check if current date falls inside any of the seasons events pased in, if so, handle them + * Handle seasonal events * @param sessionId Players id */ - checkForAndEnableSeasonalEvents(sessionId: string): void; + enableSeasonalEvents(sessionId: string): void; + protected cacheActiveEvents(): void; /** * Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService) * @param nodeInventory Bots inventory to iterate over