Update types
This commit is contained in:
parent
67249867b0
commit
aff8698093
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
@ -24,6 +24,8 @@ export declare class SeasonalEventService {
|
|||||||
protected seasonalEventConfig: ISeasonalEventConfig;
|
protected seasonalEventConfig: ISeasonalEventConfig;
|
||||||
protected questConfig: IQuestConfig;
|
protected questConfig: IQuestConfig;
|
||||||
protected httpConfig: IHttpConfig;
|
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);
|
constructor(logger: ILogger, databaseServer: DatabaseServer, databaseImporter: DatabaseImporter, giftService: GiftService, localisationService: LocalisationService, botHelper: BotHelper, profileHelper: ProfileHelper, configServer: ConfigServer);
|
||||||
protected get christmasEventItems(): string[];
|
protected get christmasEventItems(): string[];
|
||||||
protected get halloweenEventItems(): string[];
|
protected get halloweenEventItems(): string[];
|
||||||
@ -51,23 +53,18 @@ export declare class SeasonalEventService {
|
|||||||
* @returns array of tpl strings
|
* @returns array of tpl strings
|
||||||
*/
|
*/
|
||||||
getAllSeasonalEventItems(): string[];
|
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
|
* Is a seasonal event currently active
|
||||||
* @returns true if event is active
|
* @returns true if event is active
|
||||||
*/
|
*/
|
||||||
seasonalEventEnabled(): boolean;
|
seasonalEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* Is christmas event active (Globals eventtype array contains even name)
|
* Is christmas event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
christmasEventEnabled(): boolean;
|
christmasEventEnabled(): boolean;
|
||||||
/**
|
/**
|
||||||
* is halloween event active (Globals eventtype array contains even name)
|
* is halloween event active
|
||||||
* @returns true if active
|
* @returns true if active
|
||||||
*/
|
*/
|
||||||
halloweenEventEnabled(): boolean;
|
halloweenEventEnabled(): boolean;
|
||||||
@ -95,10 +92,11 @@ export declare class SeasonalEventService {
|
|||||||
*/
|
*/
|
||||||
isQuestRelatedToEvent(questId: string, event: SeasonalEventType): boolean;
|
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
|
* @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)
|
* Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
|
||||||
* @param nodeInventory Bots inventory to iterate over
|
* @param nodeInventory Bots inventory to iterate over
|
||||||
|
Loading…
x
Reference in New Issue
Block a user