mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
add some missing packets
This commit is contained in:
parent
19f06527ae
commit
2d4f780fcc
File diff suppressed because one or more lines are too long
@ -160,6 +160,9 @@ export class IncomingHeader
|
|||||||
public static INFO_FEED_ENABLE = 3284;
|
public static INFO_FEED_ENABLE = 3284;
|
||||||
public static SECURITY_MACHINE = 1488;
|
public static SECURITY_MACHINE = 1488;
|
||||||
public static MYSTERY_BOX_KEYS = 2833;
|
public static MYSTERY_BOX_KEYS = 2833;
|
||||||
|
public static GOTMYSTERYBOXPRIZEMESSAGE = 3712;
|
||||||
|
public static CANCELMYSTERYBOXWAITMESSAGE = 596;
|
||||||
|
public static SHOWMYSTERYBOXWAITMESSAGE = 3201;
|
||||||
public static TRADE_ACCEPTED = 2568;
|
public static TRADE_ACCEPTED = 2568;
|
||||||
public static TRADE_CLOSED = 1373;
|
public static TRADE_CLOSED = 1373;
|
||||||
public static TRADE_COMPLETED = 1001;
|
public static TRADE_COMPLETED = 1001;
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../api';
|
||||||
|
import { MessageEvent } from '../../../../../events';
|
||||||
|
import { CancelMysteryBoxWaitMessageParser } from '../../parser/mysterybox';
|
||||||
|
|
||||||
|
export class CancelMysteryBoxWaitMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, CancelMysteryBoxWaitMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): CancelMysteryBoxWaitMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as CancelMysteryBoxWaitMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../api';
|
||||||
|
import { MessageEvent } from '../../../../../events';
|
||||||
|
import { GotMysteryBoxPrizeMessageParser } from '../../parser/mysterybox';
|
||||||
|
|
||||||
|
export class GotMysteryBoxPrizeMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, GotMysteryBoxPrizeMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): GotMysteryBoxPrizeMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as GotMysteryBoxPrizeMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../api';
|
||||||
|
import { MessageEvent } from '../../../../../events';
|
||||||
|
import { ShowMysteryBoxWaitMessageParser } from '../../parser/mysterybox';
|
||||||
|
|
||||||
|
export class ShowMysteryBoxWaitMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, ShowMysteryBoxWaitMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): ShowMysteryBoxWaitMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as ShowMysteryBoxWaitMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -1 +1,4 @@
|
|||||||
|
export * from './CancelMysteryBoxWaitMessageEvent';
|
||||||
|
export * from './GotMysteryBoxPrizeMessageEvent';
|
||||||
export * from './MysteryBoxKeysEvent';
|
export * from './MysteryBoxKeysEvent';
|
||||||
|
export * from './ShowMysteryBoxWaitMessageEvent';
|
||||||
|
@ -89,7 +89,9 @@ export class OutgoingHeader
|
|||||||
public static GROUP_SAVE_COLORS = 1764;
|
public static GROUP_SAVE_COLORS = 1764;
|
||||||
public static GROUP_SAVE_PREFERENCES = 3435;
|
public static GROUP_SAVE_PREFERENCES = 3435;
|
||||||
public static GROUP_BADGES = 21;
|
public static GROUP_BADGES = 21;
|
||||||
public static INVENTORY_UNKNOWN = 1371;
|
public static GET_BADGE_POINTS_LIMITS = 1371;
|
||||||
|
public static REQUESTABADGE = 3077;
|
||||||
|
public static GETISBADGEREQUESTFULFILLED = 1364;
|
||||||
public static ITEM_CLOTHING_REDEEM = 3374;
|
public static ITEM_CLOTHING_REDEEM = 3374;
|
||||||
public static ITEM_COLOR_WHEEL_CLICK = 2144;
|
public static ITEM_COLOR_WHEEL_CLICK = 2144;
|
||||||
public static ITEM_DICE_CLICK = 1990;
|
public static ITEM_DICE_CLICK = 1990;
|
||||||
@ -191,6 +193,7 @@ export class OutgoingHeader
|
|||||||
public static ROOM_SETTINGS = 3129;
|
public static ROOM_SETTINGS = 3129;
|
||||||
public static ROOM_SETTINGS_SAVE = 1969;
|
public static ROOM_SETTINGS_SAVE = 1969;
|
||||||
public static ROOM_STAFF_PICK = 1918;
|
public static ROOM_STAFF_PICK = 1918;
|
||||||
|
public static MYSTERYBOXWAITINGCANCELEDMESSAGE = 2012;
|
||||||
public static SECURITY_MACHINE = 2490;
|
public static SECURITY_MACHINE = 2490;
|
||||||
public static SECURITY_TICKET = 2419;
|
public static SECURITY_TICKET = 2419;
|
||||||
public static TRADE = 1481;
|
public static TRADE = 1481;
|
||||||
@ -224,7 +227,7 @@ export class OutgoingHeader
|
|||||||
public static USER_EFFECT_ENABLE = 1752;
|
public static USER_EFFECT_ENABLE = 1752;
|
||||||
public static USER_FIGURE = 2730;
|
public static USER_FIGURE = 2730;
|
||||||
public static USER_FURNITURE = 3150; // sent when in room
|
public static USER_FURNITURE = 3150; // sent when in room
|
||||||
public static USER_FURNITURE2 = 3500; // sent when not in room
|
public static REQUESTFURNIINVENTORYWHENNOTINROOM = 3500; // sent when not in room
|
||||||
public static USER_HOME_ROOM = 1740;
|
public static USER_HOME_ROOM = 1740;
|
||||||
public static USER_INFO = 357;
|
public static USER_INFO = 357;
|
||||||
public static USER_MOTTO = 2228;
|
public static USER_MOTTO = 2228;
|
||||||
|
@ -30,6 +30,7 @@ export * from './landingview';
|
|||||||
export * from './landingview/votes';
|
export * from './landingview/votes';
|
||||||
export * from './marketplace';
|
export * from './marketplace';
|
||||||
export * from './moderation';
|
export * from './moderation';
|
||||||
|
export * from './mysterybox';
|
||||||
export * from './navigator';
|
export * from './navigator';
|
||||||
export * from './OutgoingHeader';
|
export * from './OutgoingHeader';
|
||||||
export * from './pet';
|
export * from './pet';
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class AvatarEffectActivatedComposer implements IMessageComposer<ConstructorParameters<typeof AvatarEffectActivatedComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof AvatarEffectActivatedComposer>;
|
||||||
|
|
||||||
|
constructor(type: number)
|
||||||
|
{
|
||||||
|
this._data = [ type ];
|
||||||
|
}
|
||||||
|
|
||||||
|
dispose(): void
|
||||||
|
{
|
||||||
|
this._data = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class AvatarEffectSelectedComposer implements IMessageComposer<ConstructorParameters<typeof AvatarEffectSelectedComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof AvatarEffectSelectedComposer>;
|
||||||
|
|
||||||
|
constructor(type: number)
|
||||||
|
{
|
||||||
|
this._data = [ type ];
|
||||||
|
}
|
||||||
|
|
||||||
|
dispose(): void
|
||||||
|
{
|
||||||
|
this._data = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
export * from './AvatarEffectActivatedComposer';
|
||||||
|
export * from './AvatarEffectSelectedComposer';
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class GetBadgePointLimitsComposer implements IMessageComposer<ConstructorParameters<typeof GetBadgePointLimitsComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GetBadgePointLimitsComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [ ];
|
||||||
|
}
|
||||||
|
|
||||||
|
dispose(): void
|
||||||
|
{
|
||||||
|
this._data = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class GetIsBadgeRequestFulfilledComposer implements IMessageComposer<ConstructorParameters<typeof GetIsBadgeRequestFulfilledComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GetIsBadgeRequestFulfilledComposer>;
|
||||||
|
|
||||||
|
constructor(k: string)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
dispose(): void
|
||||||
|
{
|
||||||
|
this._data = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class RequestABadgeComposer implements IMessageComposer<ConstructorParameters<typeof RequestABadgeComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RequestABadgeComposer>;
|
||||||
|
|
||||||
|
constructor(requestCode: string)
|
||||||
|
{
|
||||||
|
this._data = [ requestCode ];
|
||||||
|
}
|
||||||
|
|
||||||
|
dispose(): void
|
||||||
|
{
|
||||||
|
this._data = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -1,2 +1,5 @@
|
|||||||
|
export * from './GetBadgePointLimitsComposer';
|
||||||
|
export * from './GetIsBadgeRequestFulfilledComposer';
|
||||||
|
export * from './RequestABadgeComposer';
|
||||||
export * from './RequestBadgesComposer';
|
export * from './RequestBadgesComposer';
|
||||||
export * from './SetActivatedBadgesComposer';
|
export * from './SetActivatedBadgesComposer';
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
import { IMessageComposer } from '../../../../../../api';
|
|
||||||
|
|
||||||
export class FurnitureList2Composer implements IMessageComposer<ConstructorParameters<typeof FurnitureList2Composer>>
|
|
||||||
{
|
|
||||||
private _data: ConstructorParameters<typeof FurnitureList2Composer>;
|
|
||||||
|
|
||||||
constructor()
|
|
||||||
{
|
|
||||||
this._data = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
public getMessageArray()
|
|
||||||
{
|
|
||||||
return this._data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public dispose(): void
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class RequestFurniInventoryWhenNotInRoomComposer implements IMessageComposer<ConstructorParameters<typeof RequestFurniInventoryWhenNotInRoomComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RequestFurniInventoryWhenNotInRoomComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -1,2 +1,2 @@
|
|||||||
export * from './FurnitureList2Composer';
|
|
||||||
export * from './FurnitureListComposer';
|
export * from './FurnitureListComposer';
|
||||||
|
export * from './RequestFurniInventoryWhenNotInRoomComposer';
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
export * from './avatareffect';
|
||||||
export * from './badges';
|
export * from './badges';
|
||||||
export * from './bots';
|
export * from './bots';
|
||||||
export * from './furni';
|
export * from './furni';
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../api';
|
||||||
|
|
||||||
|
export class MysteryBoxWaitingCanceledMessageComposer implements IMessageComposer<ConstructorParameters<typeof MysteryBoxWaitingCanceledMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof MysteryBoxWaitingCanceledMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: number)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
dispose(): void
|
||||||
|
{
|
||||||
|
this._data = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
export * from './MysteryBoxWaitingCanceledMessageComposer';
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
|
||||||
|
|
||||||
|
export class CancelMysteryBoxWaitMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
|
||||||
|
|
||||||
|
export class GotMysteryBoxPrizeMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _contentType:string;
|
||||||
|
private _classId:number;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._contentType = wrapper.readString();
|
||||||
|
this._classId = wrapper.readInt();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get contentType():string
|
||||||
|
{
|
||||||
|
return this._contentType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get classId():number
|
||||||
|
{
|
||||||
|
return this._classId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../api';
|
||||||
|
|
||||||
|
export class ShowMysteryBoxWaitMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1 +1,4 @@
|
|||||||
|
export * from './CancelMysteryBoxWaitMessageParser';
|
||||||
|
export * from './GotMysteryBoxPrizeMessageParser';
|
||||||
export * from './MysteryBoxKeysParser';
|
export * from './MysteryBoxKeysParser';
|
||||||
|
export * from './ShowMysteryBoxWaitMessageParser';
|
||||||
|
@ -754,14 +754,14 @@ export class RoomPlane implements IRoomPlane
|
|||||||
const _local_8: number = (_local_6 / _arg_2.width);
|
const _local_8: number = (_local_6 / _arg_2.width);
|
||||||
const _local_9: number = (_local_3 / _arg_2.height);
|
const _local_9: number = (_local_3 / _arg_2.height);
|
||||||
const _local_10: number = (_local_4 / _arg_2.height);
|
const _local_10: number = (_local_4 / _arg_2.height);
|
||||||
const _local_11 = new Matrix();
|
const matrix = new Matrix();
|
||||||
_local_11.a = _local_7;
|
matrix.a = _local_7;
|
||||||
_local_11.b = _local_8;
|
matrix.b = _local_8;
|
||||||
_local_11.c = _local_9;
|
matrix.c = _local_9;
|
||||||
_local_11.d = _local_10;
|
matrix.d = _local_10;
|
||||||
_local_11.translate(this._cornerC.x, this._cornerC.y);
|
matrix.translate(this._cornerC.x, this._cornerC.y);
|
||||||
|
|
||||||
this.draw(_arg_2, _local_11);
|
this.draw(_arg_2, matrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
private draw(k: Graphics, matrix: Matrix): void
|
private draw(k: Graphics, matrix: Matrix): void
|
||||||
|
Loading…
Reference in New Issue
Block a user