added outgoing quest messages

This commit is contained in:
Dank074 2021-07-21 19:22:23 -05:00
parent c9365e0cf8
commit d2dbdc2f0e
20 changed files with 402 additions and 0 deletions

View File

@ -325,6 +325,22 @@ import { NavigatorSettingsSaveComposer } from './messages/outgoing/navigator/Nav
import { OutgoingHeader } from './messages/outgoing/OutgoingHeader'; import { OutgoingHeader } from './messages/outgoing/OutgoingHeader';
import { PetRespectComposer } from './messages/outgoing/pet/PetRespectComposer'; import { PetRespectComposer } from './messages/outgoing/pet/PetRespectComposer';
import { RequestPetInfoComposer } from './messages/outgoing/pet/RequestPetInfoComposer'; import { RequestPetInfoComposer } from './messages/outgoing/pet/RequestPetInfoComposer';
import { AcceptQuestMessageComposer } from './messages/outgoing/quest/AcceptQuestMessageComposer';
import { ActivateQuestMessageComposer } from './messages/outgoing/quest/ActivateQuestMessageComposer';
import { CancelQuestMessageComposer } from './messages/outgoing/quest/CancelQuestMessageComposer';
import { FriendRequestQuestCompleteMessageComposer } from './messages/outgoing/quest/FriendRequestQuestCompleteMessageComposer';
import { GetCommunityGoalEarnedPrizesMessageComposer } from './messages/outgoing/quest/GetCommunityGoalEarnedPrizesMessageComposer';
import { GetCommunityGoalHallOfFameMessageComposer } from './messages/outgoing/quest/GetCommunityGoalHallOfFameMessageComposer';
import { GetCommunityGoalProgressMessageComposer } from './messages/outgoing/quest/GetCommunityGoalProgressMessageComposer';
import { GetConcurrentUsersGoalProgressMessageComposer } from './messages/outgoing/quest/GetConcurrentUsersGoalProgressMessageComposer';
import { GetConcurrentUsersRewardMessageComposer } from './messages/outgoing/quest/GetConcurrentUsersRewardMessageComposer';
import { GetDailyQuestMessageComposer } from './messages/outgoing/quest/GetDailyQuestMessageComposer';
import { GetQuestsMessageComposer } from './messages/outgoing/quest/GetQuestsMessageComposer';
import { GetSeasonalQuestsOnlyMessageComposer } from './messages/outgoing/quest/GetSeasonalQuestsOnlyMessageComposer';
import { OpenQuestTrackerMessageComposer } from './messages/outgoing/quest/OpenQuestTrackerMessageComposer';
import { RedeemCommunityGoalPrizeMessageComposer } from './messages/outgoing/quest/RedeemCommunityGoalPrizeMessageComposer';
import { RejectQuestMessageComposer } from './messages/outgoing/quest/RejectQuestMessageComposer';
import { StartCampaignMessageComposer } from './messages/outgoing/quest/StartCampaignMessageComposer';
import { RoomDoorbellAccessComposer } from './messages/outgoing/room/access/RoomDoorbellAccessComposer'; import { RoomDoorbellAccessComposer } from './messages/outgoing/room/access/RoomDoorbellAccessComposer';
import { RoomEnterComposer } from './messages/outgoing/room/access/RoomEnterComposer'; import { RoomEnterComposer } from './messages/outgoing/room/access/RoomEnterComposer';
import { RoomAmbassadorAlertComposer } from './messages/outgoing/room/action/RoomAmbassadorAlertComposer'; import { RoomAmbassadorAlertComposer } from './messages/outgoing/room/action/RoomAmbassadorAlertComposer';
@ -1096,6 +1112,23 @@ export class NitroMessages implements IMessageConfiguration
// LANDING VIEW // LANDING VIEW
this._composers.set(OutgoingHeader.COMMUNITY_GOAL_VOTE_COMPOSER, CommunityGoalVoteMessageComposer); this._composers.set(OutgoingHeader.COMMUNITY_GOAL_VOTE_COMPOSER, CommunityGoalVoteMessageComposer);
this._composers.set(OutgoingHeader.GET_PROMO_ARTICLES, GetPromoArticlesComposer); this._composers.set(OutgoingHeader.GET_PROMO_ARTICLES, GetPromoArticlesComposer);
this._composers.set(OutgoingHeader.ACCEPT_QUEST, AcceptQuestMessageComposer);
this._composers.set(OutgoingHeader.ACTIVATE_QUEST, ActivateQuestMessageComposer);
this._composers.set(OutgoingHeader.CANCEL_QUEST, CancelQuestMessageComposer);
this._composers.set(OutgoingHeader.FRIEND_REQUEST_QUEST_COMPLETE, FriendRequestQuestCompleteMessageComposer);
this._composers.set(OutgoingHeader.GET_COMMUNITY_GOAL_EARNED_PRIZES, GetCommunityGoalEarnedPrizesMessageComposer);
this._composers.set(OutgoingHeader.GET_COMMUNITY_GOAL_HALL_OF_FAME, GetCommunityGoalHallOfFameMessageComposer);
this._composers.set(OutgoingHeader.GET_COMMUNITY_GOAL_PROGRESS, GetCommunityGoalProgressMessageComposer);
this._composers.set(OutgoingHeader.GET_CONCURRENT_USERS_GOAL_PROGRESS, GetConcurrentUsersGoalProgressMessageComposer);
this._composers.set(OutgoingHeader.GET_CONCURRENT_USERS_REWARD, GetConcurrentUsersRewardMessageComposer);
this._composers.set(OutgoingHeader.GET_DAILY_QUEST, GetDailyQuestMessageComposer);
this._composers.set(OutgoingHeader.GET_QUESTS, GetQuestsMessageComposer);
this._composers.set(OutgoingHeader.GET_SEASONAL_QUESTS_ONLY, GetSeasonalQuestsOnlyMessageComposer);
this._composers.set(OutgoingHeader.OPEN_QUEST_TRACKER, OpenQuestTrackerMessageComposer);
this._composers.set(OutgoingHeader.REDEEM_COMMUNITY_GOAL_PRIZE, RedeemCommunityGoalPrizeMessageComposer);
this._composers.set(OutgoingHeader.REJECT_QUEST, RejectQuestMessageComposer);
this._composers.set(OutgoingHeader.START_CAMPAIGN, StartCampaignMessageComposer);
} }
public get events(): Map<number, Function> public get events(): Map<number, Function>

View File

@ -248,4 +248,20 @@ export class OutgoingHeader
public static UNSEEN_RESET_ITEMS = 2343; public static UNSEEN_RESET_ITEMS = 2343;
public static COMMUNITY_GOAL_VOTE_COMPOSER = 3536; public static COMMUNITY_GOAL_VOTE_COMPOSER = 3536;
public static GET_PROMO_ARTICLES = 1827; public static GET_PROMO_ARTICLES = 1827;
public static ACCEPT_QUEST = 3604;
public static ACTIVATE_QUEST = 793;
public static CANCEL_QUEST = 3133;
public static FRIEND_REQUEST_QUEST_COMPLETE = 1148;
public static GET_COMMUNITY_GOAL_EARNED_PRIZES = 2688;
public static GET_COMMUNITY_GOAL_HALL_OF_FAME = 2167;
public static GET_COMMUNITY_GOAL_PROGRESS = 1145;
public static GET_CONCURRENT_USERS_GOAL_PROGRESS = 1343;
public static GET_CONCURRENT_USERS_REWARD = 3872;
public static GET_DAILY_QUEST = 2486;
public static GET_QUESTS = 3333;
public static GET_SEASONAL_QUESTS_ONLY = 1190;
public static OPEN_QUEST_TRACKER = 2750;
public static REDEEM_COMMUNITY_GOAL_PRIZE = 90;
public static REJECT_QUEST = 2397;
public static START_CAMPAIGN = 1697;
} }

View File

@ -11,6 +11,7 @@ export * from './modtool';
export * from './navigator'; export * from './navigator';
export * from './OutgoingHeader'; export * from './OutgoingHeader';
export * from './pet'; export * from './pet';
export * from './quest';
export * from './room'; export * from './room';
export * from './roomevents'; export * from './roomevents';
export * from './user'; export * from './user';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,16 @@
export * from './AcceptQuestMessageComposer';
export * from './ActivateQuestMessageComposer';
export * from './CancelQuestMessageComposer';
export * from './FriendRequestQuestCompleteMessageComposer';
export * from './GetCommunityGoalEarnedPrizesMessageComposer';
export * from './GetCommunityGoalHallOfFameMessageComposer';
export * from './GetCommunityGoalProgressMessageComposer';
export * from './GetConcurrentUsersGoalProgressMessageComposer';
export * from './GetConcurrentUsersRewardMessageComposer';
export * from './GetDailyQuestMessageComposer';
export * from './GetQuestsMessageComposer';
export * from './GetSeasonalQuestsOnlyMessageComposer';
export * from './OpenQuestTrackerMessageComposer';
export * from './RedeemCommunityGoalPrizeMessageComposer';
export * from './RejectQuestMessageComposer';
export * from './StartCampaignMessageComposer';