From 9adc09897d5ac0984b3b6b491e454b40856d9d09 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 2 Mar 2022 19:18:14 -0500 Subject: [PATCH] Fix eslint --- .../communication/CommunicationManager.ts | 2 +- .../incoming/landingview/PromoArticleData.ts | 96 +++--- .../incoming/moderation/CfhChatlogData.ts | 2 +- .../messages/incoming/quest/PrizeData.ts | 78 ++--- .../incoming/quest/QuestMessageData.ts | 306 +++++++++--------- .../messages/outgoing/OutgoingHeader.ts | 4 +- .../GetBonusRareInfoMessageComposer.ts | 26 +- .../outgoing/crafting/CraftComposer.ts | 26 +- .../outgoing/crafting/CraftSecretComposer.ts | 26 +- .../crafting/GetCraftableProductsComposer.ts | 26 +- .../crafting/GetCraftingRecipeComposer.ts | 26 +- .../GetCraftingRecipesAvailableComposer.ts | 26 +- .../landingview/GetPromoArticlesComposer.ts | 26 +- .../votes/CommunityGoalVoteMessageComposer.ts | 26 +- .../navigator/ConvertGlobalRoomIdComposer.ts | 26 +- .../quest/AcceptQuestMessageComposer.ts | 26 +- .../quest/ActivateQuestMessageComposer.ts | 26 +- .../quest/CancelQuestMessageComposer.ts | 26 +- ...iendRequestQuestCompleteMessageComposer.ts | 26 +- ...ommunityGoalEarnedPrizesMessageComposer.ts | 26 +- ...tCommunityGoalHallOfFameMessageComposer.ts | 26 +- ...GetCommunityGoalProgressMessageComposer.ts | 26 +- ...currentUsersGoalProgressMessageComposer.ts | 26 +- ...GetConcurrentUsersRewardMessageComposer.ts | 26 +- .../quest/GetDailyQuestMessageComposer.ts | 26 +- .../quest/GetQuestsMessageComposer.ts | 26 +- .../GetSeasonalQuestsOnlyMessageComposer.ts | 26 +- .../quest/OpenQuestTrackerMessageComposer.ts | 26 +- ...RedeemCommunityGoalPrizeMessageComposer.ts | 26 +- .../quest/RejectQuestMessageComposer.ts | 26 +- .../quest/StartCampaignMessageComposer.ts | 26 +- .../catalog/BonusRareInfoMessageParser.ts | 74 ++--- .../CraftableProductsMessageParser.ts | 80 ++--- .../CraftingRecipeIngredientParser.ts | 30 +- .../crafting/CraftingRecipeMessageParser.ts | 48 +-- .../CraftingRecipesAvailableMessageParser.ts | 46 +-- .../crafting/CraftingResultMessageParser.ts | 50 +-- .../crafting/CraftingResultObjectParser.ts | 30 +- .../clothing/FigureSetIdsMessageParser.ts | 2 +- .../landingview/PromoArticlesMessageParser.ts | 40 +-- .../votes/CommunityVoteReceivedParser.ts | 30 +- .../notifications/MOTDNotificationParser.ts | 2 +- .../parser/poll/PollContentsParser.ts | 2 +- .../CommunityGoalEarnedPrizesMessageParser.ts | 40 +-- .../CommunityGoalHallOfFameMessageParser.ts | 32 +- .../CommunityGoalProgressMessageParser.ts | 32 +- ...oncurrentUsersGoalProgressMessageParser.ts | 60 ++-- .../parser/quest/EpicPopupMessageParser.ts | 32 +- .../quest/QuestCancelledMessageParser.ts | 30 +- .../quest/QuestCompletedMessageParser.ts | 44 +-- .../parser/quest/QuestDailyMessageParser.ts | 64 ++-- .../parser/quest/QuestMessageParser.ts | 32 +- .../parser/quest/QuestsMessageParser.ts | 52 +-- .../parser/quest/SeasonalQuestsParser.ts | 40 +-- .../parser/talent/TalentTrackLevel.ts | 2 +- .../parser/user/InClientLinkParser.ts | 32 +- .../events/RoomEngineTriggerWidgetEvent.ts | 2 +- .../room/utils/FurnitureStackingHeightMap.ts | 2 +- 58 files changed, 1034 insertions(+), 1034 deletions(-) diff --git a/src/core/communication/CommunicationManager.ts b/src/core/communication/CommunicationManager.ts index 1ecb4b59..9c9cae2c 100644 --- a/src/core/communication/CommunicationManager.ts +++ b/src/core/communication/CommunicationManager.ts @@ -7,7 +7,7 @@ import { ICommunicationManager } from './ICommunicationManager'; export class CommunicationManager extends Disposable implements ICommunicationManager, IUpdateReceiver { - private _connections: IConnection[] + private _connections: IConnection[]; constructor() { diff --git a/src/nitro/communication/messages/incoming/landingview/PromoArticleData.ts b/src/nitro/communication/messages/incoming/landingview/PromoArticleData.ts index a13df31a..69f4cf8d 100644 --- a/src/nitro/communication/messages/incoming/landingview/PromoArticleData.ts +++ b/src/nitro/communication/messages/incoming/landingview/PromoArticleData.ts @@ -2,61 +2,61 @@ import { IMessageDataWrapper } from '../../../../../core'; export class PromoArticleData { - public static readonly LINK_TYPE_URL = 0; - public static readonly LINK_TYPE_INTERNAL = 1; - public static readonly LINK_TYPE_NO_LINK = 2; + public static readonly LINK_TYPE_URL = 0; + public static readonly LINK_TYPE_INTERNAL = 1; + public static readonly LINK_TYPE_NO_LINK = 2; - private _id: number; - private _title: string; - private _bodyText: string; - private _buttonText: string; - private _linkType: number; - private _linkContent: string; - private _imageUrl: string; + private _id: number; + private _title: string; + private _bodyText: string; + private _buttonText: string; + private _linkType: number; + private _linkContent: string; + private _imageUrl: string; - constructor(k: IMessageDataWrapper) - { - this._id = k.readInt(); - this._title = k.readString(); - this._bodyText = k.readString(); - this._buttonText = k.readString(); - this._linkType = k.readInt(); - this._linkContent = k.readString(); - this._imageUrl = k.readString(); - } + constructor(k: IMessageDataWrapper) + { + this._id = k.readInt(); + this._title = k.readString(); + this._bodyText = k.readString(); + this._buttonText = k.readString(); + this._linkType = k.readInt(); + this._linkContent = k.readString(); + this._imageUrl = k.readString(); + } - public get id(): number - { - return this._id; - } + public get id(): number + { + return this._id; + } - public get title(): string - { - return this._title; - } + public get title(): string + { + return this._title; + } - public get bodyText(): string - { - return this._bodyText; - } + public get bodyText(): string + { + return this._bodyText; + } - public get buttonText(): string - { - return this._buttonText; - } + public get buttonText(): string + { + return this._buttonText; + } - public get linkType(): number - { - return this._linkType; - } + public get linkType(): number + { + return this._linkType; + } - public get linkContent(): string - { - return this._linkContent; - } + public get linkContent(): string + { + return this._linkContent; + } - public get imageUrl(): string - { - return this._imageUrl; - } + public get imageUrl(): string + { + return this._imageUrl; + } } diff --git a/src/nitro/communication/messages/incoming/moderation/CfhChatlogData.ts b/src/nitro/communication/messages/incoming/moderation/CfhChatlogData.ts index b2c9d38e..58a90314 100644 --- a/src/nitro/communication/messages/incoming/moderation/CfhChatlogData.ts +++ b/src/nitro/communication/messages/incoming/moderation/CfhChatlogData.ts @@ -7,7 +7,7 @@ export class CfhChatlogData private _callerUserId: number; private _reportedUserId: number; private _chatRecordId: number; - private _chatRecord: ChatRecordData + private _chatRecord: ChatRecordData; constructor(k:IMessageDataWrapper) { diff --git a/src/nitro/communication/messages/incoming/quest/PrizeData.ts b/src/nitro/communication/messages/incoming/quest/PrizeData.ts index ad6050b8..f79efe9c 100644 --- a/src/nitro/communication/messages/incoming/quest/PrizeData.ts +++ b/src/nitro/communication/messages/incoming/quest/PrizeData.ts @@ -2,50 +2,50 @@ import { IMessageDataWrapper } from '../../../../../core'; export class PrizeData { - private _communityGoalId: number; - private _communityGoalCode: string; - private _userRank: number; - private _rewardCode: string; - private _badge: boolean; - private _localizedName: string; + private _communityGoalId: number; + private _communityGoalCode: string; + private _userRank: number; + private _rewardCode: string; + private _badge: boolean; + private _localizedName: string; - constructor(k: IMessageDataWrapper) - { - this._communityGoalId = k.readInt(); - this._communityGoalCode = k.readString(); - this._userRank = k.readInt(); - this._rewardCode = k.readString(); - this._badge = k.readBoolean(); - this._localizedName = k.readString(); - } + constructor(k: IMessageDataWrapper) + { + this._communityGoalId = k.readInt(); + this._communityGoalCode = k.readString(); + this._userRank = k.readInt(); + this._rewardCode = k.readString(); + this._badge = k.readBoolean(); + this._localizedName = k.readString(); + } - public get communityGoalId(): number - { - return this._communityGoalId; - } + public get communityGoalId(): number + { + return this._communityGoalId; + } - public get communityGoalCode(): string - { - return this._communityGoalCode; - } + public get communityGoalCode(): string + { + return this._communityGoalCode; + } - public get userRank(): number - { - return this._userRank; - } + public get userRank(): number + { + return this._userRank; + } - public get rewardCode(): string - { - return this._rewardCode; - } + public get rewardCode(): string + { + return this._rewardCode; + } - public get badge(): boolean - { - return this._badge; - } + public get badge(): boolean + { + return this._badge; + } - public get localizedName(): string - { - return this._localizedName; - } + public get localizedName(): string + { + return this._localizedName; + } } diff --git a/src/nitro/communication/messages/incoming/quest/QuestMessageData.ts b/src/nitro/communication/messages/incoming/quest/QuestMessageData.ts index a09bec65..af284557 100644 --- a/src/nitro/communication/messages/incoming/quest/QuestMessageData.ts +++ b/src/nitro/communication/messages/incoming/quest/QuestMessageData.ts @@ -2,185 +2,185 @@ import { IMessageDataWrapper } from '../../../../../core'; export class QuestMessageData { - private _campaignCode: string; - private _completedQuestsInCampaign: number; - private _questCountInCampaign: number; - private _activityPointType: number; - private _id: number; - private _accepted: boolean; - private _type: string; - private _imageVersion: string; - private _rewardCurrencyAmount: number; - private _localizationCode: string; - private _completedSteps: number; - private _totalSteps: number; - private _waitPeriodSeconds: number; - private _sortOrder: number; - private _catalogPageName: string; - private _chainCode: string; - private _easy: boolean; - private _receiveTime: Date; + private _campaignCode: string; + private _completedQuestsInCampaign: number; + private _questCountInCampaign: number; + private _activityPointType: number; + private _id: number; + private _accepted: boolean; + private _type: string; + private _imageVersion: string; + private _rewardCurrencyAmount: number; + private _localizationCode: string; + private _completedSteps: number; + private _totalSteps: number; + private _waitPeriodSeconds: number; + private _sortOrder: number; + private _catalogPageName: string; + private _chainCode: string; + private _easy: boolean; + private _receiveTime: Date; - constructor(wrapper: IMessageDataWrapper) - { - this._receiveTime = new Date(); - this._campaignCode = wrapper.readString(); - this._completedQuestsInCampaign = wrapper.readInt(); - this._questCountInCampaign = wrapper.readInt(); - this._activityPointType = wrapper.readInt(); - this._id = wrapper.readInt(); - this._accepted = wrapper.readBoolean(); - this._type = wrapper.readString(); - this._imageVersion = wrapper.readString(); - this._rewardCurrencyAmount = wrapper.readInt(); - this._localizationCode = wrapper.readString(); - this._completedSteps = wrapper.readInt(); - this._totalSteps = wrapper.readInt(); - this._sortOrder = wrapper.readInt(); - this._catalogPageName = wrapper.readString(); - this._chainCode = wrapper.readString(); - this._easy = wrapper.readBoolean(); - } + constructor(wrapper: IMessageDataWrapper) + { + this._receiveTime = new Date(); + this._campaignCode = wrapper.readString(); + this._completedQuestsInCampaign = wrapper.readInt(); + this._questCountInCampaign = wrapper.readInt(); + this._activityPointType = wrapper.readInt(); + this._id = wrapper.readInt(); + this._accepted = wrapper.readBoolean(); + this._type = wrapper.readString(); + this._imageVersion = wrapper.readString(); + this._rewardCurrencyAmount = wrapper.readInt(); + this._localizationCode = wrapper.readString(); + this._completedSteps = wrapper.readInt(); + this._totalSteps = wrapper.readInt(); + this._sortOrder = wrapper.readInt(); + this._catalogPageName = wrapper.readString(); + this._chainCode = wrapper.readString(); + this._easy = wrapper.readBoolean(); + } - public static getCampaignLocalizationKeyForCode(k: string): string - { - return 'quests.' + k; - } + public static getCampaignLocalizationKeyForCode(k: string): string + { + return 'quests.' + k; + } - public get campaignCode(): string - { - return this._campaignCode; - } + public get campaignCode(): string + { + return this._campaignCode; + } - public get localizationCode(): string - { - return this._localizationCode; - } + public get localizationCode(): string + { + return this._localizationCode; + } - public get completedQuestsInCampaign(): number - { - return this._completedQuestsInCampaign; - } + public get completedQuestsInCampaign(): number + { + return this._completedQuestsInCampaign; + } - public get questCountInCampaign(): number - { - return this._questCountInCampaign; - } + public get questCountInCampaign(): number + { + return this._questCountInCampaign; + } - public get activityPointType(): number - { - return this._activityPointType; - } + public get activityPointType(): number + { + return this._activityPointType; + } - public set accepted(k: boolean) - { - this._accepted = k; - } + public set accepted(k: boolean) + { + this._accepted = k; + } - public get accepted(): boolean - { - return this._accepted; - } + public get accepted(): boolean + { + return this._accepted; + } - public set id(k: number) - { - this._id = k; - } + public set id(k: number) + { + this._id = k; + } - public get id(): number - { - return this._id; - } + public get id(): number + { + return this._id; + } - public get type(): string - { - return this._type; - } + public get type(): string + { + return this._type; + } - public get imageVersion(): string - { - return this._imageVersion; - } + public get imageVersion(): string + { + return this._imageVersion; + } - public get rewardCurrencyAmount(): number - { - return this._rewardCurrencyAmount; - } + public get rewardCurrencyAmount(): number + { + return this._rewardCurrencyAmount; + } - public get completedSteps(): number - { - return this._completedSteps; - } + public get completedSteps(): number + { + return this._completedSteps; + } - public get totalSteps(): number - { - return this._totalSteps; - } + public get totalSteps(): number + { + return this._totalSteps; + } - public get isCompleted(): boolean - { - return this._completedSteps == this._totalSteps; - } + public get isCompleted(): boolean + { + return this._completedSteps == this._totalSteps; + } - public set waitPeriodSeconds(k: number) - { - this._waitPeriodSeconds = k; - } + public set waitPeriodSeconds(k: number) + { + this._waitPeriodSeconds = k; + } - public get waitPeriodSeconds(): number - { - if(this._waitPeriodSeconds < 1) - { - return 0; - } - const k = new Date(); - const _local_2 = (k.getTime() - this._receiveTime.getTime()); - const _local_3 = Math.max(0, (this._waitPeriodSeconds - Math.floor((_local_2 / 1000)))); - return _local_3; - } + public get waitPeriodSeconds(): number + { + if(this._waitPeriodSeconds < 1) + { + return 0; + } + const k = new Date(); + const _local_2 = (k.getTime() - this._receiveTime.getTime()); + const _local_3 = Math.max(0, (this._waitPeriodSeconds - Math.floor((_local_2 / 1000)))); + return _local_3; + } - public getCampaignLocalizationKey(): string - { - return QuestMessageData.getCampaignLocalizationKeyForCode(this.campaignCode); - } + public getCampaignLocalizationKey(): string + { + return QuestMessageData.getCampaignLocalizationKeyForCode(this.campaignCode); + } - public getQuestLocalizationKey(): string - { - return (this.getCampaignLocalizationKey() + '.') + this._localizationCode; - } + public getQuestLocalizationKey(): string + { + return (this.getCampaignLocalizationKey() + '.') + this._localizationCode; + } - public get completedCampaign(): boolean - { - return this._id < 1; - } + public get completedCampaign(): boolean + { + return this._id < 1; + } - public get lastQuestInCampaign(): boolean - { - return this._completedQuestsInCampaign >= this._questCountInCampaign; - } + public get lastQuestInCampaign(): boolean + { + return this._completedQuestsInCampaign >= this._questCountInCampaign; + } - public get receiveTime(): Date - { - return this._receiveTime; - } + public get receiveTime(): Date + { + return this._receiveTime; + } - public get sortOrder(): number - { - return this._sortOrder; - } + public get sortOrder(): number + { + return this._sortOrder; + } - public get catalogPageName(): string - { - return this._catalogPageName; - } + public get catalogPageName(): string + { + return this._catalogPageName; + } - public get chainCode(): string - { - return this._chainCode; - } + public get chainCode(): string + { + return this._chainCode; + } - public get easy(): boolean - { - return this._easy; - } + public get easy(): boolean + { + return this._easy; + } } diff --git a/src/nitro/communication/messages/outgoing/OutgoingHeader.ts b/src/nitro/communication/messages/outgoing/OutgoingHeader.ts index e53c523c..e745263b 100644 --- a/src/nitro/communication/messages/outgoing/OutgoingHeader.ts +++ b/src/nitro/communication/messages/outgoing/OutgoingHeader.ts @@ -218,7 +218,7 @@ export class OutgoingHeader public static USER_IGNORE_ID = 3314; public static USER_IGNORE = 1117; public static USER_UNIGNORE = 2061; - public static MODTOOL_REQUEST_ROOM_INFO = 707; + public static MODTOOL_REQUEST_ROOM_INFO = 707; public static MODTOOL_CHANGE_ROOM_SETTINGS = 3260; public static MODTOOL_REQUEST_USER_CHATLOG = 1391; public static MODTOOL_REQUEST_ROOM_CHATLOG = 2587; @@ -367,7 +367,7 @@ export class OutgoingHeader public static GUIDE_SESSION_GUIDE_DECIDES = 1424; public static GUIDE_SESSION_INVITE_REQUESTER = 234; public static GUIDE_SESSION_IS_TYPING = 519; - public static GUIDE_SESSION_MESSAGE = 3899 + public static GUIDE_SESSION_MESSAGE = 3899; public static GUIDE_SESSION_ON_DUTY_UPDATE = 1922; public static GUIDE_SESSION_REPORT = 3969; public static GUIDE_SESSION_REQUESTER_CANCELS = 291; diff --git a/src/nitro/communication/messages/outgoing/catalog/GetBonusRareInfoMessageComposer.ts b/src/nitro/communication/messages/outgoing/catalog/GetBonusRareInfoMessageComposer.ts index 17945045..b79525a4 100644 --- a/src/nitro/communication/messages/outgoing/catalog/GetBonusRareInfoMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/catalog/GetBonusRareInfoMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetBonusRareInfoMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/crafting/CraftComposer.ts b/src/nitro/communication/messages/outgoing/crafting/CraftComposer.ts index 80110032..413de50b 100644 --- a/src/nitro/communication/messages/outgoing/crafting/CraftComposer.ts +++ b/src/nitro/communication/messages/outgoing/crafting/CraftComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class CraftComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(k: number, _arg_2: string) - { - this._data = [k, _arg_2]; - } + constructor(k: number, _arg_2: string) + { + this._data = [k, _arg_2]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/crafting/CraftSecretComposer.ts b/src/nitro/communication/messages/outgoing/crafting/CraftSecretComposer.ts index 5a8a153a..5172cb76 100644 --- a/src/nitro/communication/messages/outgoing/crafting/CraftSecretComposer.ts +++ b/src/nitro/communication/messages/outgoing/crafting/CraftSecretComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class CraftSecretComposer implements IMessageComposer { - private _data: number[]; + private _data: number[]; - constructor(k: number, _arg_2: number[]) - { - this._data = [k, _arg_2.length].concat(_arg_2); - } + constructor(k: number, _arg_2: number[]) + { + this._data = [k, _arg_2.length].concat(_arg_2); + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/crafting/GetCraftableProductsComposer.ts b/src/nitro/communication/messages/outgoing/crafting/GetCraftableProductsComposer.ts index bb336c45..2f850965 100644 --- a/src/nitro/communication/messages/outgoing/crafting/GetCraftableProductsComposer.ts +++ b/src/nitro/communication/messages/outgoing/crafting/GetCraftableProductsComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetCraftableProductsComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(k: number) - { - this._data = [k]; - } + constructor(k: number) + { + this._data = [k]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipeComposer.ts b/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipeComposer.ts index b9efa97e..1a080ed0 100644 --- a/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipeComposer.ts +++ b/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipeComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetCraftingRecipeComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(k: string) - { - this._data = [k]; - } + constructor(k: string) + { + this._data = [k]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipesAvailableComposer.ts b/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipesAvailableComposer.ts index a74c6410..7e6256fa 100644 --- a/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipesAvailableComposer.ts +++ b/src/nitro/communication/messages/outgoing/crafting/GetCraftingRecipesAvailableComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetCraftingRecipesAvailableComposer implements IMessageComposer { - private _data: number[]; + private _data: number[]; - constructor(k: number, _arg_2: number[]) - { - this._data = [k, _arg_2.length].concat(_arg_2); - } + constructor(k: number, _arg_2: number[]) + { + this._data = [k, _arg_2.length].concat(_arg_2); + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/landingview/GetPromoArticlesComposer.ts b/src/nitro/communication/messages/outgoing/landingview/GetPromoArticlesComposer.ts index 672e5747..9c2dc79e 100644 --- a/src/nitro/communication/messages/outgoing/landingview/GetPromoArticlesComposer.ts +++ b/src/nitro/communication/messages/outgoing/landingview/GetPromoArticlesComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetPromoArticlesComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/landingview/votes/CommunityGoalVoteMessageComposer.ts b/src/nitro/communication/messages/outgoing/landingview/votes/CommunityGoalVoteMessageComposer.ts index faa2a77c..30371ddc 100644 --- a/src/nitro/communication/messages/outgoing/landingview/votes/CommunityGoalVoteMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/landingview/votes/CommunityGoalVoteMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../../core/communication/messages/ export class CommunityGoalVoteMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(voteOption: number) - { - this._data = [voteOption]; - } + constructor(voteOption: number) + { + this._data = [voteOption]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/navigator/ConvertGlobalRoomIdComposer.ts b/src/nitro/communication/messages/outgoing/navigator/ConvertGlobalRoomIdComposer.ts index 7b450688..393bffe2 100644 --- a/src/nitro/communication/messages/outgoing/navigator/ConvertGlobalRoomIdComposer.ts +++ b/src/nitro/communication/messages/outgoing/navigator/ConvertGlobalRoomIdComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class ConvertGlobalRoomIdMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(flatId: string) - { - this._data = [ flatId ]; - } + constructor(flatId: string) + { + this._data = [ flatId ]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } \ No newline at end of file diff --git a/src/nitro/communication/messages/outgoing/quest/AcceptQuestMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/AcceptQuestMessageComposer.ts index eccf5a13..c62f91aa 100644 --- a/src/nitro/communication/messages/outgoing/quest/AcceptQuestMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/AcceptQuestMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class AcceptQuestMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(k: number) - { - this._data = [k]; - } + constructor(k: number) + { + this._data = [k]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/ActivateQuestMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/ActivateQuestMessageComposer.ts index a38f12e7..4f32084b 100644 --- a/src/nitro/communication/messages/outgoing/quest/ActivateQuestMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/ActivateQuestMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class ActivateQuestMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(k: number) - { - this._data = [k]; - } + constructor(k: number) + { + this._data = [k]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/CancelQuestMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/CancelQuestMessageComposer.ts index e5634ca8..aa476bb7 100644 --- a/src/nitro/communication/messages/outgoing/quest/CancelQuestMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/CancelQuestMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class CancelQuestMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/FriendRequestQuestCompleteMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/FriendRequestQuestCompleteMessageComposer.ts index 2f828ff0..04bf304a 100644 --- a/src/nitro/communication/messages/outgoing/quest/FriendRequestQuestCompleteMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/FriendRequestQuestCompleteMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class FriendRequestQuestCompleteMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalEarnedPrizesMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalEarnedPrizesMessageComposer.ts index 2e2dac6d..55173c0a 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalEarnedPrizesMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalEarnedPrizesMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetCommunityGoalEarnedPrizesMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalHallOfFameMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalHallOfFameMessageComposer.ts index 503932c4..24bee431 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalHallOfFameMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalHallOfFameMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetCommunityGoalHallOfFameMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(k: string) - { - this._data = [k]; - } + constructor(k: string) + { + this._data = [k]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalProgressMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalProgressMessageComposer.ts index 33e580d8..4aebb2c0 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalProgressMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetCommunityGoalProgressMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetCommunityGoalProgressMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/GetConcurrentUsersGoalProgressMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetConcurrentUsersGoalProgressMessageComposer.ts index 961731a9..e27990e7 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetConcurrentUsersGoalProgressMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetConcurrentUsersGoalProgressMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetConcurrentUsersGoalProgressMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/GetConcurrentUsersRewardMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetConcurrentUsersRewardMessageComposer.ts index 1b72ec46..a92d5efb 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetConcurrentUsersRewardMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetConcurrentUsersRewardMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetConcurrentUsersRewardMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/GetDailyQuestMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetDailyQuestMessageComposer.ts index 0b2aa544..750c771b 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetDailyQuestMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetDailyQuestMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetDailyQuestMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(k: boolean, _arg_2: number) - { - this._data = [k, _arg_2]; - } + constructor(k: boolean, _arg_2: number) + { + this._data = [k, _arg_2]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/GetQuestsMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetQuestsMessageComposer.ts index 102cc1e1..b9254d17 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetQuestsMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetQuestsMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetQuestsMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/GetSeasonalQuestsOnlyMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/GetSeasonalQuestsOnlyMessageComposer.ts index e3b749ae..76421d31 100644 --- a/src/nitro/communication/messages/outgoing/quest/GetSeasonalQuestsOnlyMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/GetSeasonalQuestsOnlyMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class GetSeasonalQuestsOnlyMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/OpenQuestTrackerMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/OpenQuestTrackerMessageComposer.ts index 2c1b14a6..173c8383 100644 --- a/src/nitro/communication/messages/outgoing/quest/OpenQuestTrackerMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/OpenQuestTrackerMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class OpenQuestTrackerMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/RedeemCommunityGoalPrizeMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/RedeemCommunityGoalPrizeMessageComposer.ts index 79d5d679..5e5e8489 100644 --- a/src/nitro/communication/messages/outgoing/quest/RedeemCommunityGoalPrizeMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/RedeemCommunityGoalPrizeMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class RedeemCommunityGoalPrizeMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(communityGoalId: number) - { - this._data = [communityGoalId]; - } + constructor(communityGoalId: number) + { + this._data = [communityGoalId]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/RejectQuestMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/RejectQuestMessageComposer.ts index 69682722..9ef293b3 100644 --- a/src/nitro/communication/messages/outgoing/quest/RejectQuestMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/RejectQuestMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class RejectQuestMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor() - { - this._data = []; - } + constructor() + { + this._data = []; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/outgoing/quest/StartCampaignMessageComposer.ts b/src/nitro/communication/messages/outgoing/quest/StartCampaignMessageComposer.ts index f3231ea9..90be304e 100644 --- a/src/nitro/communication/messages/outgoing/quest/StartCampaignMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/quest/StartCampaignMessageComposer.ts @@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe export class StartCampaignMessageComposer implements IMessageComposer> { - private _data: ConstructorParameters; + private _data: ConstructorParameters; - constructor(k: string) - { - this._data = [k]; - } + constructor(k: string) + { + this._data = [k]; + } - public getMessageArray() - { - return this._data; - } + public getMessageArray() + { + return this._data; + } - public dispose(): void - { - return; - } + public dispose(): void + { + return; + } } diff --git a/src/nitro/communication/messages/parser/catalog/BonusRareInfoMessageParser.ts b/src/nitro/communication/messages/parser/catalog/BonusRareInfoMessageParser.ts index 8eb02b35..ac43cfa2 100644 --- a/src/nitro/communication/messages/parser/catalog/BonusRareInfoMessageParser.ts +++ b/src/nitro/communication/messages/parser/catalog/BonusRareInfoMessageParser.ts @@ -3,48 +3,48 @@ import { IMessageParser } from './../../../../../core'; export class BonusRareInfoMessageParser implements IMessageParser { - private _productType: string; - private _productClassId: number; - private _totalCoinsForBonus: number; - private _coinsStillRequiredToBuy: number; + private _productType: string; + private _productClassId: number; + private _totalCoinsForBonus: number; + private _coinsStillRequiredToBuy: number; - public flush(): boolean - { - this._totalCoinsForBonus = -1; - this._coinsStillRequiredToBuy = -1; - this._productType = ''; - this._productClassId = -1; - return true; - } + public flush(): boolean + { + this._totalCoinsForBonus = -1; + this._coinsStillRequiredToBuy = -1; + this._productType = ''; + this._productClassId = -1; + return true; + } - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; - this._productType = wrapper.readString(); - this._productClassId = wrapper.readInt(); - this._totalCoinsForBonus = wrapper.readInt(); - this._coinsStillRequiredToBuy = wrapper.readInt(); - return true; - } + this._productType = wrapper.readString(); + this._productClassId = wrapper.readInt(); + this._totalCoinsForBonus = wrapper.readInt(); + this._coinsStillRequiredToBuy = wrapper.readInt(); + return true; + } - public get totalCoinsForBonus(): number - { - return this._totalCoinsForBonus; - } + public get totalCoinsForBonus(): number + { + return this._totalCoinsForBonus; + } - public get coinsStillRequiredToBuy(): number - { - return this._coinsStillRequiredToBuy; - } + public get coinsStillRequiredToBuy(): number + { + return this._coinsStillRequiredToBuy; + } - public get productType(): string - { - return this._productType; - } + public get productType(): string + { + return this._productType; + } - public get productClassId(): number - { - return this._productClassId; - } + public get productClassId(): number + { + return this._productClassId; + } } diff --git a/src/nitro/communication/messages/parser/crafting/CraftableProductsMessageParser.ts b/src/nitro/communication/messages/parser/crafting/CraftableProductsMessageParser.ts index 9d9354b1..754208b9 100644 --- a/src/nitro/communication/messages/parser/crafting/CraftableProductsMessageParser.ts +++ b/src/nitro/communication/messages/parser/crafting/CraftableProductsMessageParser.ts @@ -4,50 +4,50 @@ import { CraftingResultObjectParser } from './CraftingResultObjectParser'; export class CraftableProductsMessageParser implements IMessageParser { - private _recipes: CraftingResultObjectParser[]; - private _ingredients: string[]; + private _recipes: CraftingResultObjectParser[]; + private _ingredients: string[]; - constructor() - { - this._recipes = []; - this._ingredients = []; - } + constructor() + { + this._recipes = []; + this._ingredients = []; + } - public flush(): boolean - { - this._recipes = []; - this._ingredients = []; - return true; - } + public flush(): boolean + { + this._recipes = []; + this._ingredients = []; + return true; + } - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; - const craftingResultCount = wrapper.readInt(); - for(let i = 0; i < craftingResultCount; i++) - { - this._recipes.push(new CraftingResultObjectParser(wrapper)); - } - const ingredientCount = wrapper.readInt(); - for(let i = 0; i < ingredientCount; i++) - { - this._ingredients.push(wrapper.readString()); - } - return true; - } + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; + const craftingResultCount = wrapper.readInt(); + for(let i = 0; i < craftingResultCount; i++) + { + this._recipes.push(new CraftingResultObjectParser(wrapper)); + } + const ingredientCount = wrapper.readInt(); + for(let i = 0; i < ingredientCount; i++) + { + this._ingredients.push(wrapper.readString()); + } + return true; + } - public get recipes(): CraftingResultObjectParser[] - { - return this._recipes; - } + public get recipes(): CraftingResultObjectParser[] + { + return this._recipes; + } - public get ingredients(): string[] - { - return this._ingredients; - } + public get ingredients(): string[] + { + return this._ingredients; + } - public isActive(): boolean - { - return (this._recipes.length > 0) || (this._ingredients.length > 0); - } + public isActive(): boolean + { + return (this._recipes.length > 0) || (this._ingredients.length > 0); + } } diff --git a/src/nitro/communication/messages/parser/crafting/CraftingRecipeIngredientParser.ts b/src/nitro/communication/messages/parser/crafting/CraftingRecipeIngredientParser.ts index 10a13648..1e90ed8d 100644 --- a/src/nitro/communication/messages/parser/crafting/CraftingRecipeIngredientParser.ts +++ b/src/nitro/communication/messages/parser/crafting/CraftingRecipeIngredientParser.ts @@ -2,22 +2,22 @@ import { IMessageDataWrapper } from '../../../../../core'; export class CraftingRecipeIngredientParser { - private _count: number; - private _itemName: string; + private _count: number; + private _itemName: string; - constructor(wrapper: IMessageDataWrapper) - { - this._count = wrapper.readInt(); - this._itemName = wrapper.readString(); - } + constructor(wrapper: IMessageDataWrapper) + { + this._count = wrapper.readInt(); + this._itemName = wrapper.readString(); + } - public get count(): number - { - return this._count; - } + public get count(): number + { + return this._count; + } - public get itemName(): string - { - return this._itemName; - } + public get itemName(): string + { + return this._itemName; + } } diff --git a/src/nitro/communication/messages/parser/crafting/CraftingRecipeMessageParser.ts b/src/nitro/communication/messages/parser/crafting/CraftingRecipeMessageParser.ts index 0874b754..6ddf3eb4 100644 --- a/src/nitro/communication/messages/parser/crafting/CraftingRecipeMessageParser.ts +++ b/src/nitro/communication/messages/parser/crafting/CraftingRecipeMessageParser.ts @@ -4,32 +4,32 @@ import { CraftingRecipeIngredientParser } from './CraftingRecipeIngredientParser export class CraftingRecipeMessageParser implements IMessageParser { - private _ingredients: CraftingRecipeIngredientParser[]; + private _ingredients: CraftingRecipeIngredientParser[]; - constructor() - { - this._ingredients = []; - } + constructor() + { + this._ingredients = []; + } - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; - const ingredientCount = wrapper.readInt(); - for(let i = 0; i < ingredientCount; i++) - { - this._ingredients.push(new CraftingRecipeIngredientParser(wrapper)); - } - return true; - } + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; + const ingredientCount = wrapper.readInt(); + for(let i = 0; i < ingredientCount; i++) + { + this._ingredients.push(new CraftingRecipeIngredientParser(wrapper)); + } + return true; + } - public flush(): boolean - { - this._ingredients = []; - return true; - } + public flush(): boolean + { + this._ingredients = []; + return true; + } - public get ingredients(): CraftingRecipeIngredientParser[] - { - return this._ingredients; - } + public get ingredients(): CraftingRecipeIngredientParser[] + { + return this._ingredients; + } } diff --git a/src/nitro/communication/messages/parser/crafting/CraftingRecipesAvailableMessageParser.ts b/src/nitro/communication/messages/parser/crafting/CraftingRecipesAvailableMessageParser.ts index 590026a8..42ae98ed 100644 --- a/src/nitro/communication/messages/parser/crafting/CraftingRecipesAvailableMessageParser.ts +++ b/src/nitro/communication/messages/parser/crafting/CraftingRecipesAvailableMessageParser.ts @@ -3,31 +3,31 @@ import { IMessageParser } from './../../../../../core'; export class CraftingRecipesAvailableMessageParser implements IMessageParser { - private _hasRecipes: boolean; - private _count: number; + private _hasRecipes: boolean; + private _count: number; - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; - this._count = wrapper.readInt(); - this._hasRecipes = wrapper.readBoolean(); - return true; - } + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; + this._count = wrapper.readInt(); + this._hasRecipes = wrapper.readBoolean(); + return true; + } - public flush(): boolean - { - this._count = 0; - this._hasRecipes = false; - return true; - } + public flush(): boolean + { + this._count = 0; + this._hasRecipes = false; + return true; + } - public get count(): number - { - return this._count; - } + public get count(): number + { + return this._count; + } - public get hasRecipes(): boolean - { - return this._hasRecipes; - } + public get hasRecipes(): boolean + { + return this._hasRecipes; + } } diff --git a/src/nitro/communication/messages/parser/crafting/CraftingResultMessageParser.ts b/src/nitro/communication/messages/parser/crafting/CraftingResultMessageParser.ts index e8abe5e5..18a5ccfa 100644 --- a/src/nitro/communication/messages/parser/crafting/CraftingResultMessageParser.ts +++ b/src/nitro/communication/messages/parser/crafting/CraftingResultMessageParser.ts @@ -4,33 +4,33 @@ import { CraftingResultObjectParser } from './CraftingResultObjectParser'; export class CraftingResultMessageParser implements IMessageParser { - private _success: boolean; - private _result: CraftingResultObjectParser; + private _success: boolean; + private _result: CraftingResultObjectParser; - public parse(wrapper:IMessageDataWrapper): boolean - { - if(!wrapper) return false; - this._success = wrapper.readBoolean(); - if(this._success) - { - this._result = new CraftingResultObjectParser(wrapper); - } - return true; - } + public parse(wrapper:IMessageDataWrapper): boolean + { + if(!wrapper) return false; + this._success = wrapper.readBoolean(); + if(this._success) + { + this._result = new CraftingResultObjectParser(wrapper); + } + return true; + } - public flush(): boolean - { - this._success = false; - return true; - } + public flush(): boolean + { + this._success = false; + return true; + } - public get success(): boolean - { - return this._success; - } + public get success(): boolean + { + return this._success; + } - public get result():CraftingResultObjectParser - { - return this._result; - } + public get result():CraftingResultObjectParser + { + return this._result; + } } diff --git a/src/nitro/communication/messages/parser/crafting/CraftingResultObjectParser.ts b/src/nitro/communication/messages/parser/crafting/CraftingResultObjectParser.ts index 118c28b7..77c980d9 100644 --- a/src/nitro/communication/messages/parser/crafting/CraftingResultObjectParser.ts +++ b/src/nitro/communication/messages/parser/crafting/CraftingResultObjectParser.ts @@ -2,22 +2,22 @@ import { IMessageDataWrapper } from '../../../../../core'; export class CraftingResultObjectParser { - private _recipeName: string; - private _itemName: string; + private _recipeName: string; + private _itemName: string; - constructor(wrapper: IMessageDataWrapper) - { - this._recipeName = wrapper.readString(); - this._itemName = wrapper.readString(); - } + constructor(wrapper: IMessageDataWrapper) + { + this._recipeName = wrapper.readString(); + this._itemName = wrapper.readString(); + } - public get recipeName(): string - { - return this._recipeName; - } + public get recipeName(): string + { + return this._recipeName; + } - public get itemName(): string - { - return this._itemName; - } + public get itemName(): string + { + return this._itemName; + } } diff --git a/src/nitro/communication/messages/parser/inventory/clothing/FigureSetIdsMessageParser.ts b/src/nitro/communication/messages/parser/inventory/clothing/FigureSetIdsMessageParser.ts index 60b3d9ab..8b6b697a 100644 --- a/src/nitro/communication/messages/parser/inventory/clothing/FigureSetIdsMessageParser.ts +++ b/src/nitro/communication/messages/parser/inventory/clothing/FigureSetIdsMessageParser.ts @@ -3,7 +3,7 @@ export class FigureSetIdsMessageParser implements IMessageParser { private _figureSetIds: number[]; - private _boundFurnitureNames: string[] + private _boundFurnitureNames: string[]; public flush(): boolean { diff --git a/src/nitro/communication/messages/parser/landingview/PromoArticlesMessageParser.ts b/src/nitro/communication/messages/parser/landingview/PromoArticlesMessageParser.ts index faed5f06..3491c928 100644 --- a/src/nitro/communication/messages/parser/landingview/PromoArticlesMessageParser.ts +++ b/src/nitro/communication/messages/parser/landingview/PromoArticlesMessageParser.ts @@ -4,30 +4,30 @@ import { IMessageParser } from './../../../../../core'; export class PromoArticlesMessageParser implements IMessageParser { - private _articles: PromoArticleData[]; + private _articles: PromoArticleData[]; - public flush(): boolean - { - this._articles = []; - return true; - } + public flush(): boolean + { + this._articles = []; + return true; + } - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; - const count = wrapper.readInt(); + const count = wrapper.readInt(); - for(let i = 0; i < count; i++) - { - this._articles.push(new PromoArticleData(wrapper)); - } + for(let i = 0; i < count; i++) + { + this._articles.push(new PromoArticleData(wrapper)); + } - return true; - } + return true; + } - public get articles(): PromoArticleData[] - { - return this._articles; - } + public get articles(): PromoArticleData[] + { + return this._articles; + } } diff --git a/src/nitro/communication/messages/parser/landingview/votes/CommunityVoteReceivedParser.ts b/src/nitro/communication/messages/parser/landingview/votes/CommunityVoteReceivedParser.ts index 4495ad55..4083f747 100644 --- a/src/nitro/communication/messages/parser/landingview/votes/CommunityVoteReceivedParser.ts +++ b/src/nitro/communication/messages/parser/landingview/votes/CommunityVoteReceivedParser.ts @@ -3,22 +3,22 @@ import { IMessageParser } from './../../../../../../core'; export class CommunityVoteReceivedParser implements IMessageParser { - private _acknowledged: boolean; + private _acknowledged: boolean; - public flush(): boolean - { - return true; - } + public flush(): boolean + { + return true; + } - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; - this._acknowledged = wrapper.readBoolean(); - return true; - } + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; + this._acknowledged = wrapper.readBoolean(); + return true; + } - public get acknowledged(): boolean - { - return this._acknowledged; - } + public get acknowledged(): boolean + { + return this._acknowledged; + } } diff --git a/src/nitro/communication/messages/parser/notifications/MOTDNotificationParser.ts b/src/nitro/communication/messages/parser/notifications/MOTDNotificationParser.ts index 1319fb95..1d13a3fd 100644 --- a/src/nitro/communication/messages/parser/notifications/MOTDNotificationParser.ts +++ b/src/nitro/communication/messages/parser/notifications/MOTDNotificationParser.ts @@ -2,7 +2,7 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core'; export class MOTDNotificationParser implements IMessageParser { - private _messages: string[] + private _messages: string[]; public flush(): boolean { diff --git a/src/nitro/communication/messages/parser/poll/PollContentsParser.ts b/src/nitro/communication/messages/parser/poll/PollContentsParser.ts index 383494d6..c298a9fc 100644 --- a/src/nitro/communication/messages/parser/poll/PollContentsParser.ts +++ b/src/nitro/communication/messages/parser/poll/PollContentsParser.ts @@ -10,7 +10,7 @@ export class PollContentsParser implements IMessageParser private _endMessage = ''; private _numQuestions = 0; private _questionArray:PollQuestion[] = []; - private _npsPoll = false + private _npsPoll = false; flush(): boolean { diff --git a/src/nitro/communication/messages/parser/quest/CommunityGoalEarnedPrizesMessageParser.ts b/src/nitro/communication/messages/parser/quest/CommunityGoalEarnedPrizesMessageParser.ts index fe78dfcc..d934a7e7 100644 --- a/src/nitro/communication/messages/parser/quest/CommunityGoalEarnedPrizesMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/CommunityGoalEarnedPrizesMessageParser.ts @@ -4,28 +4,28 @@ import { IMessageParser } from './../../../../../core'; export class CommunityGoalEarnedPrizesMessageParser implements IMessageParser { - private _prizes: PrizeData[]; + private _prizes: PrizeData[]; - public flush(): boolean - { - this._prizes = []; - return true; - } + public flush(): boolean + { + this._prizes = []; + return true; + } - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; - const count = wrapper.readInt(); - for(let i = 0; i < count; i++) - { - this._prizes.push(new PrizeData(wrapper)); - } - return true; - } + const count = wrapper.readInt(); + for(let i = 0; i < count; i++) + { + this._prizes.push(new PrizeData(wrapper)); + } + return true; + } - public get prizes(): PrizeData[] - { - return this._prizes; - } + public get prizes(): PrizeData[] + { + return this._prizes; + } } diff --git a/src/nitro/communication/messages/parser/quest/CommunityGoalHallOfFameMessageParser.ts b/src/nitro/communication/messages/parser/quest/CommunityGoalHallOfFameMessageParser.ts index 5f06b3f2..89cc1b13 100644 --- a/src/nitro/communication/messages/parser/quest/CommunityGoalHallOfFameMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/CommunityGoalHallOfFameMessageParser.ts @@ -4,24 +4,24 @@ import { IMessageParser } from './../../../../../core'; export class CommunityGoalHallOfFameMessageParser implements IMessageParser { - private _data: CommunityGoalHallOfFameData; + private _data: CommunityGoalHallOfFameData; - public flush(): boolean - { - this._data = null; - return true; - } + public flush(): boolean + { + this._data = null; + return true; + } - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; - this._data = new CommunityGoalHallOfFameData(wrapper); - return true; - } + this._data = new CommunityGoalHallOfFameData(wrapper); + return true; + } - public get data(): CommunityGoalHallOfFameData - { - return this._data; - } + public get data(): CommunityGoalHallOfFameData + { + return this._data; + } } diff --git a/src/nitro/communication/messages/parser/quest/CommunityGoalProgressMessageParser.ts b/src/nitro/communication/messages/parser/quest/CommunityGoalProgressMessageParser.ts index 301eb246..3335b408 100644 --- a/src/nitro/communication/messages/parser/quest/CommunityGoalProgressMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/CommunityGoalProgressMessageParser.ts @@ -4,24 +4,24 @@ import { IMessageParser } from './../../../../../core'; export class CommunityGoalProgressMessageParser implements IMessageParser { - private _data: CommunityGoalData; + private _data: CommunityGoalData; - public flush(): boolean - { - this._data = null; - return true; - } + public flush(): boolean + { + this._data = null; + return true; + } - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; - this._data = new CommunityGoalData(wrapper); - return true; - } + this._data = new CommunityGoalData(wrapper); + return true; + } - public get data(): CommunityGoalData - { - return this._data; - } + public get data(): CommunityGoalData + { + return this._data; + } } diff --git a/src/nitro/communication/messages/parser/quest/ConcurrentUsersGoalProgressMessageParser.ts b/src/nitro/communication/messages/parser/quest/ConcurrentUsersGoalProgressMessageParser.ts index d08d5563..30450f37 100644 --- a/src/nitro/communication/messages/parser/quest/ConcurrentUsersGoalProgressMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/ConcurrentUsersGoalProgressMessageParser.ts @@ -3,40 +3,40 @@ import { IMessageParser } from './../../../../../core'; export class ConcurrentUsersGoalProgressMessageParser implements IMessageParser { - private _state: number; - private _userCount: number; - private _userCountGoal: number; + private _state: number; + private _userCount: number; + private _userCountGoal: number; - public flush(): boolean - { - this._state = -1; - this._userCount = -1; - this._userCountGoal = -1; - return true; - } + public flush(): boolean + { + this._state = -1; + this._userCount = -1; + this._userCountGoal = -1; + return true; + } - public parse(wrapper:IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper:IMessageDataWrapper): boolean + { + if(!wrapper) return false; - this._state = wrapper.readInt(); - this._userCount = wrapper.readInt(); - this._userCountGoal = wrapper.readInt(); - return true; - } + this._state = wrapper.readInt(); + this._userCount = wrapper.readInt(); + this._userCountGoal = wrapper.readInt(); + return true; + } - public get state(): number - { - return this._state; - } + public get state(): number + { + return this._state; + } - public get userCount(): number - { - return this._userCount; - } + public get userCount(): number + { + return this._userCount; + } - public get userCountGoal(): number - { - return this._userCountGoal; - } + public get userCountGoal(): number + { + return this._userCountGoal; + } } diff --git a/src/nitro/communication/messages/parser/quest/EpicPopupMessageParser.ts b/src/nitro/communication/messages/parser/quest/EpicPopupMessageParser.ts index 623c7ea5..1d87961f 100644 --- a/src/nitro/communication/messages/parser/quest/EpicPopupMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/EpicPopupMessageParser.ts @@ -3,24 +3,24 @@ import { IMessageParser } from './../../../../../core'; export class EpicPopupMessageParser implements IMessageParser { - private _imageUri: string; + private _imageUri: string; - public flush(): boolean - { - this._imageUri = ''; - return true; - } + public flush(): boolean + { + this._imageUri = ''; + return true; + } - public parse(wrapper:IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper:IMessageDataWrapper): boolean + { + if(!wrapper) return false; - this._imageUri = wrapper.readString(); - return true; - } + this._imageUri = wrapper.readString(); + return true; + } - public get imageUri(): string - { - return this._imageUri; - } + public get imageUri(): string + { + return this._imageUri; + } } diff --git a/src/nitro/communication/messages/parser/quest/QuestCancelledMessageParser.ts b/src/nitro/communication/messages/parser/quest/QuestCancelledMessageParser.ts index 76e22aa4..bf0f1da9 100644 --- a/src/nitro/communication/messages/parser/quest/QuestCancelledMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/QuestCancelledMessageParser.ts @@ -3,23 +3,23 @@ import { IMessageParser } from './../../../../../core'; export class QuestCancelledMessageParser implements IMessageParser { - private _expired: boolean; + private _expired: boolean; - public flush(): boolean - { - return true; - } + public flush(): boolean + { + return true; + } - public parse(wrapper:IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper:IMessageDataWrapper): boolean + { + if(!wrapper) return false; - this._expired = wrapper.readBoolean(); - return true; - } + this._expired = wrapper.readBoolean(); + return true; + } - public get expired(): boolean - { - return this._expired; - } + public get expired(): boolean + { + return this._expired; + } } diff --git a/src/nitro/communication/messages/parser/quest/QuestCompletedMessageParser.ts b/src/nitro/communication/messages/parser/quest/QuestCompletedMessageParser.ts index 544b5af0..6e52ac2e 100644 --- a/src/nitro/communication/messages/parser/quest/QuestCompletedMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/QuestCompletedMessageParser.ts @@ -4,31 +4,31 @@ import { IMessageParser } from './../../../../../core'; export class QuestCompletedMessageParser implements IMessageParser { - private _questData: QuestMessageData; - private _showDialog: boolean; + private _questData: QuestMessageData; + private _showDialog: boolean; - public flush(): boolean - { - this._questData = null; - return true; - } + public flush(): boolean + { + this._questData = null; + return true; + } - public parse(wrapper:IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper:IMessageDataWrapper): boolean + { + if(!wrapper) return false; - this._questData = new QuestMessageData(wrapper); - this._showDialog = wrapper.readBoolean(); - return true; - } + this._questData = new QuestMessageData(wrapper); + this._showDialog = wrapper.readBoolean(); + return true; + } - public get questData():QuestMessageData - { - return this._questData; - } + public get questData():QuestMessageData + { + return this._questData; + } - public get showDialog(): boolean - { - return this._showDialog; - } + public get showDialog(): boolean + { + return this._showDialog; + } } diff --git a/src/nitro/communication/messages/parser/quest/QuestDailyMessageParser.ts b/src/nitro/communication/messages/parser/quest/QuestDailyMessageParser.ts index 4c628ff2..d808e942 100644 --- a/src/nitro/communication/messages/parser/quest/QuestDailyMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/QuestDailyMessageParser.ts @@ -4,42 +4,42 @@ import { IMessageParser } from './../../../../../core'; export class QuestDailyMessageParser implements IMessageParser { - private _quest:QuestMessageData; - private _easyQuestCount: number; - private _hardQuestCount: number; + private _quest:QuestMessageData; + private _easyQuestCount: number; + private _hardQuestCount: number; - public flush(): boolean - { - this._quest = null; - return true; - } + public flush(): boolean + { + this._quest = null; + return true; + } - public parse(wrapper:IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper:IMessageDataWrapper): boolean + { + if(!wrapper) return false; - const _local_2 = wrapper.readBoolean(); - if(_local_2) - { - this._quest = new QuestMessageData(wrapper); - this._easyQuestCount = wrapper.readInt(); - this._hardQuestCount = wrapper.readInt(); - } - return true; - } + const _local_2 = wrapper.readBoolean(); + if(_local_2) + { + this._quest = new QuestMessageData(wrapper); + this._easyQuestCount = wrapper.readInt(); + this._hardQuestCount = wrapper.readInt(); + } + return true; + } - public get quest(): QuestMessageData - { - return this._quest; - } + public get quest(): QuestMessageData + { + return this._quest; + } - public get easyQuestCount(): number - { - return this._easyQuestCount; - } + public get easyQuestCount(): number + { + return this._easyQuestCount; + } - public get hardQuestCount(): number - { - return this._hardQuestCount; - } + public get hardQuestCount(): number + { + return this._hardQuestCount; + } } diff --git a/src/nitro/communication/messages/parser/quest/QuestMessageParser.ts b/src/nitro/communication/messages/parser/quest/QuestMessageParser.ts index 8213f98c..79143b96 100644 --- a/src/nitro/communication/messages/parser/quest/QuestMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/QuestMessageParser.ts @@ -4,24 +4,24 @@ import { IMessageParser } from './../../../../../core'; export class QuestMessageParser implements IMessageParser { - private _quest: QuestMessageData; + private _quest: QuestMessageData; - public flush(): boolean - { - this._quest = null; - return true; - } + public flush(): boolean + { + this._quest = null; + return true; + } - public parse(wrapper:IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper:IMessageDataWrapper): boolean + { + if(!wrapper) return false; - this._quest = new QuestMessageData(wrapper); - return true; - } + this._quest = new QuestMessageData(wrapper); + return true; + } - public get quest():QuestMessageData - { - return this._quest; - } + public get quest():QuestMessageData + { + return this._quest; + } } diff --git a/src/nitro/communication/messages/parser/quest/QuestsMessageParser.ts b/src/nitro/communication/messages/parser/quest/QuestsMessageParser.ts index 90f9825c..127bdab1 100644 --- a/src/nitro/communication/messages/parser/quest/QuestsMessageParser.ts +++ b/src/nitro/communication/messages/parser/quest/QuestsMessageParser.ts @@ -3,38 +3,38 @@ import { QuestMessageData } from '../../incoming/quest/QuestMessageData'; export class QuestsMessageParser implements IMessageParser { - private _quests: QuestMessageData[]; - private _openWindow: boolean; + private _quests: QuestMessageData[]; + private _openWindow: boolean; - public flush(): boolean - { - this._quests = []; - return true; - } + public flush(): boolean + { + this._quests = []; + return true; + } - public parse(wrapper:IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper:IMessageDataWrapper): boolean + { + if(!wrapper) return false; - const count = wrapper.readInt(); + const count = wrapper.readInt(); - for(let i = 0; i < count; i++) - { - this._quests.push(new QuestMessageData(wrapper)); - } + for(let i = 0; i < count; i++) + { + this._quests.push(new QuestMessageData(wrapper)); + } - this._openWindow = wrapper.readBoolean(); - return true; - } + this._openWindow = wrapper.readBoolean(); + return true; + } - public get quests(): QuestMessageData[] - { - return this._quests; - } + public get quests(): QuestMessageData[] + { + return this._quests; + } - public get openWindow(): boolean - { - return this._openWindow; - } + public get openWindow(): boolean + { + return this._openWindow; + } } diff --git a/src/nitro/communication/messages/parser/quest/SeasonalQuestsParser.ts b/src/nitro/communication/messages/parser/quest/SeasonalQuestsParser.ts index 130bcd33..fc062f57 100644 --- a/src/nitro/communication/messages/parser/quest/SeasonalQuestsParser.ts +++ b/src/nitro/communication/messages/parser/quest/SeasonalQuestsParser.ts @@ -4,30 +4,30 @@ import { IMessageParser } from './../../../../../core'; export class SeasonalQuestsParser implements IMessageParser { - private _quests: QuestMessageData[]; + private _quests: QuestMessageData[]; - public flush(): boolean - { - this._quests = []; - return true; - } + public flush(): boolean + { + this._quests = []; + return true; + } - public parse(wrapper:IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper:IMessageDataWrapper): boolean + { + if(!wrapper) return false; - const count = wrapper.readInt(); + const count = wrapper.readInt(); - for(let i = 0; i < count; i++) - { - this._quests.push(new QuestMessageData(wrapper)); - } + for(let i = 0; i < count; i++) + { + this._quests.push(new QuestMessageData(wrapper)); + } - return true; - } + return true; + } - public get quests(): QuestMessageData[] - { - return this._quests; - } + public get quests(): QuestMessageData[] + { + return this._quests; + } } diff --git a/src/nitro/communication/messages/parser/talent/TalentTrackLevel.ts b/src/nitro/communication/messages/parser/talent/TalentTrackLevel.ts index 03d8c4db..03a6eb04 100644 --- a/src/nitro/communication/messages/parser/talent/TalentTrackLevel.ts +++ b/src/nitro/communication/messages/parser/talent/TalentTrackLevel.ts @@ -5,7 +5,7 @@ export class TalentTrackLevel { private _level: number; private _state: number; - private _tasks: TalentTrackTask[] + private _tasks: TalentTrackTask[]; private _rewardPerks: string[]; private _rewardProducts: TalentTrackRewardProduct[]; diff --git a/src/nitro/communication/messages/parser/user/InClientLinkParser.ts b/src/nitro/communication/messages/parser/user/InClientLinkParser.ts index 4a18bc3e..d443eda6 100644 --- a/src/nitro/communication/messages/parser/user/InClientLinkParser.ts +++ b/src/nitro/communication/messages/parser/user/InClientLinkParser.ts @@ -2,24 +2,24 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core'; export class InClientLinkParser implements IMessageParser { - private _link: string; + private _link: string; - public flush(): boolean - { - this._link = null; - return true; - } + public flush(): boolean + { + this._link = null; + return true; + } - public parse(wrapper: IMessageDataWrapper): boolean - { - if(!wrapper) return false; + public parse(wrapper: IMessageDataWrapper): boolean + { + if(!wrapper) return false; - this._link = wrapper.readString(); - return true; - } + this._link = wrapper.readString(); + return true; + } - public get link(): string - { - return this._link; - } + public get link(): string + { + return this._link; + } } diff --git a/src/nitro/room/events/RoomEngineTriggerWidgetEvent.ts b/src/nitro/room/events/RoomEngineTriggerWidgetEvent.ts index 398a71ab..afc99d3e 100644 --- a/src/nitro/room/events/RoomEngineTriggerWidgetEvent.ts +++ b/src/nitro/room/events/RoomEngineTriggerWidgetEvent.ts @@ -34,7 +34,7 @@ export class RoomEngineTriggerWidgetEvent extends RoomEngineObjectEvent public static REQUEST_INTERNAL_LINK: string = 'RETWE_REQUEST_INTERNAL_LINK'; public static REQUEST_ROOM_LINK: string = 'RETWE_REQUEST_ROOM_LINK'; - private _widget: string + private _widget: string; constructor(type: string, roomId: number, objectId: number, category: number, widget: string = null) { diff --git a/src/nitro/room/utils/FurnitureStackingHeightMap.ts b/src/nitro/room/utils/FurnitureStackingHeightMap.ts index 3dca78a4..e198ec5e 100644 --- a/src/nitro/room/utils/FurnitureStackingHeightMap.ts +++ b/src/nitro/room/utils/FurnitureStackingHeightMap.ts @@ -2,7 +2,7 @@ export class FurnitureStackingHeightMap { private _width: number; private _height: number; - private _heights: number[] + private _heights: number[]; private _isNotStackable: boolean[]; private _isRoomTile: boolean[];