Move to Renderer V2

This commit is contained in:
duckietm
2024-04-03 09:27:56 +02:00
parent 110c3ad393
commit b3134ce50b
4080 changed files with 115593 additions and 66375 deletions
@@ -0,0 +1,32 @@
import { IRoomObject } from '@nitrots/api';
import { RoomObjectEvent } from './RoomObjectEvent';
export class RoomObjectRoomAdEvent extends RoomObjectEvent
{
public static ROOM_AD_LOAD_IMAGE: string = 'RORAE_ROOM_AD_LOAD_IMAGE';
public static ROOM_AD_FURNI_CLICK: string = 'RORAE_ROOM_AD_FURNI_CLICK';
public static ROOM_AD_FURNI_DOUBLE_CLICK: string = 'RORAE_ROOM_AD_FURNI_DOUBLE_CLICK';
public static ROOM_AD_TOOLTIP_SHOW: string = 'RORAE_ROOM_AD_TOOLTIP_SHOW';
public static ROOM_AD_TOOLTIP_HIDE: string = 'RORAE_ROOM_AD_TOOLTIP_HIDE';
private _imageUrl: string = '';
private _clickUrl: string = '';
constructor(type: string, object: IRoomObject, imageUrl: string = '', clickUrl: string = '')
{
super(type, object);
this._imageUrl = imageUrl;
this._clickUrl = clickUrl;
}
public get imageUrl(): string
{
return this._imageUrl;
}
public get clickUrl(): string
{
return this._clickUrl;
}
}