Add unseen tracker packets

This commit is contained in:
Bill 2021-07-16 02:42:04 -04:00
parent 56e66cb96b
commit 0aaac608b4
6 changed files with 69 additions and 12 deletions

View File

@ -1,5 +1,5 @@
import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration'; import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration';
import { ApproveNameMessageComposer, CatalogApproveNameResultEvent, FurnitureGuildInfoComposer, MysteryBoxKeysEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, RemovePetSaddleComposer, RoomUnitGiveHandItemPetComposer, RoomWidgetCameraPublishedEvent, RoomWidgetCameraPurchaseComposer, SellablePetPalettesEvent, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer } from './messages'; import { ApproveNameMessageComposer, CatalogApproveNameResultEvent, FurnitureGuildInfoComposer, MysteryBoxKeysEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, RemovePetSaddleComposer, RoomUnitGiveHandItemPetComposer, RoomWidgetCameraPublishedEvent, RoomWidgetCameraPurchaseComposer, SellablePetPalettesEvent, TogglePetBreedingComposer, TogglePetRidingComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer } from './messages';
import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent'; import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent';
import { CatalogClubEvent } from './messages/incoming/catalog/CatalogClubEvent'; import { CatalogClubEvent } from './messages/incoming/catalog/CatalogClubEvent';
import { CatalogClubGiftsEvent } from './messages/incoming/catalog/CatalogClubGiftsEvent'; import { CatalogClubGiftsEvent } from './messages/incoming/catalog/CatalogClubGiftsEvent';
@ -835,17 +835,25 @@ export class NitroMessages implements IMessageConfiguration
// INVENTORY // INVENTORY
// MARKETPLACE //// BADGES
this._composers.set(OutgoingHeader.REQUEST_SELL_ITEM, RequestSellItemComposer); this._composers.set(OutgoingHeader.USER_BADGES, RequestBadgesComposer);
this._composers.set(OutgoingHeader.REQUEST_MARKETPLACE_ITEM_STATS, MarketplaceRequesstItemStatsComposer); this._composers.set(OutgoingHeader.USER_BADGES_CURRENT_UPDATE, SetActivatedBadgesComposer);
this._composers.set(OutgoingHeader.MARKETPLACE_REDEEM_CREDITS, MarketplaceRedeemCreditsComposer);
// FURNI //// BOTS
this._composers.set(OutgoingHeader.USER_BOTS, GetBotInventoryComposer);
//// FURNI
this._composers.set(OutgoingHeader.USER_FURNITURE, FurnitureListComposer); this._composers.set(OutgoingHeader.USER_FURNITURE, FurnitureListComposer);
this._composers.set(OutgoingHeader.USER_FURNITURE2, FurnitureList2Composer); this._composers.set(OutgoingHeader.USER_FURNITURE2, FurnitureList2Composer);
this._composers.set(OutgoingHeader.ITEM_SAVE_BACKGROUND, RoomAdsUpdateComposer);
// TRADING //// MARKETPLACE
this._composers.set(OutgoingHeader.REQUEST_SELL_ITEM, RequestSellItemComposer);
this._composers.set(OutgoingHeader.REQUEST_MARKETPLACE_ITEM_STATS, MarketplaceRequesstItemStatsComposer);
//// PETS
this._composers.set(OutgoingHeader.USER_PETS, RequestPetsComposer);
//// TRADING
this._composers.set(OutgoingHeader.TRADE_ACCEPT, TradingAcceptComposer); this._composers.set(OutgoingHeader.TRADE_ACCEPT, TradingAcceptComposer);
this._composers.set(OutgoingHeader.TRADE_CANCEL, TradingCancelComposer); this._composers.set(OutgoingHeader.TRADE_CANCEL, TradingCancelComposer);
this._composers.set(OutgoingHeader.TRADE_CLOSE, TradingCloseComposer); this._composers.set(OutgoingHeader.TRADE_CLOSE, TradingCloseComposer);
@ -856,6 +864,10 @@ export class NitroMessages implements IMessageConfiguration
this._composers.set(OutgoingHeader.TRADE, TradingOpenComposer); this._composers.set(OutgoingHeader.TRADE, TradingOpenComposer);
this._composers.set(OutgoingHeader.TRADE_UNACCEPT, TradingUnacceptComposer); this._composers.set(OutgoingHeader.TRADE_UNACCEPT, TradingUnacceptComposer);
//// UNSEEN
this._composers.set(OutgoingHeader.UNSEEN_RESET_CATEGORY, UnseenResetCategoryComposer);
this._composers.set(OutgoingHeader.UNSEEN_RESET_ITEMS, UnseenResetItemsComposer);
// ACHIVEMENTS // ACHIVEMENTS
this._composers.set(OutgoingHeader.ACHIEVEMENT_LIST, RequestAchievementsMessageComposer); this._composers.set(OutgoingHeader.ACHIEVEMENT_LIST, RequestAchievementsMessageComposer);
@ -943,6 +955,7 @@ export class NitroMessages implements IMessageConfiguration
this._composers.set(OutgoingHeader.ONE_WAY_DOOR_CLICK, FurnitureOneWayDoorComposer); this._composers.set(OutgoingHeader.ONE_WAY_DOOR_CLICK, FurnitureOneWayDoorComposer);
this._composers.set(OutgoingHeader.ITEM_EXCHANGE_REDEEM, FurnitureExchangeComposer); this._composers.set(OutgoingHeader.ITEM_EXCHANGE_REDEEM, FurnitureExchangeComposer);
this._composers.set(OutgoingHeader.ITEM_CLOTHING_REDEEM, RedeemItemClothingComposer); this._composers.set(OutgoingHeader.ITEM_CLOTHING_REDEEM, RedeemItemClothingComposer);
this._composers.set(OutgoingHeader.ITEM_SAVE_BACKGROUND, RoomAdsUpdateComposer);
// MAPPING // MAPPING
this._composers.set(OutgoingHeader.ROOM_MODEL, RoomModelComposer); this._composers.set(OutgoingHeader.ROOM_MODEL, RoomModelComposer);
@ -1009,14 +1022,11 @@ export class NitroMessages implements IMessageConfiguration
this._composers.set(OutgoingHeader.MARKETPLACE_TAKE_BACK_ITEM, MarketplaceTakeItemBackComposer); this._composers.set(OutgoingHeader.MARKETPLACE_TAKE_BACK_ITEM, MarketplaceTakeItemBackComposer);
this._composers.set(OutgoingHeader.MARKETPLACE_REQUEST_OFFERS, MarketplaceRequestOffersComposer); this._composers.set(OutgoingHeader.MARKETPLACE_REQUEST_OFFERS, MarketplaceRequestOffersComposer);
this._composers.set(OutgoingHeader.MARKETPLACE_BUY_OFFER, MarketplaceBuyOfferComposer); this._composers.set(OutgoingHeader.MARKETPLACE_BUY_OFFER, MarketplaceBuyOfferComposer);
this._composers.set(OutgoingHeader.MARKETPLACE_REDEEM_CREDITS, MarketplaceRedeemCreditsComposer);
// BOTS // BOTS
this._composers.set(OutgoingHeader.USER_BOTS, GetBotInventoryComposer); this._composers.set(OutgoingHeader.USER_BOTS, GetBotInventoryComposer);
// BADGES
this._composers.set(OutgoingHeader.USER_BADGES, RequestBadgesComposer);
this._composers.set(OutgoingHeader.USER_BADGES_CURRENT_UPDATE, SetActivatedBadgesComposer);
// PETS // PETS
this._composers.set(OutgoingHeader.USER_PETS, RequestPetsComposer); this._composers.set(OutgoingHeader.USER_PETS, RequestPetsComposer);

View File

@ -244,4 +244,6 @@ export class OutgoingHeader
public static REMOVE_PET_SADDLE = 186; public static REMOVE_PET_SADDLE = 186;
public static TOGGLE_PET_RIDING = 1472; public static TOGGLE_PET_RIDING = 1472;
public static TOGGLE_PET_BREEDING = 3379; public static TOGGLE_PET_BREEDING = 3379;
public static UNSEEN_RESET_CATEGORY = 3493;
public static UNSEEN_RESET_ITEMS = 2343;
} }

View File

@ -4,3 +4,4 @@ export * from './furni';
export * from './marketplace'; export * from './marketplace';
export * from './pets'; export * from './pets';
export * from './trading'; export * from './trading';
export * from './unseen';

View File

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

View File

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

View File

@ -0,0 +1,2 @@
export * from './UnseenResetCategoryComposer';
export * from './UnseenResetItemsComposer';