Move to Renderer V2

This commit is contained in:
duckietm
2024-04-03 09:27:56 +02:00
parent 110c3ad393
commit b3134ce50b
4080 changed files with 115593 additions and 66375 deletions
@@ -0,0 +1,35 @@
import { IRoomSession } from '@nitrots/api';
import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPetCommandsUpdateEvent extends RoomSessionEvent
{
public static PET_COMMANDS: string = 'RSPIUE_ENABLED_PET_COMMANDS';
private _petId: number;
private _allCommandIds: number[];
private _enabledCommandIds: number[];
constructor(k: IRoomSession, id: number, commands: number[], enabledCommands: number[])
{
super(RoomSessionPetCommandsUpdateEvent.PET_COMMANDS, k);
this._petId = id;
this._allCommandIds = commands;
this._enabledCommandIds = enabledCommands;
}
public get id(): number
{
return this._petId;
}
public get commands(): number[]
{
return this._allCommandIds;
}
public get enabledCommands(): number[]
{
return this._enabledCommandIds;
}
}