mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-31 19:12:36 +01:00
29 lines
664 B
TypeScript
29 lines
664 B
TypeScript
import { IRoomSession } from '@nitrots/api';
|
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
|
|
|
export class RoomSessionPetLevelUpdateEvent extends RoomSessionEvent
|
|
{
|
|
public static PET_LEVEL_UPDATE: string = 'RSPLUE_PET_LEVEL_UPDATE';
|
|
|
|
private _petId: number;
|
|
private _level: number;
|
|
|
|
constructor(session: IRoomSession, petId: number, level: number)
|
|
{
|
|
super(RoomSessionPetLevelUpdateEvent.PET_LEVEL_UPDATE, session);
|
|
|
|
this._petId = petId;
|
|
this._level = level;
|
|
}
|
|
|
|
public get petId(): number
|
|
{
|
|
return this._petId;
|
|
}
|
|
|
|
public get level(): number
|
|
{
|
|
return this._level;
|
|
}
|
|
}
|