add some missing packets

This commit is contained in:
dank074 2022-11-19 18:28:07 -06:00
parent 19f06527ae
commit 2d4f780fcc
26 changed files with 315 additions and 33 deletions

File diff suppressed because one or more lines are too long

View File

@ -160,6 +160,9 @@ export class IncomingHeader
public static INFO_FEED_ENABLE = 3284;
public static SECURITY_MACHINE = 1488;
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_CLOSED = 1373;
public static TRADE_COMPLETED = 1001;

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -1 +1,4 @@
export * from './CancelMysteryBoxWaitMessageEvent';
export * from './GotMysteryBoxPrizeMessageEvent';
export * from './MysteryBoxKeysEvent';
export * from './ShowMysteryBoxWaitMessageEvent';

View File

@ -89,7 +89,9 @@ export class OutgoingHeader
public static GROUP_SAVE_COLORS = 1764;
public static GROUP_SAVE_PREFERENCES = 3435;
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_COLOR_WHEEL_CLICK = 2144;
public static ITEM_DICE_CLICK = 1990;
@ -191,6 +193,7 @@ export class OutgoingHeader
public static ROOM_SETTINGS = 3129;
public static ROOM_SETTINGS_SAVE = 1969;
public static ROOM_STAFF_PICK = 1918;
public static MYSTERYBOXWAITINGCANCELEDMESSAGE = 2012;
public static SECURITY_MACHINE = 2490;
public static SECURITY_TICKET = 2419;
public static TRADE = 1481;
@ -224,7 +227,7 @@ export class OutgoingHeader
public static USER_EFFECT_ENABLE = 1752;
public static USER_FIGURE = 2730;
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_INFO = 357;
public static USER_MOTTO = 2228;

View File

@ -30,6 +30,7 @@ export * from './landingview';
export * from './landingview/votes';
export * from './marketplace';
export * from './moderation';
export * from './mysterybox';
export * from './navigator';
export * from './OutgoingHeader';
export * from './pet';

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -0,0 +1,2 @@
export * from './AvatarEffectActivatedComposer';
export * from './AvatarEffectSelectedComposer';

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -1,2 +1,5 @@
export * from './GetBadgePointLimitsComposer';
export * from './GetIsBadgeRequestFulfilledComposer';
export * from './RequestABadgeComposer';
export * from './RequestBadgesComposer';
export * from './SetActivatedBadgesComposer';

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -1,2 +1,2 @@
export * from './FurnitureList2Composer';
export * from './FurnitureListComposer';
export * from './RequestFurniInventoryWhenNotInRoomComposer';

View File

@ -1,3 +1,4 @@
export * from './avatareffect';
export * from './badges';
export * from './bots';
export * from './furni';

View File

@ -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;
}
}

View File

@ -0,0 +1 @@
export * from './MysteryBoxWaitingCanceledMessageComposer';

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -1 +1,4 @@
export * from './CancelMysteryBoxWaitMessageParser';
export * from './GotMysteryBoxPrizeMessageParser';
export * from './MysteryBoxKeysParser';
export * from './ShowMysteryBoxWaitMessageParser';

View File

@ -754,14 +754,14 @@ export class RoomPlane implements IRoomPlane
const _local_8: number = (_local_6 / _arg_2.width);
const _local_9: number = (_local_3 / _arg_2.height);
const _local_10: number = (_local_4 / _arg_2.height);
const _local_11 = new Matrix();
_local_11.a = _local_7;
_local_11.b = _local_8;
_local_11.c = _local_9;
_local_11.d = _local_10;
_local_11.translate(this._cornerC.x, this._cornerC.y);
const matrix = new Matrix();
matrix.a = _local_7;
matrix.b = _local_8;
matrix.c = _local_9;
matrix.d = _local_10;
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