mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 11:12:35 +01:00
Rename packets
This commit is contained in:
parent
eb1f029441
commit
4eae19ae05
@ -1,5 +1,5 @@
|
||||
import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration';
|
||||
import { CatalogPetBreedsEvent } from './messages';
|
||||
import { SellablePetPalettesEvent } from './messages';
|
||||
import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent';
|
||||
import { ChangeNameUpdateEvent } from './messages/incoming/avatar/ChangeNameUpdateEvent';
|
||||
import { CatalogClubEvent } from './messages/incoming/catalog/CatalogClubEvent';
|
||||
@ -443,7 +443,7 @@ export class NitroMessages implements IMessageConfiguration
|
||||
this._events.set(IncomingHeader.GIFT_CONFIG, CatalogGiftConfigurationEvent);
|
||||
this._events.set(IncomingHeader.REDEEM_VOUCHER_ERROR, CatalogRedeemVoucherErrorEvent);
|
||||
this._events.set(IncomingHeader.REDEEM_VOUCHER_OK, CatalogRedeemVoucherOkEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_RECEIVE_PET_BREEDS, CatalogPetBreedsEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_RECEIVE_PET_BREEDS, SellablePetPalettesEvent);
|
||||
|
||||
// CLIENT
|
||||
this._events.set(IncomingHeader.CLIENT_PING, ClientPingEvent);
|
||||
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogPetBreedsParser } from '../../parser';
|
||||
|
||||
export class CatalogPetBreedsEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPetBreedsParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPetBreedsParser
|
||||
{
|
||||
return this.parser as CatalogPetBreedsParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { SellablePetPalettesParser } from '../../parser';
|
||||
|
||||
export class SellablePetPalettesEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, SellablePetPalettesParser);
|
||||
}
|
||||
|
||||
public getParser(): SellablePetPalettesParser
|
||||
{
|
||||
return this.parser as SellablePetPalettesParser;
|
||||
}
|
||||
}
|
@ -6,7 +6,6 @@ export * from './CatalogGroupsEvent';
|
||||
export * from './CatalogModeEvent';
|
||||
export * from './CatalogPageEvent';
|
||||
export * from './CatalogPagesEvent';
|
||||
export * from './CatalogPetBreedsEvent';
|
||||
export * from './CatalogPurchaseEvent';
|
||||
export * from './CatalogPurchaseFailedEvent';
|
||||
export * from './CatalogPurchaseUnavailableEvent';
|
||||
@ -18,3 +17,4 @@ export * from './CatalogUpdatedEvent';
|
||||
export * from './marketplace';
|
||||
export * from './MarketplaceConfigEvent';
|
||||
export * from './MarketplaceItemStatsEvent';
|
||||
export * from './SellablePetPalettesEvent';
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||
import { CatalogPetPaletteBreed } from './utils';
|
||||
import { SellablePetPaletteData } from './utils';
|
||||
|
||||
export class CatalogPetBreedsParser implements IMessageParser
|
||||
export class SellablePetPalettesParser implements IMessageParser
|
||||
{
|
||||
private _productCode: string;
|
||||
private _palettes: CatalogPetPaletteBreed[];
|
||||
private _palettes: SellablePetPaletteData[];
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
@ -25,7 +25,7 @@ export class CatalogPetBreedsParser implements IMessageParser
|
||||
|
||||
while(totalPalettes > 0)
|
||||
{
|
||||
this._palettes.push(new CatalogPetPaletteBreed(wrapper));
|
||||
this._palettes.push(new SellablePetPaletteData(wrapper));
|
||||
|
||||
totalPalettes--;
|
||||
}
|
||||
@ -38,7 +38,7 @@ export class CatalogPetBreedsParser implements IMessageParser
|
||||
return this._productCode;
|
||||
}
|
||||
|
||||
public get palettes(): CatalogPetPaletteBreed[]
|
||||
public get palettes(): SellablePetPaletteData[]
|
||||
{
|
||||
return this._palettes;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
|
||||
export class CatalogPetPaletteBreed
|
||||
export class SellablePetPaletteData
|
||||
{
|
||||
private _type: number;
|
||||
private _breedId: number;
|
@ -4,7 +4,6 @@ export * from './CatalogGroupData';
|
||||
export * from './CatalogLocalizationData';
|
||||
export * from './CatalogPageData';
|
||||
export * from './CatalogPageOfferData';
|
||||
export * from './CatalogPetPaletteBreed';
|
||||
export * from './CatalogProductOfferData';
|
||||
export * from './CatalogPurchaseData';
|
||||
export * from './CatalogSearchData';
|
||||
@ -14,4 +13,5 @@ export * from './ICatalogPageParser';
|
||||
export * from './MarketplaceOfferData';
|
||||
export * from './MarketplaceOfferItem';
|
||||
export * from './MarketplaceOwnItem';
|
||||
export * from './SellablePetPaletteData';
|
||||
export * from './_Str_5178';
|
||||
|
Loading…
x
Reference in New Issue
Block a user