mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
#29 - BreedPetsMessageComposer added
This commit is contained in:
parent
e70d9cc804
commit
77c09767f6
File diff suppressed because one or more lines are too long
@ -136,6 +136,7 @@ export class OutgoingHeader
|
|||||||
public static PET_RESPECT = 3202;
|
public static PET_RESPECT = 3202;
|
||||||
public static PET_RIDE = 1036;
|
public static PET_RIDE = 1036;
|
||||||
public static PET_MOVE = 3449;
|
public static PET_MOVE = 3449;
|
||||||
|
public static PETS_BREED = 1638;
|
||||||
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 RELEASE_VERSION = 4000;
|
public static RELEASE_VERSION = 4000;
|
||||||
|
@ -53,6 +53,7 @@ export * from './room/furniture/toner';
|
|||||||
export * from './room/furniture/wall';
|
export * from './room/furniture/wall';
|
||||||
export * from './room/furniture/youtube';
|
export * from './room/furniture/youtube';
|
||||||
export * from './room/layout';
|
export * from './room/layout';
|
||||||
|
export * from './room/pets';
|
||||||
export * from './room/session';
|
export * from './room/session';
|
||||||
export * from './room/unit';
|
export * from './room/unit';
|
||||||
export * from './room/unit/chat';
|
export * from './room/unit/chat';
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../../api';
|
||||||
|
|
||||||
|
export class BreedPetsMessageComposer implements IMessageComposer<ConstructorParameters<typeof BreedPetsMessageComposer>>
|
||||||
|
{
|
||||||
|
public static readonly STATE_START: number = 0;
|
||||||
|
public static readonly STATE_CANCEL: number = 1;
|
||||||
|
public static readonly STATE_ACCEPT: number = 2;
|
||||||
|
|
||||||
|
private _data: ConstructorParameters<typeof BreedPetsMessageComposer>;
|
||||||
|
|
||||||
|
constructor(state: number, petOneId: number, petTwoId: number)
|
||||||
|
{
|
||||||
|
this._data = [state, petOneId, petTwoId];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
export * from './BreedPetsMessageComposer';
|
Loading…
Reference in New Issue
Block a user