You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 15:36:18 +00:00
20 lines
579 B
TypeScript
20 lines
579 B
TypeScript
import { RoomObjectWidgetRequestEvent } from '@nitrots/events';
|
|
import { FurnitureLogic } from './FurnitureLogic';
|
|
|
|
export class FurnitureTrophyLogic extends FurnitureLogic
|
|
{
|
|
public getEventTypes(): string[]
|
|
{
|
|
const types = [RoomObjectWidgetRequestEvent.TROPHY];
|
|
|
|
return this.mergeTypes(super.getEventTypes(), types);
|
|
}
|
|
|
|
public useObject(): void
|
|
{
|
|
if(!this.object || !this.eventDispatcher) return;
|
|
|
|
this.eventDispatcher.dispatchEvent(new RoomObjectWidgetRequestEvent(RoomObjectWidgetRequestEvent.TROPHY, this.object));
|
|
}
|
|
}
|