Files
Nitro_Render_V3/packages/events/src/session/RoomSessionEvent.ts
T
2024-04-03 09:27:56 +02:00

32 lines
795 B
TypeScript

import { IRoomSession } from '@nitrots/api';
import { NitroEvent } from '../core';
export class RoomSessionEvent extends NitroEvent
{
public static CREATED: string = 'RSE_CREATED';
public static STARTED: string = 'RSE_STARTED';
public static ENDED: string = 'RSE_ENDED';
public static ROOM_DATA: string = 'RSE_ROOM_DATA';
private _session: IRoomSession;
private _openLandingView: boolean;
constructor(type: string, session: IRoomSession, openLandingView: boolean = true)
{
super(type);
this._session = session;
this._openLandingView = openLandingView;
}
public get session(): IRoomSession
{
return this._session;
}
public get openLandingView(): boolean
{
return this._openLandingView;
}
}