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
{
private _connections: IConnection[]
private _connections: IConnection[];
constructor()
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class CraftComposer implements IMessageComposer<ConstructorParameters<typeof CraftComposer>>
{
private _data: ConstructorParameters<typeof CraftComposer>;
private _data: ConstructorParameters<typeof CraftComposer>;
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;
}
}

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class CraftSecretComposer implements IMessageComposer<number[]>
{
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;
}
}

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCraftableProductsComposer implements IMessageComposer<ConstructorParameters<typeof GetCraftableProductsComposer>>
{
private _data: ConstructorParameters<typeof GetCraftableProductsComposer>;
private _data: ConstructorParameters<typeof GetCraftableProductsComposer>;
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;
}
}

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCraftingRecipeComposer implements IMessageComposer<ConstructorParameters<typeof GetCraftingRecipeComposer>>
{
private _data: ConstructorParameters<typeof GetCraftingRecipeComposer>;
private _data: ConstructorParameters<typeof GetCraftingRecipeComposer>;
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;
}
}

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCraftingRecipesAvailableComposer implements IMessageComposer<number[]>
{
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;
}
}

View File

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

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../../core/communication/messages/
export class CommunityGoalVoteMessageComposer implements IMessageComposer<ConstructorParameters<typeof CommunityGoalVoteMessageComposer>>
{
private _data: ConstructorParameters<typeof CommunityGoalVoteMessageComposer>;
private _data: ConstructorParameters<typeof CommunityGoalVoteMessageComposer>;
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;
}
}

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class ConvertGlobalRoomIdMessageComposer implements IMessageComposer<ConstructorParameters<typeof ConvertGlobalRoomIdMessageComposer>>
{
private _data: ConstructorParameters<typeof ConvertGlobalRoomIdMessageComposer>;
private _data: ConstructorParameters<typeof ConvertGlobalRoomIdMessageComposer>;
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;
}
}

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class AcceptQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof AcceptQuestMessageComposer>>
{
private _data: ConstructorParameters<typeof AcceptQuestMessageComposer>;
private _data: ConstructorParameters<typeof AcceptQuestMessageComposer>;
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;
}
}

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class ActivateQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof ActivateQuestMessageComposer>>
{
private _data: ConstructorParameters<typeof ActivateQuestMessageComposer>;
private _data: ConstructorParameters<typeof ActivateQuestMessageComposer>;
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;
}
}

View File

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

View File

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

View File

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

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetCommunityGoalHallOfFameMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCommunityGoalHallOfFameMessageComposer>>
{
private _data: ConstructorParameters<typeof GetCommunityGoalHallOfFameMessageComposer>;
private _data: ConstructorParameters<typeof GetCommunityGoalHallOfFameMessageComposer>;
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;
}
}

View File

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

View File

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

View File

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

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class GetDailyQuestMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetDailyQuestMessageComposer>>
{
private _data: ConstructorParameters<typeof GetDailyQuestMessageComposer>;
private _data: ConstructorParameters<typeof GetDailyQuestMessageComposer>;
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;
}
}

View File

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

View File

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

View File

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

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class RedeemCommunityGoalPrizeMessageComposer implements IMessageComposer<ConstructorParameters<typeof RedeemCommunityGoalPrizeMessageComposer>>
{
private _data: ConstructorParameters<typeof RedeemCommunityGoalPrizeMessageComposer>;
private _data: ConstructorParameters<typeof RedeemCommunityGoalPrizeMessageComposer>;
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;
}
}

View File

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

View File

@ -2,20 +2,20 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMe
export class StartCampaignMessageComposer implements IMessageComposer<ConstructorParameters<typeof StartCampaignMessageComposer>>
{
private _data: ConstructorParameters<typeof StartCampaignMessageComposer>;
private _data: ConstructorParameters<typeof StartCampaignMessageComposer>;
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;
}
}

View File

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

View File

@ -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);
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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[];

View File

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

View File

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

View File

@ -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[];