You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
Move to Renderer V2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user