Fix eslint

This commit is contained in:
Bill 2022-03-02 19:18:14 -05:00
parent f6da35c942
commit 9adc09897d
58 changed files with 1034 additions and 1034 deletions

View File

@ -7,7 +7,7 @@ import { ICommunicationManager } from './ICommunicationManager';
export class CommunicationManager extends Disposable implements ICommunicationManager, IUpdateReceiver export class CommunicationManager extends Disposable implements ICommunicationManager, IUpdateReceiver
{ {
private _connections: IConnection[] private _connections: IConnection[];
constructor() constructor()
{ {

View File

@ -2,61 +2,61 @@ import { IMessageDataWrapper } from '../../../../../core';
export class PromoArticleData export class PromoArticleData
{ {
public static readonly LINK_TYPE_URL = 0; public static readonly LINK_TYPE_URL = 0;
public static readonly LINK_TYPE_INTERNAL = 1; public static readonly LINK_TYPE_INTERNAL = 1;
public static readonly LINK_TYPE_NO_LINK = 2; public static readonly LINK_TYPE_NO_LINK = 2;
private _id: number; private _id: number;
private _title: string; private _title: string;
private _bodyText: string; private _bodyText: string;
private _buttonText: string; private _buttonText: string;
private _linkType: number; private _linkType: number;
private _linkContent: string; private _linkContent: string;
private _imageUrl: string; private _imageUrl: string;
constructor(k: IMessageDataWrapper) constructor(k: IMessageDataWrapper)
{ {
this._id = k.readInt(); this._id = k.readInt();
this._title = k.readString(); this._title = k.readString();
this._bodyText = k.readString(); this._bodyText = k.readString();
this._buttonText = k.readString(); this._buttonText = k.readString();
this._linkType = k.readInt(); this._linkType = k.readInt();
this._linkContent = k.readString(); this._linkContent = k.readString();
this._imageUrl = k.readString(); this._imageUrl = k.readString();
} }
public get id(): number public get id(): number
{ {
return this._id; return this._id;
} }
public get title(): string public get title(): string
{ {
return this._title; return this._title;
} }
public get bodyText(): string public get bodyText(): string
{ {
return this._bodyText; return this._bodyText;
} }
public get buttonText(): string public get buttonText(): string
{ {
return this._buttonText; return this._buttonText;
} }
public get linkType(): number public get linkType(): number
{ {
return this._linkType; return this._linkType;
} }
public get linkContent(): string public get linkContent(): string
{ {
return this._linkContent; return this._linkContent;
} }
public get imageUrl(): string public get imageUrl(): string
{ {
return this._imageUrl; return this._imageUrl;
} }
} }

View File

@ -7,7 +7,7 @@ export class CfhChatlogData
private _callerUserId: number; private _callerUserId: number;
private _reportedUserId: number; private _reportedUserId: number;
private _chatRecordId: number; private _chatRecordId: number;
private _chatRecord: ChatRecordData private _chatRecord: ChatRecordData;
constructor(k:IMessageDataWrapper) constructor(k:IMessageDataWrapper)
{ {

View File

@ -2,50 +2,50 @@ import { IMessageDataWrapper } from '../../../../../core';
export class PrizeData export class PrizeData
{ {
private _communityGoalId: number; private _communityGoalId: number;
private _communityGoalCode: string; private _communityGoalCode: string;
private _userRank: number; private _userRank: number;
private _rewardCode: string; private _rewardCode: string;
private _badge: boolean; private _badge: boolean;
private _localizedName: string; private _localizedName: string;
constructor(k: IMessageDataWrapper) constructor(k: IMessageDataWrapper)
{ {
this._communityGoalId = k.readInt(); this._communityGoalId = k.readInt();
this._communityGoalCode = k.readString(); this._communityGoalCode = k.readString();
this._userRank = k.readInt(); this._userRank = k.readInt();
this._rewardCode = k.readString(); this._rewardCode = k.readString();
this._badge = k.readBoolean(); this._badge = k.readBoolean();
this._localizedName = k.readString(); this._localizedName = k.readString();
} }
public get communityGoalId(): number public get communityGoalId(): number
{ {
return this._communityGoalId; return this._communityGoalId;
} }
public get communityGoalCode(): string public get communityGoalCode(): string
{ {
return this._communityGoalCode; return this._communityGoalCode;
} }
public get userRank(): number public get userRank(): number
{ {
return this._userRank; return this._userRank;
} }
public get rewardCode(): string public get rewardCode(): string
{ {
return this._rewardCode; return this._rewardCode;
} }
public get badge(): boolean public get badge(): boolean
{ {
return this._badge; return this._badge;
} }
public get localizedName(): string public get localizedName(): string
{ {
return this._localizedName; return this._localizedName;
} }
} }

View File

@ -2,185 +2,185 @@ import { IMessageDataWrapper } from '../../../../../core';
export class QuestMessageData export class QuestMessageData
{ {
private _campaignCode: string; private _campaignCode: string;
private _completedQuestsInCampaign: number; private _completedQuestsInCampaign: number;
private _questCountInCampaign: number; private _questCountInCampaign: number;
private _activityPointType: number; private _activityPointType: number;
private _id: number; private _id: number;
private _accepted: boolean; private _accepted: boolean;
private _type: string; private _type: string;
private _imageVersion: string; private _imageVersion: string;
private _rewardCurrencyAmount: number; private _rewardCurrencyAmount: number;
private _localizationCode: string; private _localizationCode: string;
private _completedSteps: number; private _completedSteps: number;
private _totalSteps: number; private _totalSteps: number;
private _waitPeriodSeconds: number; private _waitPeriodSeconds: number;
private _sortOrder: number; private _sortOrder: number;
private _catalogPageName: string; private _catalogPageName: string;
private _chainCode: string; private _chainCode: string;
private _easy: boolean; private _easy: boolean;
private _receiveTime: Date; private _receiveTime: Date;
constructor(wrapper: IMessageDataWrapper) constructor(wrapper: IMessageDataWrapper)
{ {
this._receiveTime = new Date(); this._receiveTime = new Date();
this._campaignCode = wrapper.readString(); this._campaignCode = wrapper.readString();
this._completedQuestsInCampaign = wrapper.readInt(); this._completedQuestsInCampaign = wrapper.readInt();
this._questCountInCampaign = wrapper.readInt(); this._questCountInCampaign = wrapper.readInt();
this._activityPointType = wrapper.readInt(); this._activityPointType = wrapper.readInt();
this._id = wrapper.readInt(); this._id = wrapper.readInt();
this._accepted = wrapper.readBoolean(); this._accepted = wrapper.readBoolean();
this._type = wrapper.readString(); this._type = wrapper.readString();
this._imageVersion = wrapper.readString(); this._imageVersion = wrapper.readString();
this._rewardCurrencyAmount = wrapper.readInt(); this._rewardCurrencyAmount = wrapper.readInt();
this._localizationCode = wrapper.readString(); this._localizationCode = wrapper.readString();
this._completedSteps = wrapper.readInt(); this._completedSteps = wrapper.readInt();
this._totalSteps = wrapper.readInt(); this._totalSteps = wrapper.readInt();
this._sortOrder = wrapper.readInt(); this._sortOrder = wrapper.readInt();
this._catalogPageName = wrapper.readString(); this._catalogPageName = wrapper.readString();
this._chainCode = wrapper.readString(); this._chainCode = wrapper.readString();
this._easy = wrapper.readBoolean(); this._easy = wrapper.readBoolean();
} }
public static getCampaignLocalizationKeyForCode(k: string): string public static getCampaignLocalizationKeyForCode(k: string): string
{ {
return 'quests.' + k; return 'quests.' + k;
} }
public get campaignCode(): string public get campaignCode(): string
{ {
return this._campaignCode; return this._campaignCode;
} }
public get localizationCode(): string public get localizationCode(): string
{ {
return this._localizationCode; return this._localizationCode;
} }
public get completedQuestsInCampaign(): number public get completedQuestsInCampaign(): number
{ {
return this._completedQuestsInCampaign; return this._completedQuestsInCampaign;
} }
public get questCountInCampaign(): number public get questCountInCampaign(): number
{ {
return this._questCountInCampaign; return this._questCountInCampaign;
} }
public get activityPointType(): number public get activityPointType(): number
{ {
return this._activityPointType; return this._activityPointType;
} }
public set accepted(k: boolean) public set accepted(k: boolean)
{ {
this._accepted = k; this._accepted = k;
} }
public get accepted(): boolean public get accepted(): boolean
{ {
return this._accepted; return this._accepted;
} }
public set id(k: number) public set id(k: number)
{ {
this._id = k; this._id = k;
} }
public get id(): number public get id(): number
{ {
return this._id; return this._id;
} }
public get type(): string public get type(): string
{ {
return this._type; return this._type;
} }
public get imageVersion(): string public get imageVersion(): string
{ {
return this._imageVersion; return this._imageVersion;
} }
public get rewardCurrencyAmount(): number public get rewardCurrencyAmount(): number
{ {
return this._rewardCurrencyAmount; return this._rewardCurrencyAmount;
} }
public get completedSteps(): number public get completedSteps(): number
{ {
return this._completedSteps; return this._completedSteps;
} }
public get totalSteps(): number public get totalSteps(): number
{ {
return this._totalSteps; return this._totalSteps;
} }
public get isCompleted(): boolean public get isCompleted(): boolean
{ {
return this._completedSteps == this._totalSteps; return this._completedSteps == this._totalSteps;
} }
public set waitPeriodSeconds(k: number) public set waitPeriodSeconds(k: number)
{ {
this._waitPeriodSeconds = k; this._waitPeriodSeconds = k;
} }
public get waitPeriodSeconds(): number public get waitPeriodSeconds(): number
{ {
if(this._waitPeriodSeconds < 1) if(this._waitPeriodSeconds < 1)
{ {
return 0; return 0;
} }
const k = new Date(); const k = new Date();
const _local_2 = (k.getTime() - this._receiveTime.getTime()); const _local_2 = (k.getTime() - this._receiveTime.getTime());
const _local_3 = Math.max(0, (this._waitPeriodSeconds - Math.floor((_local_2 / 1000)))); const _local_3 = Math.max(0, (this._waitPeriodSeconds - Math.floor((_local_2 / 1000))));
return _local_3; return _local_3;
} }
public getCampaignLocalizationKey(): string public getCampaignLocalizationKey(): string
{ {
return QuestMessageData.getCampaignLocalizationKeyForCode(this.campaignCode); return QuestMessageData.getCampaignLocalizationKeyForCode(this.campaignCode);
} }
public getQuestLocalizationKey(): string public getQuestLocalizationKey(): string
{ {
return (this.getCampaignLocalizationKey() + '.') + this._localizationCode; return (this.getCampaignLocalizationKey() + '.') + this._localizationCode;
} }
public get completedCampaign(): boolean public get completedCampaign(): boolean
{ {
return this._id < 1; return this._id < 1;
} }
public get lastQuestInCampaign(): boolean public get lastQuestInCampaign(): boolean
{ {
return this._completedQuestsInCampaign >= this._questCountInCampaign; return this._completedQuestsInCampaign >= this._questCountInCampaign;
} }
public get receiveTime(): Date public get receiveTime(): Date
{ {
return this._receiveTime; return this._receiveTime;
} }
public get sortOrder(): number public get sortOrder(): number
{ {
return this._sortOrder; return this._sortOrder;
} }
public get catalogPageName(): string public get catalogPageName(): string
{ {
return this._catalogPageName; return this._catalogPageName;
} }
public get chainCode(): string public get chainCode(): string
{ {
return this._chainCode; return this._chainCode;
} }
public get easy(): boolean public get easy(): boolean
{ {
return this._easy; return this._easy;
} }
} }

View File

@ -218,7 +218,7 @@ export class OutgoingHeader
public static USER_IGNORE_ID = 3314; public static USER_IGNORE_ID = 3314;
public static USER_IGNORE = 1117; public static USER_IGNORE = 1117;
public static USER_UNIGNORE = 2061; 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_CHANGE_ROOM_SETTINGS = 3260;
public static MODTOOL_REQUEST_USER_CHATLOG = 1391; public static MODTOOL_REQUEST_USER_CHATLOG = 1391;
public static MODTOOL_REQUEST_ROOM_CHATLOG = 2587; 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_GUIDE_DECIDES = 1424;
public static GUIDE_SESSION_INVITE_REQUESTER = 234; public static GUIDE_SESSION_INVITE_REQUESTER = 234;
public static GUIDE_SESSION_IS_TYPING = 519; 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_ON_DUTY_UPDATE = 1922;
public static GUIDE_SESSION_REPORT = 3969; public static GUIDE_SESSION_REPORT = 3969;
public static GUIDE_SESSION_REQUESTER_CANCELS = 291; public static GUIDE_SESSION_REQUESTER_CANCELS = 291;

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetBonusRareInfoMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetBonusRareInfoMessageComposer>> export class GetBonusRareInfoMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetBonusRareInfoMessageComposer>>
{ {
private _data: ConstructorParameters<typeof GetBonusRareInfoMessageComposer>; private _data: ConstructorParameters<typeof GetBonusRareInfoMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class CraftComposer implements IMessageComposer<ConstructorParameters<typeof CraftComposer>> export class CraftComposer implements IMessageComposer<ConstructorParameters<typeof CraftComposer>>
{ {
private _data: ConstructorParameters<typeof CraftComposer>; private _data: ConstructorParameters<typeof CraftComposer>;
constructor(k: number, _arg_2: string) constructor(k: number, _arg_2: string)
{ {
this._data = [k, _arg_2]; this._data = [k, _arg_2];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class CraftSecretComposer implements IMessageComposer<number[]> export class CraftSecretComposer implements IMessageComposer<number[]>
{ {
private _data: number[]; private _data: number[];
constructor(k: number, _arg_2: number[]) constructor(k: number, _arg_2: number[])
{ {
this._data = [k, _arg_2.length].concat(_arg_2); this._data = [k, _arg_2.length].concat(_arg_2);
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCraftableProductsComposer implements IMessageComposer<ConstructorParameters<typeof GetCraftableProductsComposer>> export class GetCraftableProductsComposer implements IMessageComposer<ConstructorParameters<typeof GetCraftableProductsComposer>>
{ {
private _data: ConstructorParameters<typeof GetCraftableProductsComposer>; private _data: ConstructorParameters<typeof GetCraftableProductsComposer>;
constructor(k: number) constructor(k: number)
{ {
this._data = [k]; this._data = [k];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCraftingRecipeComposer implements IMessageComposer<ConstructorParameters<typeof GetCraftingRecipeComposer>> export class GetCraftingRecipeComposer implements IMessageComposer<ConstructorParameters<typeof GetCraftingRecipeComposer>>
{ {
private _data: ConstructorParameters<typeof GetCraftingRecipeComposer>; private _data: ConstructorParameters<typeof GetCraftingRecipeComposer>;
constructor(k: string) constructor(k: string)
{ {
this._data = [k]; this._data = [k];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCraftingRecipesAvailableComposer implements IMessageComposer<number[]> export class GetCraftingRecipesAvailableComposer implements IMessageComposer<number[]>
{ {
private _data: number[]; private _data: number[];
constructor(k: number, _arg_2: number[]) constructor(k: number, _arg_2: number[])
{ {
this._data = [k, _arg_2.length].concat(_arg_2); this._data = [k, _arg_2.length].concat(_arg_2);
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetPromoArticlesComposer implements IMessageComposer<ConstructorParameters<typeof GetPromoArticlesComposer>> export class GetPromoArticlesComposer implements IMessageComposer<ConstructorParameters<typeof GetPromoArticlesComposer>>
{ {
private _data: ConstructorParameters<typeof GetPromoArticlesComposer>; private _data: ConstructorParameters<typeof GetPromoArticlesComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../../core/communication/messages/
export class CommunityGoalVoteMessageComposer implements IMessageComposer<ConstructorParameters<typeof CommunityGoalVoteMessageComposer>> export class CommunityGoalVoteMessageComposer implements IMessageComposer<ConstructorParameters<typeof CommunityGoalVoteMessageComposer>>
{ {
private _data: ConstructorParameters<typeof CommunityGoalVoteMessageComposer>; private _data: ConstructorParameters<typeof CommunityGoalVoteMessageComposer>;
constructor(voteOption: number) constructor(voteOption: number)
{ {
this._data = [voteOption]; this._data = [voteOption];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class ConvertGlobalRoomIdMessageComposer implements IMessageComposer<ConstructorParameters<typeof ConvertGlobalRoomIdMessageComposer>> export class ConvertGlobalRoomIdMessageComposer implements IMessageComposer<ConstructorParameters<typeof ConvertGlobalRoomIdMessageComposer>>
{ {
private _data: ConstructorParameters<typeof ConvertGlobalRoomIdMessageComposer>; private _data: ConstructorParameters<typeof ConvertGlobalRoomIdMessageComposer>;
constructor(flatId: string) constructor(flatId: string)
{ {
this._data = [ flatId ]; this._data = [ flatId ];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class AcceptQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof AcceptQuestMessageComposer>> export class AcceptQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof AcceptQuestMessageComposer>>
{ {
private _data: ConstructorParameters<typeof AcceptQuestMessageComposer>; private _data: ConstructorParameters<typeof AcceptQuestMessageComposer>;
constructor(k: number) constructor(k: number)
{ {
this._data = [k]; this._data = [k];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class ActivateQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof ActivateQuestMessageComposer>> export class ActivateQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof ActivateQuestMessageComposer>>
{ {
private _data: ConstructorParameters<typeof ActivateQuestMessageComposer>; private _data: ConstructorParameters<typeof ActivateQuestMessageComposer>;
constructor(k: number) constructor(k: number)
{ {
this._data = [k]; this._data = [k];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class CancelQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof CancelQuestMessageComposer>> export class CancelQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof CancelQuestMessageComposer>>
{ {
private _data: ConstructorParameters<typeof CancelQuestMessageComposer>; private _data: ConstructorParameters<typeof CancelQuestMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class FriendRequestQuestCompleteMessageComposer implements IMessageComposer<ConstructorParameters<typeof FriendRequestQuestCompleteMessageComposer>> export class FriendRequestQuestCompleteMessageComposer implements IMessageComposer<ConstructorParameters<typeof FriendRequestQuestCompleteMessageComposer>>
{ {
private _data: ConstructorParameters<typeof FriendRequestQuestCompleteMessageComposer>; private _data: ConstructorParameters<typeof FriendRequestQuestCompleteMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCommunityGoalEarnedPrizesMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCommunityGoalEarnedPrizesMessageComposer>> export class GetCommunityGoalEarnedPrizesMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCommunityGoalEarnedPrizesMessageComposer>>
{ {
private _data: ConstructorParameters<typeof GetCommunityGoalEarnedPrizesMessageComposer>; private _data: ConstructorParameters<typeof GetCommunityGoalEarnedPrizesMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCommunityGoalHallOfFameMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCommunityGoalHallOfFameMessageComposer>> export class GetCommunityGoalHallOfFameMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCommunityGoalHallOfFameMessageComposer>>
{ {
private _data: ConstructorParameters<typeof GetCommunityGoalHallOfFameMessageComposer>; private _data: ConstructorParameters<typeof GetCommunityGoalHallOfFameMessageComposer>;
constructor(k: string) constructor(k: string)
{ {
this._data = [k]; this._data = [k];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCommunityGoalProgressMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCommunityGoalProgressMessageComposer>> export class GetCommunityGoalProgressMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCommunityGoalProgressMessageComposer>>
{ {
private _data: ConstructorParameters<typeof GetCommunityGoalProgressMessageComposer>; private _data: ConstructorParameters<typeof GetCommunityGoalProgressMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetConcurrentUsersGoalProgressMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetConcurrentUsersGoalProgressMessageComposer>> export class GetConcurrentUsersGoalProgressMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetConcurrentUsersGoalProgressMessageComposer>>
{ {
private _data: ConstructorParameters<typeof GetConcurrentUsersGoalProgressMessageComposer>; private _data: ConstructorParameters<typeof GetConcurrentUsersGoalProgressMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetConcurrentUsersRewardMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetConcurrentUsersRewardMessageComposer>> export class GetConcurrentUsersRewardMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetConcurrentUsersRewardMessageComposer>>
{ {
private _data: ConstructorParameters<typeof GetConcurrentUsersRewardMessageComposer>; private _data: ConstructorParameters<typeof GetConcurrentUsersRewardMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetDailyQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetDailyQuestMessageComposer>> export class GetDailyQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetDailyQuestMessageComposer>>
{ {
private _data: ConstructorParameters<typeof GetDailyQuestMessageComposer>; private _data: ConstructorParameters<typeof GetDailyQuestMessageComposer>;
constructor(k: boolean, _arg_2: number) constructor(k: boolean, _arg_2: number)
{ {
this._data = [k, _arg_2]; this._data = [k, _arg_2];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetQuestsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetQuestsMessageComposer>> export class GetQuestsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetQuestsMessageComposer>>
{ {
private _data: ConstructorParameters<typeof GetQuestsMessageComposer>; private _data: ConstructorParameters<typeof GetQuestsMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetSeasonalQuestsOnlyMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetSeasonalQuestsOnlyMessageComposer>> export class GetSeasonalQuestsOnlyMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetSeasonalQuestsOnlyMessageComposer>>
{ {
private _data: ConstructorParameters<typeof GetSeasonalQuestsOnlyMessageComposer>; private _data: ConstructorParameters<typeof GetSeasonalQuestsOnlyMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class OpenQuestTrackerMessageComposer implements IMessageComposer<ConstructorParameters<typeof OpenQuestTrackerMessageComposer>> export class OpenQuestTrackerMessageComposer implements IMessageComposer<ConstructorParameters<typeof OpenQuestTrackerMessageComposer>>
{ {
private _data: ConstructorParameters<typeof OpenQuestTrackerMessageComposer>; private _data: ConstructorParameters<typeof OpenQuestTrackerMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class RedeemCommunityGoalPrizeMessageComposer implements IMessageComposer<ConstructorParameters<typeof RedeemCommunityGoalPrizeMessageComposer>> export class RedeemCommunityGoalPrizeMessageComposer implements IMessageComposer<ConstructorParameters<typeof RedeemCommunityGoalPrizeMessageComposer>>
{ {
private _data: ConstructorParameters<typeof RedeemCommunityGoalPrizeMessageComposer>; private _data: ConstructorParameters<typeof RedeemCommunityGoalPrizeMessageComposer>;
constructor(communityGoalId: number) constructor(communityGoalId: number)
{ {
this._data = [communityGoalId]; this._data = [communityGoalId];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class RejectQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof RejectQuestMessageComposer>> export class RejectQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof RejectQuestMessageComposer>>
{ {
private _data: ConstructorParameters<typeof RejectQuestMessageComposer>; private _data: ConstructorParameters<typeof RejectQuestMessageComposer>;
constructor() constructor()
{ {
this._data = []; this._data = [];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class StartCampaignMessageComposer implements IMessageComposer<ConstructorParameters<typeof StartCampaignMessageComposer>> export class StartCampaignMessageComposer implements IMessageComposer<ConstructorParameters<typeof StartCampaignMessageComposer>>
{ {
private _data: ConstructorParameters<typeof StartCampaignMessageComposer>; private _data: ConstructorParameters<typeof StartCampaignMessageComposer>;
constructor(k: string) constructor(k: string)
{ {
this._data = [k]; this._data = [k];
} }
public getMessageArray() public getMessageArray()
{ {
return this._data; return this._data;
} }
public dispose(): void public dispose(): void
{ {
return; return;
} }
} }

View File

@ -3,48 +3,48 @@ import { IMessageParser } from './../../../../../core';
export class BonusRareInfoMessageParser implements IMessageParser export class BonusRareInfoMessageParser implements IMessageParser
{ {
private _productType: string; private _productType: string;
private _productClassId: number; private _productClassId: number;
private _totalCoinsForBonus: number; private _totalCoinsForBonus: number;
private _coinsStillRequiredToBuy: number; private _coinsStillRequiredToBuy: number;
public flush(): boolean public flush(): boolean
{ {
this._totalCoinsForBonus = -1; this._totalCoinsForBonus = -1;
this._coinsStillRequiredToBuy = -1; this._coinsStillRequiredToBuy = -1;
this._productType = ''; this._productType = '';
this._productClassId = -1; this._productClassId = -1;
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._productType = wrapper.readString(); this._productType = wrapper.readString();
this._productClassId = wrapper.readInt(); this._productClassId = wrapper.readInt();
this._totalCoinsForBonus = wrapper.readInt(); this._totalCoinsForBonus = wrapper.readInt();
this._coinsStillRequiredToBuy = wrapper.readInt(); this._coinsStillRequiredToBuy = wrapper.readInt();
return true; return true;
} }
public get totalCoinsForBonus(): number public get totalCoinsForBonus(): number
{ {
return this._totalCoinsForBonus; return this._totalCoinsForBonus;
} }
public get coinsStillRequiredToBuy(): number public get coinsStillRequiredToBuy(): number
{ {
return this._coinsStillRequiredToBuy; return this._coinsStillRequiredToBuy;
} }
public get productType(): string public get productType(): string
{ {
return this._productType; return this._productType;
} }
public get productClassId(): number public get productClassId(): number
{ {
return this._productClassId; return this._productClassId;
} }
} }

View File

@ -4,50 +4,50 @@ import { CraftingResultObjectParser } from './CraftingResultObjectParser';
export class CraftableProductsMessageParser implements IMessageParser export class CraftableProductsMessageParser implements IMessageParser
{ {
private _recipes: CraftingResultObjectParser[]; private _recipes: CraftingResultObjectParser[];
private _ingredients: string[]; private _ingredients: string[];
constructor() constructor()
{ {
this._recipes = []; this._recipes = [];
this._ingredients = []; this._ingredients = [];
} }
public flush(): boolean public flush(): boolean
{ {
this._recipes = []; this._recipes = [];
this._ingredients = []; this._ingredients = [];
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
const craftingResultCount = wrapper.readInt(); const craftingResultCount = wrapper.readInt();
for(let i = 0; i < craftingResultCount; i++) for(let i = 0; i < craftingResultCount; i++)
{ {
this._recipes.push(new CraftingResultObjectParser(wrapper)); this._recipes.push(new CraftingResultObjectParser(wrapper));
} }
const ingredientCount = wrapper.readInt(); const ingredientCount = wrapper.readInt();
for(let i = 0; i < ingredientCount; i++) for(let i = 0; i < ingredientCount; i++)
{ {
this._ingredients.push(wrapper.readString()); this._ingredients.push(wrapper.readString());
} }
return true; return true;
} }
public get recipes(): CraftingResultObjectParser[] public get recipes(): CraftingResultObjectParser[]
{ {
return this._recipes; return this._recipes;
} }
public get ingredients(): string[] public get ingredients(): string[]
{ {
return this._ingredients; return this._ingredients;
} }
public isActive(): boolean public isActive(): boolean
{ {
return (this._recipes.length > 0) || (this._ingredients.length > 0); return (this._recipes.length > 0) || (this._ingredients.length > 0);
} }
} }

View File

@ -2,22 +2,22 @@ import { IMessageDataWrapper } from '../../../../../core';
export class CraftingRecipeIngredientParser export class CraftingRecipeIngredientParser
{ {
private _count: number; private _count: number;
private _itemName: string; private _itemName: string;
constructor(wrapper: IMessageDataWrapper) constructor(wrapper: IMessageDataWrapper)
{ {
this._count = wrapper.readInt(); this._count = wrapper.readInt();
this._itemName = wrapper.readString(); this._itemName = wrapper.readString();
} }
public get count(): number public get count(): number
{ {
return this._count; return this._count;
} }
public get itemName(): string public get itemName(): string
{ {
return this._itemName; return this._itemName;
} }
} }

View File

@ -4,32 +4,32 @@ import { CraftingRecipeIngredientParser } from './CraftingRecipeIngredientParser
export class CraftingRecipeMessageParser implements IMessageParser export class CraftingRecipeMessageParser implements IMessageParser
{ {
private _ingredients: CraftingRecipeIngredientParser[]; private _ingredients: CraftingRecipeIngredientParser[];
constructor() constructor()
{ {
this._ingredients = []; this._ingredients = [];
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
const ingredientCount = wrapper.readInt(); const ingredientCount = wrapper.readInt();
for(let i = 0; i < ingredientCount; i++) for(let i = 0; i < ingredientCount; i++)
{ {
this._ingredients.push(new CraftingRecipeIngredientParser(wrapper)); this._ingredients.push(new CraftingRecipeIngredientParser(wrapper));
} }
return true; return true;
} }
public flush(): boolean public flush(): boolean
{ {
this._ingredients = []; this._ingredients = [];
return true; return true;
} }
public get ingredients(): CraftingRecipeIngredientParser[] public get ingredients(): CraftingRecipeIngredientParser[]
{ {
return this._ingredients; return this._ingredients;
} }
} }

View File

@ -3,31 +3,31 @@ import { IMessageParser } from './../../../../../core';
export class CraftingRecipesAvailableMessageParser implements IMessageParser export class CraftingRecipesAvailableMessageParser implements IMessageParser
{ {
private _hasRecipes: boolean; private _hasRecipes: boolean;
private _count: number; private _count: number;
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._count = wrapper.readInt(); this._count = wrapper.readInt();
this._hasRecipes = wrapper.readBoolean(); this._hasRecipes = wrapper.readBoolean();
return true; return true;
} }
public flush(): boolean public flush(): boolean
{ {
this._count = 0; this._count = 0;
this._hasRecipes = false; this._hasRecipes = false;
return true; return true;
} }
public get count(): number public get count(): number
{ {
return this._count; return this._count;
} }
public get hasRecipes(): boolean public get hasRecipes(): boolean
{ {
return this._hasRecipes; return this._hasRecipes;
} }
} }

View File

@ -4,33 +4,33 @@ import { CraftingResultObjectParser } from './CraftingResultObjectParser';
export class CraftingResultMessageParser implements IMessageParser export class CraftingResultMessageParser implements IMessageParser
{ {
private _success: boolean; private _success: boolean;
private _result: CraftingResultObjectParser; private _result: CraftingResultObjectParser;
public parse(wrapper:IMessageDataWrapper): boolean public parse(wrapper:IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._success = wrapper.readBoolean(); this._success = wrapper.readBoolean();
if(this._success) if(this._success)
{ {
this._result = new CraftingResultObjectParser(wrapper); this._result = new CraftingResultObjectParser(wrapper);
} }
return true; return true;
} }
public flush(): boolean public flush(): boolean
{ {
this._success = false; this._success = false;
return true; return true;
} }
public get success(): boolean public get success(): boolean
{ {
return this._success; return this._success;
} }
public get result():CraftingResultObjectParser public get result():CraftingResultObjectParser
{ {
return this._result; return this._result;
} }
} }

View File

@ -2,22 +2,22 @@ import { IMessageDataWrapper } from '../../../../../core';
export class CraftingResultObjectParser export class CraftingResultObjectParser
{ {
private _recipeName: string; private _recipeName: string;
private _itemName: string; private _itemName: string;
constructor(wrapper: IMessageDataWrapper) constructor(wrapper: IMessageDataWrapper)
{ {
this._recipeName = wrapper.readString(); this._recipeName = wrapper.readString();
this._itemName = wrapper.readString(); this._itemName = wrapper.readString();
} }
public get recipeName(): string public get recipeName(): string
{ {
return this._recipeName; return this._recipeName;
} }
public get itemName(): string public get itemName(): string
{ {
return this._itemName; return this._itemName;
} }
} }

View File

@ -3,7 +3,7 @@
export class FigureSetIdsMessageParser implements IMessageParser export class FigureSetIdsMessageParser implements IMessageParser
{ {
private _figureSetIds: number[]; private _figureSetIds: number[];
private _boundFurnitureNames: string[] private _boundFurnitureNames: string[];
public flush(): boolean public flush(): boolean
{ {

View File

@ -4,30 +4,30 @@ import { IMessageParser } from './../../../../../core';
export class PromoArticlesMessageParser implements IMessageParser export class PromoArticlesMessageParser implements IMessageParser
{ {
private _articles: PromoArticleData[]; private _articles: PromoArticleData[];
public flush(): boolean public flush(): boolean
{ {
this._articles = []; this._articles = [];
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
const count = wrapper.readInt(); const count = wrapper.readInt();
for(let i = 0; i < count; i++) for(let i = 0; i < count; i++)
{ {
this._articles.push(new PromoArticleData(wrapper)); this._articles.push(new PromoArticleData(wrapper));
} }
return true; return true;
} }
public get articles(): PromoArticleData[] public get articles(): PromoArticleData[]
{ {
return this._articles; return this._articles;
} }
} }

View File

@ -3,22 +3,22 @@ import { IMessageParser } from './../../../../../../core';
export class CommunityVoteReceivedParser implements IMessageParser export class CommunityVoteReceivedParser implements IMessageParser
{ {
private _acknowledged: boolean; private _acknowledged: boolean;
public flush(): boolean public flush(): boolean
{ {
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._acknowledged = wrapper.readBoolean(); this._acknowledged = wrapper.readBoolean();
return true; return true;
} }
public get acknowledged(): boolean public get acknowledged(): boolean
{ {
return this._acknowledged; return this._acknowledged;
} }
} }

View File

@ -2,7 +2,7 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
export class MOTDNotificationParser implements IMessageParser export class MOTDNotificationParser implements IMessageParser
{ {
private _messages: string[] private _messages: string[];
public flush(): boolean public flush(): boolean
{ {

View File

@ -10,7 +10,7 @@ export class PollContentsParser implements IMessageParser
private _endMessage = ''; private _endMessage = '';
private _numQuestions = 0; private _numQuestions = 0;
private _questionArray:PollQuestion[] = []; private _questionArray:PollQuestion[] = [];
private _npsPoll = false private _npsPoll = false;
flush(): boolean flush(): boolean
{ {

View File

@ -4,28 +4,28 @@ import { IMessageParser } from './../../../../../core';
export class CommunityGoalEarnedPrizesMessageParser implements IMessageParser export class CommunityGoalEarnedPrizesMessageParser implements IMessageParser
{ {
private _prizes: PrizeData[]; private _prizes: PrizeData[];
public flush(): boolean public flush(): boolean
{ {
this._prizes = []; this._prizes = [];
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
const count = wrapper.readInt(); const count = wrapper.readInt();
for(let i = 0; i < count; i++) for(let i = 0; i < count; i++)
{ {
this._prizes.push(new PrizeData(wrapper)); this._prizes.push(new PrizeData(wrapper));
} }
return true; return true;
} }
public get prizes(): PrizeData[] public get prizes(): PrizeData[]
{ {
return this._prizes; return this._prizes;
} }
} }

View File

@ -4,24 +4,24 @@ import { IMessageParser } from './../../../../../core';
export class CommunityGoalHallOfFameMessageParser implements IMessageParser export class CommunityGoalHallOfFameMessageParser implements IMessageParser
{ {
private _data: CommunityGoalHallOfFameData; private _data: CommunityGoalHallOfFameData;
public flush(): boolean public flush(): boolean
{ {
this._data = null; this._data = null;
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._data = new CommunityGoalHallOfFameData(wrapper); this._data = new CommunityGoalHallOfFameData(wrapper);
return true; return true;
} }
public get data(): CommunityGoalHallOfFameData public get data(): CommunityGoalHallOfFameData
{ {
return this._data; return this._data;
} }
} }

View File

@ -4,24 +4,24 @@ import { IMessageParser } from './../../../../../core';
export class CommunityGoalProgressMessageParser implements IMessageParser export class CommunityGoalProgressMessageParser implements IMessageParser
{ {
private _data: CommunityGoalData; private _data: CommunityGoalData;
public flush(): boolean public flush(): boolean
{ {
this._data = null; this._data = null;
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._data = new CommunityGoalData(wrapper); this._data = new CommunityGoalData(wrapper);
return true; return true;
} }
public get data(): CommunityGoalData public get data(): CommunityGoalData
{ {
return this._data; return this._data;
} }
} }

View File

@ -3,40 +3,40 @@ import { IMessageParser } from './../../../../../core';
export class ConcurrentUsersGoalProgressMessageParser implements IMessageParser export class ConcurrentUsersGoalProgressMessageParser implements IMessageParser
{ {
private _state: number; private _state: number;
private _userCount: number; private _userCount: number;
private _userCountGoal: number; private _userCountGoal: number;
public flush(): boolean public flush(): boolean
{ {
this._state = -1; this._state = -1;
this._userCount = -1; this._userCount = -1;
this._userCountGoal = -1; this._userCountGoal = -1;
return true; return true;
} }
public parse(wrapper:IMessageDataWrapper): boolean public parse(wrapper:IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._state = wrapper.readInt(); this._state = wrapper.readInt();
this._userCount = wrapper.readInt(); this._userCount = wrapper.readInt();
this._userCountGoal = wrapper.readInt(); this._userCountGoal = wrapper.readInt();
return true; return true;
} }
public get state(): number public get state(): number
{ {
return this._state; return this._state;
} }
public get userCount(): number public get userCount(): number
{ {
return this._userCount; return this._userCount;
} }
public get userCountGoal(): number public get userCountGoal(): number
{ {
return this._userCountGoal; return this._userCountGoal;
} }
} }

View File

@ -3,24 +3,24 @@ import { IMessageParser } from './../../../../../core';
export class EpicPopupMessageParser implements IMessageParser export class EpicPopupMessageParser implements IMessageParser
{ {
private _imageUri: string; private _imageUri: string;
public flush(): boolean public flush(): boolean
{ {
this._imageUri = ''; this._imageUri = '';
return true; return true;
} }
public parse(wrapper:IMessageDataWrapper): boolean public parse(wrapper:IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._imageUri = wrapper.readString(); this._imageUri = wrapper.readString();
return true; return true;
} }
public get imageUri(): string public get imageUri(): string
{ {
return this._imageUri; return this._imageUri;
} }
} }

View File

@ -3,23 +3,23 @@ import { IMessageParser } from './../../../../../core';
export class QuestCancelledMessageParser implements IMessageParser export class QuestCancelledMessageParser implements IMessageParser
{ {
private _expired: boolean; private _expired: boolean;
public flush(): boolean public flush(): boolean
{ {
return true; return true;
} }
public parse(wrapper:IMessageDataWrapper): boolean public parse(wrapper:IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._expired = wrapper.readBoolean(); this._expired = wrapper.readBoolean();
return true; return true;
} }
public get expired(): boolean public get expired(): boolean
{ {
return this._expired; return this._expired;
} }
} }

View File

@ -4,31 +4,31 @@ import { IMessageParser } from './../../../../../core';
export class QuestCompletedMessageParser implements IMessageParser export class QuestCompletedMessageParser implements IMessageParser
{ {
private _questData: QuestMessageData; private _questData: QuestMessageData;
private _showDialog: boolean; private _showDialog: boolean;
public flush(): boolean public flush(): boolean
{ {
this._questData = null; this._questData = null;
return true; return true;
} }
public parse(wrapper:IMessageDataWrapper): boolean public parse(wrapper:IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._questData = new QuestMessageData(wrapper); this._questData = new QuestMessageData(wrapper);
this._showDialog = wrapper.readBoolean(); this._showDialog = wrapper.readBoolean();
return true; return true;
} }
public get questData():QuestMessageData public get questData():QuestMessageData
{ {
return this._questData; return this._questData;
} }
public get showDialog(): boolean public get showDialog(): boolean
{ {
return this._showDialog; return this._showDialog;
} }
} }

View File

@ -4,42 +4,42 @@ import { IMessageParser } from './../../../../../core';
export class QuestDailyMessageParser implements IMessageParser export class QuestDailyMessageParser implements IMessageParser
{ {
private _quest:QuestMessageData; private _quest:QuestMessageData;
private _easyQuestCount: number; private _easyQuestCount: number;
private _hardQuestCount: number; private _hardQuestCount: number;
public flush(): boolean public flush(): boolean
{ {
this._quest = null; this._quest = null;
return true; return true;
} }
public parse(wrapper:IMessageDataWrapper): boolean public parse(wrapper:IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
const _local_2 = wrapper.readBoolean(); const _local_2 = wrapper.readBoolean();
if(_local_2) if(_local_2)
{ {
this._quest = new QuestMessageData(wrapper); this._quest = new QuestMessageData(wrapper);
this._easyQuestCount = wrapper.readInt(); this._easyQuestCount = wrapper.readInt();
this._hardQuestCount = wrapper.readInt(); this._hardQuestCount = wrapper.readInt();
} }
return true; return true;
} }
public get quest(): QuestMessageData public get quest(): QuestMessageData
{ {
return this._quest; return this._quest;
} }
public get easyQuestCount(): number public get easyQuestCount(): number
{ {
return this._easyQuestCount; return this._easyQuestCount;
} }
public get hardQuestCount(): number public get hardQuestCount(): number
{ {
return this._hardQuestCount; return this._hardQuestCount;
} }
} }

View File

@ -4,24 +4,24 @@ import { IMessageParser } from './../../../../../core';
export class QuestMessageParser implements IMessageParser export class QuestMessageParser implements IMessageParser
{ {
private _quest: QuestMessageData; private _quest: QuestMessageData;
public flush(): boolean public flush(): boolean
{ {
this._quest = null; this._quest = null;
return true; return true;
} }
public parse(wrapper:IMessageDataWrapper): boolean public parse(wrapper:IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._quest = new QuestMessageData(wrapper); this._quest = new QuestMessageData(wrapper);
return true; return true;
} }
public get quest():QuestMessageData public get quest():QuestMessageData
{ {
return this._quest; return this._quest;
} }
} }

View File

@ -3,38 +3,38 @@ import { QuestMessageData } from '../../incoming/quest/QuestMessageData';
export class QuestsMessageParser implements IMessageParser export class QuestsMessageParser implements IMessageParser
{ {
private _quests: QuestMessageData[]; private _quests: QuestMessageData[];
private _openWindow: boolean; private _openWindow: boolean;
public flush(): boolean public flush(): boolean
{ {
this._quests = []; this._quests = [];
return true; return true;
} }
public parse(wrapper:IMessageDataWrapper): boolean public parse(wrapper:IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
const count = wrapper.readInt(); const count = wrapper.readInt();
for(let i = 0; i < count; i++) for(let i = 0; i < count; i++)
{ {
this._quests.push(new QuestMessageData(wrapper)); this._quests.push(new QuestMessageData(wrapper));
} }
this._openWindow = wrapper.readBoolean(); this._openWindow = wrapper.readBoolean();
return true; return true;
} }
public get quests(): QuestMessageData[] public get quests(): QuestMessageData[]
{ {
return this._quests; return this._quests;
} }
public get openWindow(): boolean public get openWindow(): boolean
{ {
return this._openWindow; return this._openWindow;
} }
} }

View File

@ -4,30 +4,30 @@ import { IMessageParser } from './../../../../../core';
export class SeasonalQuestsParser implements IMessageParser export class SeasonalQuestsParser implements IMessageParser
{ {
private _quests: QuestMessageData[]; private _quests: QuestMessageData[];
public flush(): boolean public flush(): boolean
{ {
this._quests = []; this._quests = [];
return true; return true;
} }
public parse(wrapper:IMessageDataWrapper): boolean public parse(wrapper:IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
const count = wrapper.readInt(); const count = wrapper.readInt();
for(let i = 0; i < count; i++) for(let i = 0; i < count; i++)
{ {
this._quests.push(new QuestMessageData(wrapper)); this._quests.push(new QuestMessageData(wrapper));
} }
return true; return true;
} }
public get quests(): QuestMessageData[] public get quests(): QuestMessageData[]
{ {
return this._quests; return this._quests;
} }
} }

View File

@ -5,7 +5,7 @@ export class TalentTrackLevel
{ {
private _level: number; private _level: number;
private _state: number; private _state: number;
private _tasks: TalentTrackTask[] private _tasks: TalentTrackTask[];
private _rewardPerks: string[]; private _rewardPerks: string[];
private _rewardProducts: TalentTrackRewardProduct[]; private _rewardProducts: TalentTrackRewardProduct[];

View File

@ -2,24 +2,24 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
export class InClientLinkParser implements IMessageParser export class InClientLinkParser implements IMessageParser
{ {
private _link: string; private _link: string;
public flush(): boolean public flush(): boolean
{ {
this._link = null; this._link = null;
return true; return true;
} }
public parse(wrapper: IMessageDataWrapper): boolean public parse(wrapper: IMessageDataWrapper): boolean
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._link = wrapper.readString(); this._link = wrapper.readString();
return true; return true;
} }
public get link(): string public get link(): string
{ {
return this._link; return this._link;
} }
} }

View File

@ -34,7 +34,7 @@ export class RoomEngineTriggerWidgetEvent extends RoomEngineObjectEvent
public static REQUEST_INTERNAL_LINK: string = 'RETWE_REQUEST_INTERNAL_LINK'; public static REQUEST_INTERNAL_LINK: string = 'RETWE_REQUEST_INTERNAL_LINK';
public static REQUEST_ROOM_LINK: string = 'RETWE_REQUEST_ROOM_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) constructor(type: string, roomId: number, objectId: number, category: number, widget: string = null)
{ {

View File

@ -2,7 +2,7 @@ export class FurnitureStackingHeightMap
{ {
private _width: number; private _width: number;
private _height: number; private _height: number;
private _heights: number[] private _heights: number[];
private _isNotStackable: boolean[]; private _isNotStackable: boolean[];
private _isRoomTile: boolean[]; private _isRoomTile: boolean[];