Files
Nitro_Render_V3/packages/room/src/messages/ObjectTileCursorUpdateMessage.ts
T
2024-04-03 09:27:56 +02:00

41 lines
981 B
TypeScript

import { IVector3D } from '@nitrots/api';
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
export class ObjectTileCursorUpdateMessage extends RoomObjectUpdateMessage
{
private _height: number;
private _sourceEventId: string;
private _visible: boolean;
private _toggleVisibility: boolean;
constructor(k: IVector3D, height: number, visible: boolean, sourceEventId: string, toggleVisibility: boolean = false)
{
super(k, null);
this._height = height;
this._visible = visible;
this._sourceEventId = sourceEventId;
this._toggleVisibility = toggleVisibility;
}
public get height(): number
{
return this._height;
}
public get visible(): boolean
{
return this._visible;
}
public get sourceEventId(): string
{
return this._sourceEventId;
}
public get toggleVisibility(): boolean
{
return this._toggleVisibility;
}
}