Quests | Change name variables

This commit is contained in:
object 2023-11-26 15:41:14 +01:00
parent 961540b045
commit 57b60e0449
7 changed files with 25 additions and 25 deletions

View File

@ -4,9 +4,9 @@ export class AcceptQuestMessageComposer implements IMessageComposer<ConstructorP
{ {
private _data: ConstructorParameters<typeof AcceptQuestMessageComposer>; private _data: ConstructorParameters<typeof AcceptQuestMessageComposer>;
constructor(k: number) constructor(questId: number)
{ {
this._data = [k]; this._data = [questId];
} }
public getMessageArray() public getMessageArray()

View File

@ -4,9 +4,9 @@ export class ActivateQuestMessageComposer implements IMessageComposer<Constructo
{ {
private _data: ConstructorParameters<typeof ActivateQuestMessageComposer>; private _data: ConstructorParameters<typeof ActivateQuestMessageComposer>;
constructor(k: number) constructor(questId: number)
{ {
this._data = [k]; this._data = [questId];
} }
public getMessageArray() public getMessageArray()

View File

@ -4,9 +4,9 @@ export class GetCommunityGoalHallOfFameMessageComposer implements IMessageCompos
{ {
private _data: ConstructorParameters<typeof GetCommunityGoalHallOfFameMessageComposer>; private _data: ConstructorParameters<typeof GetCommunityGoalHallOfFameMessageComposer>;
constructor(k: string) constructor(code: string)
{ {
this._data = [k]; this._data = [code];
} }
public getMessageArray() public getMessageArray()

View File

@ -4,9 +4,9 @@ export class GetDailyQuestMessageComposer implements IMessageComposer<Constructo
{ {
private _data: ConstructorParameters<typeof GetDailyQuestMessageComposer>; private _data: ConstructorParameters<typeof GetDailyQuestMessageComposer>;
constructor(k: boolean, _arg_2: number) constructor(canRefresh: boolean, index: number)
{ {
this._data = [k, _arg_2]; this._data = [canRefresh, index];
} }
public getMessageArray() public getMessageArray()

View File

@ -4,9 +4,9 @@ export class StartCampaignMessageComposer implements IMessageComposer<Constructo
{ {
private _data: ConstructorParameters<typeof StartCampaignMessageComposer>; private _data: ConstructorParameters<typeof StartCampaignMessageComposer>;
constructor(k: string) constructor(campaignName: string)
{ {
this._data = [k]; this._data = [campaignName];
} }
public getMessageArray() public getMessageArray()

View File

@ -9,14 +9,14 @@ export class PrizeData
private _badge: boolean; private _badge: boolean;
private _localizedName: string; private _localizedName: string;
constructor(k: IMessageDataWrapper) constructor(wrapper: IMessageDataWrapper)
{ {
this._communityGoalId = k.readInt(); this._communityGoalId = wrapper.readInt();
this._communityGoalCode = k.readString(); this._communityGoalCode = wrapper.readString();
this._userRank = k.readInt(); this._userRank = wrapper.readInt();
this._rewardCode = k.readString(); this._rewardCode = wrapper.readString();
this._badge = k.readBoolean(); this._badge = wrapper.readBoolean();
this._localizedName = k.readString(); this._localizedName = wrapper.readString();
} }
public get communityGoalId(): number public get communityGoalId(): number

View File

@ -42,9 +42,9 @@ export class QuestMessageData
this._easy = wrapper.readBoolean(); this._easy = wrapper.readBoolean();
} }
public static getCampaignLocalizationKeyForCode(k: string): string public static getCampaignLocalizationKeyForCode(code: string): string
{ {
return 'quests.' + k; return 'quests.' + code;
} }
public get campaignCode(): string public get campaignCode(): string
@ -72,9 +72,9 @@ export class QuestMessageData
return this._activityPointType; return this._activityPointType;
} }
public set accepted(k: boolean) public set accepted(isAccepted: boolean)
{ {
this._accepted = k; this._accepted = isAccepted;
} }
public get accepted(): boolean public get accepted(): boolean
@ -82,9 +82,9 @@ export class QuestMessageData
return this._accepted; return this._accepted;
} }
public set id(k: number) public set id(id: number)
{ {
this._id = k; this._id = id;
} }
public get id(): number public get id(): number
@ -122,9 +122,9 @@ export class QuestMessageData
return this._completedSteps == this._totalSteps; return this._completedSteps == this._totalSteps;
} }
public set waitPeriodSeconds(k: number) public set waitPeriodSeconds(periodSeconds: number)
{ {
this._waitPeriodSeconds = k; this._waitPeriodSeconds = periodSeconds;
} }
public get waitPeriodSeconds(): number public get waitPeriodSeconds(): number