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
28 lines
779 B
TypeScript
28 lines
779 B
TypeScript
import { ContextMenuEnum } from '@nitrots/api';
|
|
import { RoomObjectWidgetRequestEvent } from '@nitrots/events';
|
|
import { FurnitureLogic } from './FurnitureLogic';
|
|
|
|
export class FurnitureEffectBoxLogic extends FurnitureLogic
|
|
{
|
|
private _timer: any;
|
|
|
|
public getEventTypes(): string[]
|
|
{
|
|
const types = [RoomObjectWidgetRequestEvent.EFFECTBOX_OPEN_DIALOG];
|
|
|
|
return this.mergeTypes(super.getEventTypes(), types);
|
|
}
|
|
|
|
public useObject(): void
|
|
{
|
|
if(!this.object || !this.eventDispatcher) return;
|
|
|
|
this.eventDispatcher.dispatchEvent(new RoomObjectWidgetRequestEvent(RoomObjectWidgetRequestEvent.EFFECTBOX_OPEN_DIALOG, this.object));
|
|
}
|
|
|
|
public get contextMenu(): string
|
|
{
|
|
return ContextMenuEnum.EFFECT_BOX;
|
|
}
|
|
}
|