mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
Add unseen tracker packets
This commit is contained in:
parent
56e66cb96b
commit
0aaac608b4
@ -1,5 +1,5 @@
|
||||
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 { CatalogClubEvent } from './messages/incoming/catalog/CatalogClubEvent';
|
||||
import { CatalogClubGiftsEvent } from './messages/incoming/catalog/CatalogClubGiftsEvent';
|
||||
@ -835,17 +835,25 @@ export class NitroMessages implements IMessageConfiguration
|
||||
|
||||
// INVENTORY
|
||||
|
||||
// MARKETPLACE
|
||||
this._composers.set(OutgoingHeader.REQUEST_SELL_ITEM, RequestSellItemComposer);
|
||||
this._composers.set(OutgoingHeader.REQUEST_MARKETPLACE_ITEM_STATS, MarketplaceRequesstItemStatsComposer);
|
||||
this._composers.set(OutgoingHeader.MARKETPLACE_REDEEM_CREDITS, MarketplaceRedeemCreditsComposer);
|
||||
//// BADGES
|
||||
this._composers.set(OutgoingHeader.USER_BADGES, RequestBadgesComposer);
|
||||
this._composers.set(OutgoingHeader.USER_BADGES_CURRENT_UPDATE, SetActivatedBadgesComposer);
|
||||
|
||||
// FURNI
|
||||
//// BOTS
|
||||
this._composers.set(OutgoingHeader.USER_BOTS, GetBotInventoryComposer);
|
||||
|
||||
//// FURNI
|
||||
this._composers.set(OutgoingHeader.USER_FURNITURE, FurnitureListComposer);
|
||||
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_CANCEL, TradingCancelComposer);
|
||||
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_UNACCEPT, TradingUnacceptComposer);
|
||||
|
||||
//// UNSEEN
|
||||
this._composers.set(OutgoingHeader.UNSEEN_RESET_CATEGORY, UnseenResetCategoryComposer);
|
||||
this._composers.set(OutgoingHeader.UNSEEN_RESET_ITEMS, UnseenResetItemsComposer);
|
||||
|
||||
// ACHIVEMENTS
|
||||
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.ITEM_EXCHANGE_REDEEM, FurnitureExchangeComposer);
|
||||
this._composers.set(OutgoingHeader.ITEM_CLOTHING_REDEEM, RedeemItemClothingComposer);
|
||||
this._composers.set(OutgoingHeader.ITEM_SAVE_BACKGROUND, RoomAdsUpdateComposer);
|
||||
|
||||
// MAPPING
|
||||
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_REQUEST_OFFERS, MarketplaceRequestOffersComposer);
|
||||
this._composers.set(OutgoingHeader.MARKETPLACE_BUY_OFFER, MarketplaceBuyOfferComposer);
|
||||
this._composers.set(OutgoingHeader.MARKETPLACE_REDEEM_CREDITS, MarketplaceRedeemCreditsComposer);
|
||||
|
||||
// BOTS
|
||||
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
|
||||
this._composers.set(OutgoingHeader.USER_PETS, RequestPetsComposer);
|
||||
|
||||
|
@ -244,4 +244,6 @@ export class OutgoingHeader
|
||||
public static REMOVE_PET_SADDLE = 186;
|
||||
public static TOGGLE_PET_RIDING = 1472;
|
||||
public static TOGGLE_PET_BREEDING = 3379;
|
||||
public static UNSEEN_RESET_CATEGORY = 3493;
|
||||
public static UNSEEN_RESET_ITEMS = 2343;
|
||||
}
|
||||
|
@ -4,3 +4,4 @@ export * from './furni';
|
||||
export * from './marketplace';
|
||||
export * from './pets';
|
||||
export * from './trading';
|
||||
export * from './unseen';
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
export * from './UnseenResetCategoryComposer';
|
||||
export * from './UnseenResetItemsComposer';
|
Loading…
Reference in New Issue
Block a user