2022-11-03 14:40:24 -04:00
|
|
|
|
import { IRoomSession } from '../../api';
|
2021-03-16 22:02:09 -04:00
|
|
|
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
|
|
|
|
|
|
|
|
|
export class RoomSessionPetLevelUpdateEvent extends RoomSessionEvent
|
|
|
|
|
{
|
2021-06-23 05:17:38 -05:00
|
|
|
|
public static PET_LEVEL_UPDATE: string = 'RSPLUE_PET_LEVEL_UPDATE';
|
2021-03-16 22:02:09 -04:00
|
|
|
|
|
|
|
|
|
private _petId: number;
|
|
|
|
|
private _level: number;
|
|
|
|
|
|
|
|
|
|
constructor(k: IRoomSession, _arg_2: number, _arg_3: number)
|
|
|
|
|
{
|
2021-06-23 05:17:38 -05:00
|
|
|
|
super(RoomSessionPetLevelUpdateEvent.PET_LEVEL_UPDATE, k);
|
2021-03-16 22:02:09 -04:00
|
|
|
|
|
|
|
|
|
this._petId = _arg_2;
|
|
|
|
|
this._level = _arg_3;
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-23 05:17:38 -05:00
|
|
|
|
public get petId(): number
|
2021-03-16 22:02:09 -04:00
|
|
|
|
{
|
|
|
|
|
return this._petId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public get level(): number
|
|
|
|
|
{
|
|
|
|
|
return this._level;
|
|
|
|
|
}
|
2021-06-23 05:17:38 -05:00
|
|
|
|
}
|