mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-23 08:00:51 +01:00
Merge branch 'composer-recycler' of https://github.com/oobjectt/nitro-renderer into oobjectt-composer-recycler
This commit is contained in:
commit
fd5b9077c9
File diff suppressed because one or more lines are too long
@ -144,6 +144,8 @@ export class OutgoingHeader
|
|||||||
public static PET_CONFIRM_BREEDING = 3382;
|
public static PET_CONFIRM_BREEDING = 3382;
|
||||||
public static GET_PET_TRAINING_PANEL = 2161;
|
public static GET_PET_TRAINING_PANEL = 2161;
|
||||||
public static RECYCLER_PRIZES = 398;
|
public static RECYCLER_PRIZES = 398;
|
||||||
|
public static RECYCLER_STATUS = 1342;
|
||||||
|
public static RECYCLER_ITEMS = 2771;
|
||||||
public static RELEASE_VERSION = 4000;
|
public static RELEASE_VERSION = 4000;
|
||||||
public static CALL_FOR_HELP = 1691;
|
public static CALL_FOR_HELP = 1691;
|
||||||
public static ROOM_AMBASSADOR_ALERT = 2996;
|
public static ROOM_AMBASSADOR_ALERT = 2996;
|
||||||
|
@ -37,6 +37,7 @@ export * from './OutgoingHeader';
|
|||||||
export * from './pet';
|
export * from './pet';
|
||||||
export * from './poll';
|
export * from './poll';
|
||||||
export * from './quest';
|
export * from './quest';
|
||||||
|
export * from './recycler';
|
||||||
export * from './room';
|
export * from './room';
|
||||||
export * from './room/access';
|
export * from './room/access';
|
||||||
export * from './room/action';
|
export * from './room/action';
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../api';
|
||||||
|
|
||||||
|
export class GetRecyclerStatusMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetRecyclerStatusMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GetRecyclerStatusMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../api';
|
||||||
|
|
||||||
|
export class RecycleItemsMessageComposer implements IMessageComposer<any>
|
||||||
|
{
|
||||||
|
private _data: any;
|
||||||
|
|
||||||
|
constructor(...data: RecycleItemsEntry[])
|
||||||
|
{
|
||||||
|
this._data = [data.length];
|
||||||
|
data.forEach(entry =>
|
||||||
|
{
|
||||||
|
this._data.push(entry.itemId);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class RecycleItemsEntry
|
||||||
|
{
|
||||||
|
constructor(public itemId: number)
|
||||||
|
{ }
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
export * from './GetRecyclerStatusMessageComposer';
|
||||||
|
export * from './RecycleItemsMessageComposer';
|
Loading…
Reference in New Issue
Block a user