Update types

This commit is contained in:
Dev 2023-10-14 21:06:56 +01:00
parent 67249867b0
commit aff8698093
21 changed files with 147 additions and 189 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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