mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-29 18:50:51 +01:00
Merge branch 'composer-breed-pets' of https://github.com/oobjectt/nitro-renderer into oobjectt-composer-breed-pets
This commit is contained in:
commit
285ac4129e
File diff suppressed because one or more lines are too long
@ -138,6 +138,7 @@ export class OutgoingHeader
|
||||
public static PET_MOVE = 3449;
|
||||
public static PET_OPEN_PACKAGE = 3698;
|
||||
public static PET_SELECTED = 549;
|
||||
public static PETS_BREED = 1638;
|
||||
public static GET_PET_TRAINING_PANEL = 2161;
|
||||
public static RECYCLER_PRIZES = 398;
|
||||
public static RELEASE_VERSION = 4000;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -1 +1,2 @@
|
||||
export * from './BreedPetsMessageComposer';
|
||||
export * from './PetSelectedMessageComposer';
|
||||
|
Loading…
Reference in New Issue
Block a user