nitro-renderer/packages/events/src/session/RoomSessionPetLevelUpdateEvent.ts

29 lines
664 B
TypeScript
Raw Normal View History

2024-03-19 21:53:17 -04:00
import { IRoomSession } from '@nitrots/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;
2022-12-23 19:56:29 +01:00
constructor(session: IRoomSession, petId: number, level: number)
2021-03-16 22:02:09 -04:00
{
2022-12-23 19:56:29 +01:00
super(RoomSessionPetLevelUpdateEvent.PET_LEVEL_UPDATE, session);
2021-03-16 22:02:09 -04:00
2022-12-23 19:56:29 +01:00
this._petId = petId;
this._level = level;
2021-03-16 22:02:09 -04:00
}
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
}