Merge branch 'composer-breed-pets' of https://github.com/oobjectt/nitro-renderer into oobjectt-composer-breed-pets

This commit is contained in:
dank074 2022-12-27 01:12:55 -06:00
commit 285ac4129e
4 changed files with 29 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -138,6 +138,7 @@ export class OutgoingHeader
public static PET_MOVE = 3449; public static PET_MOVE = 3449;
public static PET_OPEN_PACKAGE = 3698; public static PET_OPEN_PACKAGE = 3698;
public static PET_SELECTED = 549; public static PET_SELECTED = 549;
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;

View File

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

View File

@ -1 +1,2 @@
export * from './BreedPetsMessageComposer';
export * from './PetSelectedMessageComposer'; export * from './PetSelectedMessageComposer';