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
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import { RoomEngineEvent } from './RoomEngineEvent';
|
||||
|
||||
export class RoomBackgroundColorEvent extends RoomEngineEvent
|
||||
{
|
||||
public static ROOM_COLOR: string = 'REE_ROOM_COLOR';
|
||||
|
||||
private _color: number;
|
||||
private _brightness: number;
|
||||
private _bgOnly: boolean;
|
||||
|
||||
constructor(roomId: number, color: number, _arg_3: number, _arg_4: boolean)
|
||||
{
|
||||
super(RoomBackgroundColorEvent.ROOM_COLOR, roomId);
|
||||
|
||||
this._color = color;
|
||||
this._brightness = _arg_3;
|
||||
this._bgOnly = _arg_4;
|
||||
}
|
||||
|
||||
public get color(): number
|
||||
{
|
||||
return this._color;
|
||||
}
|
||||
|
||||
public get brightness(): number
|
||||
{
|
||||
return this._brightness;
|
||||
}
|
||||
|
||||
public get bgOnly(): boolean
|
||||
{
|
||||
return this._bgOnly;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { NitroEvent } from '../core';
|
||||
|
||||
export class RoomContentLoadedEvent extends NitroEvent
|
||||
{
|
||||
public static RCLE_SUCCESS: string = 'RCLE_SUCCESS';
|
||||
public static RCLE_FAILURE: string = 'RCLE_FAILURE';
|
||||
public static RCLE_CANCEL: string = 'RCLE_CANCEL';
|
||||
|
||||
private _contentType: string;
|
||||
|
||||
constructor(type: string, contentType: string)
|
||||
{
|
||||
super(type);
|
||||
|
||||
this._contentType = contentType;
|
||||
}
|
||||
|
||||
public get contentType(): string
|
||||
{
|
||||
return this._contentType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { RoomEngineEvent } from './RoomEngineEvent';
|
||||
|
||||
export class RoomDragEvent extends RoomEngineEvent
|
||||
{
|
||||
public static ROOM_DRAG: string = 'RDE_ROOM_DRAG';
|
||||
|
||||
private _offsetX: number;
|
||||
private _offsetY: number;
|
||||
|
||||
constructor(roomId: number, offsetX: number, offsetY: number)
|
||||
{
|
||||
super(RoomDragEvent.ROOM_DRAG, roomId);
|
||||
|
||||
this._offsetX = offsetX;
|
||||
this._offsetY = offsetY;
|
||||
}
|
||||
|
||||
public get offsetX(): number
|
||||
{
|
||||
return this._offsetX;
|
||||
}
|
||||
|
||||
public get offsetY(): number
|
||||
{
|
||||
return this._offsetY;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import { RoomEngineEvent } from './RoomEngineEvent';
|
||||
|
||||
export class RoomEngineDimmerStateEvent extends RoomEngineEvent
|
||||
{
|
||||
public static ROOM_COLOR: string = 'REDSE_ROOM_COLOR';
|
||||
|
||||
private _state: number;
|
||||
private _presetId: number;
|
||||
private _effectId: number;
|
||||
private _color: number;
|
||||
private _brightness: number;
|
||||
|
||||
constructor(k: number, state: number, presetId: number, effectId: number, color: number, brightness: number)
|
||||
{
|
||||
super(RoomEngineDimmerStateEvent.ROOM_COLOR, k);
|
||||
|
||||
this._state = state;
|
||||
this._presetId = presetId;
|
||||
this._effectId = effectId;
|
||||
this._color = color;
|
||||
this._brightness = brightness;
|
||||
}
|
||||
|
||||
public get state(): number
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
|
||||
public get presetId(): number
|
||||
{
|
||||
return this._presetId;
|
||||
}
|
||||
|
||||
public get effectId(): number
|
||||
{
|
||||
return this._effectId;
|
||||
}
|
||||
|
||||
public get color(): number
|
||||
{
|
||||
return this._color;
|
||||
}
|
||||
|
||||
public get brightness(): number
|
||||
{
|
||||
return this._brightness;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import { NitroEvent } from '../core';
|
||||
|
||||
export class RoomEngineEvent extends NitroEvent
|
||||
{
|
||||
public static INITIALIZED: string = 'REE_INITIALIZED';
|
||||
public static ENGINE_INITIALIZED: string = 'REE_ENGINE_INITIALIZED';
|
||||
public static OBJECTS_INITIALIZED: string = 'REE_OBJECTS_INITIALIZED';
|
||||
public static NORMAL_MODE: string = 'REE_NORMAL_MODE';
|
||||
public static GAME_MODE: string = 'REE_GAME_MODE';
|
||||
public static ROOM_ZOOMED: string = 'REE_ROOM_ZOOMED';
|
||||
public static DISPOSED: string = 'REE_DISPOSED';
|
||||
|
||||
private _roomId: number;
|
||||
|
||||
constructor(type: string, roomId: number)
|
||||
{
|
||||
super(type);
|
||||
|
||||
this._roomId = roomId;
|
||||
}
|
||||
|
||||
public get roomId(): number
|
||||
{
|
||||
return this._roomId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import { RoomEngineEvent } from './RoomEngineEvent';
|
||||
|
||||
export class RoomEngineObjectEvent extends RoomEngineEvent
|
||||
{
|
||||
public static SELECTED: string = 'REOE_SELECTED';
|
||||
public static DESELECTED: string = 'REOE_DESELECTED';
|
||||
public static ADDED: string = 'REOE_ADDED';
|
||||
public static REMOVED: string = 'REOE_REMOVED';
|
||||
public static PLACED: string = 'REOE_PLACED';
|
||||
public static PLACED_ON_USER: string = 'REOE_PLACED_ON_USER';
|
||||
public static CONTENT_UPDATED: string = 'REOE_CONTENT_UPDATED';
|
||||
public static REQUEST_MOVE: string = 'REOE_REQUEST_MOVE';
|
||||
public static REQUEST_ROTATE: string = 'REOE_REQUEST_ROTATE';
|
||||
public static REQUEST_MANIPULATION: string = 'REOE_REQUEST_MANIPULATION';
|
||||
public static MOUSE_ENTER: string = 'REOE_MOUSE_ENTER';
|
||||
public static MOUSE_LEAVE: string = 'REOE_MOUSE_LEAVE';
|
||||
public static DOUBLE_CLICK: string = 'REOE_DOUBLE_CLICK';
|
||||
|
||||
private _objectId: number;
|
||||
private _category: number;
|
||||
|
||||
constructor(type: string, roomId: number, objectId: number, category: number)
|
||||
{
|
||||
super(type, roomId);
|
||||
|
||||
this._objectId = objectId;
|
||||
this._category = category;
|
||||
}
|
||||
|
||||
public get objectId(): number
|
||||
{
|
||||
return this._objectId;
|
||||
}
|
||||
|
||||
public get category(): number
|
||||
{
|
||||
return this._category;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomEngineObjectPlacedEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
private _wallLocation: string = '';
|
||||
private _x: number = 0;
|
||||
private _y: number = 0;
|
||||
private _z: number = 0;
|
||||
private _direction: number = 0;
|
||||
private _placedInRoom: boolean = false;
|
||||
private _placedOnFloor: boolean = false;
|
||||
private _placedOnWall: boolean = false;
|
||||
private _instanceData: string = null;
|
||||
|
||||
constructor(type: string, roomId: number, objectId: number, category: number, wallLocation: string, x: number, y: number, z: number, direction: number, placedInRoom: boolean, placedOnFloor: boolean, placedOnWall: boolean, instanceData: string)
|
||||
{
|
||||
super(type, roomId, objectId, category);
|
||||
|
||||
this._wallLocation = wallLocation;
|
||||
this._x = x;
|
||||
this._y = y;
|
||||
this._z = z;
|
||||
this._direction = direction;
|
||||
this._placedInRoom = placedInRoom;
|
||||
this._placedOnFloor = placedOnFloor;
|
||||
this._placedOnWall = placedOnWall;
|
||||
this._instanceData = instanceData;
|
||||
}
|
||||
|
||||
public get wallLocation(): string
|
||||
{
|
||||
return this._wallLocation;
|
||||
}
|
||||
|
||||
public get x(): number
|
||||
{
|
||||
return this._x;
|
||||
}
|
||||
|
||||
public get y(): number
|
||||
{
|
||||
return this._y;
|
||||
}
|
||||
|
||||
public get z(): number
|
||||
{
|
||||
return this._z;
|
||||
}
|
||||
|
||||
public get direction(): number
|
||||
{
|
||||
return this._direction;
|
||||
}
|
||||
|
||||
public get placedInRoom(): boolean
|
||||
{
|
||||
return this._placedInRoom;
|
||||
}
|
||||
|
||||
public get placedOnFloor(): boolean
|
||||
{
|
||||
return this._placedOnFloor;
|
||||
}
|
||||
|
||||
public get placedOnWall(): boolean
|
||||
{
|
||||
return this._placedOnWall;
|
||||
}
|
||||
|
||||
public get instanceData(): string
|
||||
{
|
||||
return this._instanceData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomEngineObjectPlacedOnUserEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
private _droppedObjectId: number;
|
||||
private _droppedObjectCategory: number;
|
||||
|
||||
constructor(k: string, roomId: number, objectId: number, category: number, droppedObjectId: number, droppedObjectCategory: number)
|
||||
{
|
||||
super(k, roomId, objectId, category);
|
||||
|
||||
this._droppedObjectId = droppedObjectId;
|
||||
this._droppedObjectCategory = droppedObjectCategory;
|
||||
}
|
||||
|
||||
public get droppedObjectId(): number
|
||||
{
|
||||
return this._droppedObjectId;
|
||||
}
|
||||
|
||||
public get droppedObjectCategory(): number
|
||||
{
|
||||
return this._droppedObjectCategory;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomEngineObjectPlaySoundEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
public static PLAY_SOUND: string = 'REOPSE_PLAY_SOUND';
|
||||
public static PLAY_SOUND_AT_PITCH: string = 'REOPSE_PLAY_SOUND_AT_PITCH';
|
||||
|
||||
private _soundId: string;
|
||||
private _pitch: number;
|
||||
|
||||
constructor(type: string, roomId: number, objectId: number, objectCategory: number, soundId: string, pitch: number = 1)
|
||||
{
|
||||
super(type, roomId, objectId, objectCategory);
|
||||
|
||||
this._soundId = soundId;
|
||||
this._pitch = pitch;
|
||||
}
|
||||
|
||||
public get soundId(): string
|
||||
{
|
||||
return this._soundId;
|
||||
}
|
||||
|
||||
public get pitch(): number
|
||||
{
|
||||
return this._pitch;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomEngineRoomAdEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
public static FURNI_CLICK: string = 'RERAE_FURNI_CLICK';
|
||||
public static FURNI_DOUBLE_CLICK: string = 'RERAE_FURNI_DOUBLE_CLICK';
|
||||
public static TOOLTIP_SHOW: string = 'RERAE_TOOLTIP_SHOW';
|
||||
public static TOOLTIP_HIDE: string = 'RERAE_TOOLTIP_HIDE';
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomEngineSamplePlaybackEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
public static ROOM_OBJECT_INITIALIZED: string = 'ROPSPE_ROOM_OBJECT_INITIALIZED';
|
||||
public static ROOM_OBJECT_DISPOSED: string = 'ROPSPE_ROOM_OBJECT_DISPOSED';
|
||||
public static PLAY_SAMPLE: string = 'ROPSPE_PLAY_SAMPLE';
|
||||
public static CHANGE_PITCH: string = 'ROPSPE_CHANGE_PITCH';
|
||||
|
||||
private _sampleId: number;
|
||||
private _pitch: number;
|
||||
|
||||
constructor(k: string, roomId: number, objectId: number, objectCategory: number, sampleId: number, pitch: number = 1)
|
||||
{
|
||||
super(k, roomId, objectId, objectCategory);
|
||||
|
||||
this._sampleId = sampleId;
|
||||
this._pitch = pitch;
|
||||
}
|
||||
|
||||
public get sampleId(): number
|
||||
{
|
||||
return this._sampleId;
|
||||
}
|
||||
|
||||
public get pitch(): number
|
||||
{
|
||||
return this._pitch;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomEngineTriggerWidgetEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
public static OPEN_WIDGET: string = 'RETWE_OPEN_WIDGET';
|
||||
public static CLOSE_WIDGET: string = 'RETWE_CLOSE_WIDGET';
|
||||
public static OPEN_FURNI_CONTEXT_MENU: string = 'RETWE_OPEN_FURNI_CONTEXT_MENU';
|
||||
public static CLOSE_FURNI_CONTEXT_MENU: string = 'RETWE_CLOSE_FURNI_CONTEXT_MENU';
|
||||
public static REQUEST_PLACEHOLDER: string = 'RETWE_REQUEST_PLACEHOLDER';
|
||||
public static REQUEST_CREDITFURNI: string = 'RETWE_REQUEST_CREDITFURNI';
|
||||
public static REQUEST_STACK_HEIGHT: string = 'RETWE_REQUEST_STACK_HEIGHT';
|
||||
public static REQUEST_EXTERNAL_IMAGE: string = 'RETWE_REQUEST_EXTERNAL_IMAGE';
|
||||
public static REQUEST_STICKIE: string = 'RETWE_REQUEST_STICKIE';
|
||||
public static REQUEST_PRESENT: string = 'RETWE_REQUEST_PRESENT';
|
||||
public static REQUEST_TROPHY: string = 'RETWE_REQUEST_TROPHY';
|
||||
public static REQUEST_TEASER: string = 'RETWE_REQUEST_TEASER';
|
||||
public static REQUEST_ECOTRONBOX: string = 'RETWE_REQUEST_ECOTRONBOX';
|
||||
public static REQUEST_DIMMER: string = 'RETWE_REQUEST_DIMMER';
|
||||
public static REMOVE_DIMMER: string = 'RETWE_REMOVE_DIMMER';
|
||||
public static REQUEST_CLOTHING_CHANGE: string = 'RETWE_REQUEST_CLOTHING_CHANGE';
|
||||
public static REQUEST_PLAYLIST_EDITOR: string = 'RETWE_REQUEST_PLAYLIST_EDITOR';
|
||||
public static REQUEST_MANNEQUIN: string = 'RETWE_REQUEST_MANNEQUIN';
|
||||
public static REQUEST_MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG: string = 'ROWRE_REQUEST_MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG';
|
||||
public static REQUEST_PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG: string = 'ROWRE_REQUEST_PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG';
|
||||
public static REQUEST_BACKGROUND_COLOR: string = 'RETWE_REQUEST_BACKGROUND_COLOR';
|
||||
public static REQUEST_MYSTERYBOX_OPEN_DIALOG: string = 'RETWE_REQUEST_MYSTERYBOX_OPEN_DIALOG';
|
||||
public static REQUEST_EFFECTBOX_OPEN_DIALOG: string = 'RETWE_REQUEST_EFFECTBOX_OPEN_DIALOG';
|
||||
public static REQUEST_MYSTERYTROPHY_OPEN_DIALOG: string = 'RETWE_REQUEST_MYSTERYTROPHY_OPEN_DIALOG';
|
||||
public static REQUEST_ACHIEVEMENT_RESOLUTION_ENGRAVING: string = 'RETWE_REQUEST_ACHIEVEMENT_RESOLUTION_ENGRAVING';
|
||||
public static REQUEST_ACHIEVEMENT_RESOLUTION_FAILED: string = 'RETWE_REQUEST_ACHIEVEMENT_RESOLUTION_FAILED';
|
||||
public static REQUEST_FRIEND_FURNITURE_CONFIRM: string = 'RETWE_REQUEST_FRIEND_FURNITURE_CONFIRM';
|
||||
public static REQUEST_FRIEND_FURNITURE_ENGRAVING: string = 'RETWE_REQUEST_FRIEND_FURNITURE_ENGRAVING';
|
||||
public static REQUEST_BADGE_DISPLAY_ENGRAVING: string = 'RETWE_REQUEST_BADGE_DISPLAY_ENGRAVING';
|
||||
public static REQUEST_HIGH_SCORE_DISPLAY: string = 'RETWE_REQUEST_HIGH_SCORE_DISPLAY';
|
||||
public static REQUEST_HIDE_HIGH_SCORE_DISPLAY: string = 'RETWE_REQUEST_HIDE_HIGH_SCORE_DISPLAY';
|
||||
public static REQUEST_INTERNAL_LINK: string = 'RETWE_REQUEST_INTERNAL_LINK';
|
||||
public static REQUEST_ROOM_LINK: string = 'RETWE_REQUEST_ROOM_LINK';
|
||||
public static REQUEST_YOUTUBE: string = 'RETWE_REQUEST_YOUTUBE';
|
||||
|
||||
private _widget: string;
|
||||
|
||||
constructor(type: string, roomId: number, objectId: number, category: number, widget: string = null)
|
||||
{
|
||||
super(type, roomId, objectId, category);
|
||||
|
||||
this._widget = widget;
|
||||
}
|
||||
|
||||
public get widget(): string
|
||||
{
|
||||
return this._widget;
|
||||
}
|
||||
|
||||
public get contextMenu(): string
|
||||
{
|
||||
return this._widget;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomEngineUseProductEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
public static USE_PRODUCT_FROM_ROOM: string = 'REUPE_USE_PRODUCT_FROM_ROOM';
|
||||
public static USE_PRODUCT_FROM_INVENTORY: string = 'REUPE_USE_PRODUCT_FROM_INVENTORY';
|
||||
|
||||
private _inventoryStripId: number;
|
||||
private _furnitureTypeId: number;
|
||||
|
||||
constructor(type: string, roomId: number, objectId: number, category: number, inventoryStripId = -1, furnitureTypeId = -1)
|
||||
{
|
||||
super(type, roomId, objectId, category);
|
||||
|
||||
this._inventoryStripId = inventoryStripId;
|
||||
this._furnitureTypeId = furnitureTypeId;
|
||||
}
|
||||
|
||||
public get inventoryStripId(): number
|
||||
{
|
||||
return this._inventoryStripId;
|
||||
}
|
||||
|
||||
public get furnitureTypeId(): number
|
||||
{
|
||||
return this._furnitureTypeId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectBadgeAssetEvent extends RoomObjectEvent
|
||||
{
|
||||
public static LOAD_BADGE: string = 'ROBAE_LOAD_BADGE';
|
||||
|
||||
private _badgeId: string;
|
||||
private _groupBadge: boolean;
|
||||
|
||||
constructor(k: string, _arg_2: IRoomObject, badgeId: string, groupBadge: boolean = true)
|
||||
{
|
||||
super(k, _arg_2);
|
||||
|
||||
this._badgeId = badgeId;
|
||||
this._groupBadge = groupBadge;
|
||||
}
|
||||
|
||||
public get badgeId(): string
|
||||
{
|
||||
return this._badgeId;
|
||||
}
|
||||
|
||||
public get groupBadge(): boolean
|
||||
{
|
||||
return this._groupBadge;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectDataRequestEvent extends RoomObjectEvent
|
||||
{
|
||||
public static RODRE_CURRENT_USER_ID: string = 'RODRE_CURRENT_USER_ID';
|
||||
public static RODRE_URL_PREFIX: string = 'RODRE_URL_PREFIX';
|
||||
|
||||
constructor(type: string, object: IRoomObject)
|
||||
{
|
||||
super(type, object);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectDimmerStateUpdateEvent extends RoomObjectEvent
|
||||
{
|
||||
public static DIMMER_STATE: string = 'RODSUE_DIMMER_STATE';
|
||||
|
||||
private _state: number;
|
||||
private _presetId: number;
|
||||
private _effectId: number;
|
||||
private _color: number;
|
||||
private _brightness: number;
|
||||
|
||||
constructor(object: IRoomObject, state: number, presetId: number, effectId: number, color: number, brightness: number)
|
||||
{
|
||||
super(RoomObjectDimmerStateUpdateEvent.DIMMER_STATE, object);
|
||||
|
||||
this._state = state;
|
||||
this._presetId = presetId;
|
||||
this._effectId = effectId;
|
||||
this._color = color;
|
||||
this._brightness = brightness;
|
||||
}
|
||||
|
||||
public get state(): number
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
|
||||
public get presetId(): number
|
||||
{
|
||||
return this._presetId;
|
||||
}
|
||||
|
||||
public get effectId(): number
|
||||
{
|
||||
return this._effectId;
|
||||
}
|
||||
|
||||
public get color(): number
|
||||
{
|
||||
return this._color;
|
||||
}
|
||||
|
||||
public get brightness(): number
|
||||
{
|
||||
return this._brightness;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { NitroEvent } from '../core';
|
||||
|
||||
export class RoomObjectEvent extends NitroEvent
|
||||
{
|
||||
private _object: IRoomObject;
|
||||
|
||||
constructor(type: string, object: IRoomObject)
|
||||
{
|
||||
super(type);
|
||||
|
||||
this._object = object;
|
||||
}
|
||||
|
||||
public get object(): IRoomObject
|
||||
{
|
||||
return this._object;
|
||||
}
|
||||
|
||||
public get objectId(): number
|
||||
{
|
||||
if(!this._object) return -1;
|
||||
|
||||
return this._object.id;
|
||||
}
|
||||
|
||||
public get objectType(): string
|
||||
{
|
||||
if(!this._object) return null;
|
||||
|
||||
return this._object.type;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectFloorHoleEvent extends RoomObjectEvent
|
||||
{
|
||||
public static ADD_HOLE: string = 'ROFHO_ADD_HOLE';
|
||||
public static REMOVE_HOLE: string = 'ROFHO_REMOVE_HOLE';
|
||||
|
||||
constructor(k: string, _arg_2: IRoomObject)
|
||||
{
|
||||
super(k, _arg_2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectFurnitureActionEvent extends RoomObjectEvent
|
||||
{
|
||||
public static DICE_OFF: string = 'ROFCAE_DICE_OFF';
|
||||
public static DICE_ACTIVATE: string = 'ROFCAE_DICE_ACTIVATE';
|
||||
public static USE_HABBOWHEEL: string = 'ROFCAE_USE_HABBOWHEEL';
|
||||
public static STICKIE: string = 'ROFCAE_STICKIE';
|
||||
public static ENTER_ONEWAYDOOR: string = 'ROFCAE_ENTER_ONEWAYDOOR';
|
||||
public static SOUND_MACHINE_INIT: string = 'ROFCAE_SOUND_MACHINE_INIT';
|
||||
public static SOUND_MACHINE_START: string = 'ROFCAE_SOUND_MACHINE_START';
|
||||
public static SOUND_MACHINE_STOP: string = 'ROFCAE_SOUND_MACHINE_STOP';
|
||||
public static SOUND_MACHINE_DISPOSE: string = 'ROFCAE_SOUND_MACHINE_DISPOSE';
|
||||
public static JUKEBOX_INIT: string = 'ROFCAE_JUKEBOX_INIT';
|
||||
public static JUKEBOX_START: string = 'ROFCAE_JUKEBOX_START';
|
||||
public static JUKEBOX_MACHINE_STOP: string = 'ROFCAE_JUKEBOX_MACHINE_STOP';
|
||||
public static JUKEBOX_DISPOSE: string = 'ROFCAE_JUKEBOX_DISPOSE';
|
||||
public static MOUSE_BUTTON: string = 'ROFCAE_MOUSE_BUTTON';
|
||||
public static MOUSE_ARROW: string = 'ROFCAE_MOUSE_ARROW';
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectHSLColorEnableEvent extends RoomObjectEvent
|
||||
{
|
||||
public static ROOM_BACKGROUND_COLOR: string = 'ROHSLCEE_ROOM_BACKGROUND_COLOR';
|
||||
|
||||
private _enable: boolean;
|
||||
private _hue: number;
|
||||
private _saturation: number;
|
||||
private _lightness: number;
|
||||
|
||||
constructor(k: string, _arg_2: IRoomObject, _arg_3: boolean, _arg_4: number, _arg_5: number, _arg_6: number)
|
||||
{
|
||||
super(k, _arg_2);
|
||||
|
||||
this._enable = _arg_3;
|
||||
this._hue = _arg_4;
|
||||
this._saturation = _arg_5;
|
||||
this._lightness = _arg_6;
|
||||
}
|
||||
|
||||
public get enable(): boolean
|
||||
{
|
||||
return this._enable;
|
||||
}
|
||||
|
||||
public get hue(): number
|
||||
{
|
||||
return this._hue;
|
||||
}
|
||||
|
||||
public get saturation(): number
|
||||
{
|
||||
return this._saturation;
|
||||
}
|
||||
|
||||
public get lightness(): number
|
||||
{
|
||||
return this._lightness;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import { RoomEngineEvent } from './RoomEngineEvent';
|
||||
|
||||
export class RoomObjectHSLColorEnabledEvent extends RoomEngineEvent
|
||||
{
|
||||
public static ROOM_BACKGROUND_COLOR: string = 'ROHSLCEE_ROOM_BACKGROUND_COLOR';
|
||||
|
||||
private _enable: boolean;
|
||||
private _hue: number;
|
||||
private _saturation: number;
|
||||
private _lightness: number;
|
||||
|
||||
constructor(k: string, _arg_2: number, _arg_3: boolean, _arg_4: number, _arg_5: number, _arg_6: number)
|
||||
{
|
||||
super(k, _arg_2);
|
||||
|
||||
this._enable = _arg_3;
|
||||
this._hue = _arg_4;
|
||||
this._saturation = _arg_5;
|
||||
this._lightness = _arg_6;
|
||||
}
|
||||
|
||||
public get enable(): boolean
|
||||
{
|
||||
return this._enable;
|
||||
}
|
||||
|
||||
public get hue(): number
|
||||
{
|
||||
return this._hue;
|
||||
}
|
||||
|
||||
public get saturation(): number
|
||||
{
|
||||
return this._saturation;
|
||||
}
|
||||
|
||||
public get lightness(): number
|
||||
{
|
||||
return this._lightness;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectMouseEvent extends RoomObjectEvent
|
||||
{
|
||||
public static CLICK: string = 'ROE_MOUSE_CLICK';
|
||||
public static DOUBLE_CLICK: string = 'ROE_MOUSE_DOUBLE_CLICK';
|
||||
public static MOUSE_MOVE: string = 'ROE_MOUSE_MOVE';
|
||||
public static MOUSE_DOWN: string = 'ROE_MOUSE_DOWN';
|
||||
public static MOUSE_DOWN_LONG: string = 'ROE_MOUSE_DOWN_LONG';
|
||||
public static MOUSE_UP: string = 'ROE_MOUSE_UP';
|
||||
public static MOUSE_ENTER: string = 'ROE_MOUSE_ENTER';
|
||||
public static MOUSE_LEAVE: string = 'ROE_MOUSE_LEAVE';
|
||||
|
||||
private _eventId: string = '';
|
||||
private _altKey: boolean;
|
||||
private _ctrlKey: boolean;
|
||||
private _shiftKey: boolean;
|
||||
private _buttonDown: boolean;
|
||||
private _localX: number;
|
||||
private _localY: number;
|
||||
private _spriteOffsetX: number;
|
||||
private _spriteOffsetY: number;
|
||||
|
||||
constructor(type: string, object: IRoomObject, eventId: string, altKey: boolean = false, ctrlKey: boolean = false, shiftKey: boolean = false, buttonDown: boolean = false)
|
||||
{
|
||||
super(type, object);
|
||||
|
||||
this._eventId = eventId;
|
||||
this._altKey = altKey;
|
||||
this._ctrlKey = ctrlKey;
|
||||
this._shiftKey = shiftKey;
|
||||
this._buttonDown = buttonDown;
|
||||
}
|
||||
|
||||
public get eventId(): string
|
||||
{
|
||||
return this._eventId;
|
||||
}
|
||||
|
||||
public get altKey(): boolean
|
||||
{
|
||||
return this._altKey;
|
||||
}
|
||||
|
||||
public get ctrlKey(): boolean
|
||||
{
|
||||
return this._ctrlKey;
|
||||
}
|
||||
|
||||
public get shiftKey(): boolean
|
||||
{
|
||||
return this._shiftKey;
|
||||
}
|
||||
|
||||
public get buttonDown(): boolean
|
||||
{
|
||||
return this._buttonDown;
|
||||
}
|
||||
|
||||
public get localX(): number
|
||||
{
|
||||
return this._localX;
|
||||
}
|
||||
|
||||
public set localX(k: number)
|
||||
{
|
||||
this._localX = k;
|
||||
}
|
||||
|
||||
public get localY(): number
|
||||
{
|
||||
return this._localY;
|
||||
}
|
||||
|
||||
public set localY(k: number)
|
||||
{
|
||||
this._localY = k;
|
||||
}
|
||||
|
||||
public get spriteOffsetX(): number
|
||||
{
|
||||
return this._spriteOffsetX;
|
||||
}
|
||||
|
||||
public set spriteOffsetX(k: number)
|
||||
{
|
||||
this._spriteOffsetX = k;
|
||||
}
|
||||
|
||||
public get spriteOffsetY(): number
|
||||
{
|
||||
return this._spriteOffsetY;
|
||||
}
|
||||
|
||||
public set spriteOffsetY(k: number)
|
||||
{
|
||||
this._spriteOffsetY = k;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectMoveEvent extends RoomObjectEvent
|
||||
{
|
||||
public static POSITION_CHANGED: string = 'ROME_POSITION_CHANGED';
|
||||
public static OBJECT_REMOVED: string = 'ROME_OBJECT_REMOVED';
|
||||
|
||||
constructor(k: string, _arg_2: IRoomObject)
|
||||
{
|
||||
super(k, _arg_2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectFurnitureActionEvent } from './RoomObjectFurnitureActionEvent';
|
||||
|
||||
export class RoomObjectPlaySoundIdEvent extends RoomObjectFurnitureActionEvent
|
||||
{
|
||||
public static PLAY_SOUND: string = 'ROPSIE_PLAY_SOUND';
|
||||
public static PLAY_SOUND_AT_PITCH: string = 'ROPSIE_PLAY_SOUND_AT_PITCH';
|
||||
|
||||
private _soundId: string;
|
||||
private _pitch: number;
|
||||
|
||||
constructor(type: string, object: IRoomObject, soundId: string, pitch: number = 1)
|
||||
{
|
||||
super(type, object);
|
||||
|
||||
this._soundId = soundId;
|
||||
this._pitch = pitch;
|
||||
}
|
||||
|
||||
public get soundId(): string
|
||||
{
|
||||
return this._soundId;
|
||||
}
|
||||
|
||||
public get pitch(): number
|
||||
{
|
||||
return this._pitch;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectSamplePlaybackEvent extends RoomObjectEvent
|
||||
{
|
||||
public static ROOM_OBJECT_INITIALIZED: string = 'ROPSPE_ROOM_OBJECT_INITIALIZED';
|
||||
public static ROOM_OBJECT_DISPOSED: string = 'ROPSPE_ROOM_OBJECT_DISPOSED';
|
||||
public static PLAY_SAMPLE: string = 'ROPSPE_PLAY_SAMPLE';
|
||||
public static CHANGE_PITCH: string = 'ROPSPE_CHANGE_PITCH';
|
||||
|
||||
private _sampleId: number;
|
||||
private _pitch: number;
|
||||
|
||||
constructor(k: string, object: IRoomObject, sampleId: number, pitch: number = 1)
|
||||
{
|
||||
super(k, object);
|
||||
|
||||
this._sampleId = sampleId;
|
||||
this._pitch = pitch;
|
||||
}
|
||||
|
||||
public get sampleId(): number
|
||||
{
|
||||
return this._sampleId;
|
||||
}
|
||||
|
||||
public get pitch(): number
|
||||
{
|
||||
return this._pitch;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { RoomEngineObjectEvent } from './RoomEngineObjectEvent';
|
||||
|
||||
export class RoomObjectSoundMachineEvent extends RoomEngineObjectEvent
|
||||
{
|
||||
public static SOUND_MACHINE_INIT: string = 'ROSM_SOUND_MACHINE_INIT';
|
||||
public static SOUND_MACHINE_SWITCHED_ON: string = 'ROSM_SOUND_MACHINE_SWITCHED_ON';
|
||||
public static SOUND_MACHINE_SWITCHED_OFF: string = 'ROSM_SOUND_MACHINE_SWITCHED_OFF';
|
||||
public static SOUND_MACHINE_DISPOSE: string = 'ROSM_SOUND_MACHINE_DISPOSE';
|
||||
public static JUKEBOX_INIT: string = 'ROSM_JUKEBOX_INIT';
|
||||
public static JUKEBOX_SWITCHED_ON: string = 'ROSM_JUKEBOX_SWITCHED_ON';
|
||||
public static JUKEBOX_SWITCHED_OFF: string = 'ROSM_JUKEBOX_SWITCHED_OFF';
|
||||
public static JUKEBOX_DISPOSE: string = 'ROSM_JUKEBOX_DISPOSE';
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectStateChangedEvent extends RoomObjectEvent
|
||||
{
|
||||
public static STATE_CHANGE: string = 'ROSCE_STATE_CHANGE';
|
||||
public static STATE_RANDOM: string = 'ROSCE_STATE_RANDOM';
|
||||
|
||||
private _state: number;
|
||||
|
||||
constructor(type: string, object: IRoomObject, state: number = 0)
|
||||
{
|
||||
super(type, object);
|
||||
|
||||
this._state = state;
|
||||
}
|
||||
|
||||
public get state(): number
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectMouseEvent } from './RoomObjectMouseEvent';
|
||||
|
||||
export class RoomObjectTileMouseEvent extends RoomObjectMouseEvent
|
||||
{
|
||||
private _tileX: number;
|
||||
private _tileY: number;
|
||||
private _tileZ: number;
|
||||
|
||||
constructor(type: string, object: IRoomObject, eventId: string, tileX: number, tileY: number, tileZ: number, altKey: boolean = false, ctrlKey: boolean = false, shiftKey: boolean = false, buttonDown: boolean = false)
|
||||
{
|
||||
super(type, object, eventId, altKey, ctrlKey, shiftKey, buttonDown);
|
||||
|
||||
this._tileX = tileX;
|
||||
this._tileY = tileY;
|
||||
this._tileZ = tileZ;
|
||||
}
|
||||
|
||||
public get tileX(): number
|
||||
{
|
||||
return this._tileX;
|
||||
}
|
||||
|
||||
public get tileY(): number
|
||||
{
|
||||
return this._tileY;
|
||||
}
|
||||
|
||||
public get tileZ(): number
|
||||
{
|
||||
return this._tileZ;
|
||||
}
|
||||
|
||||
public get tileXAsInt(): number
|
||||
{
|
||||
return Math.trunc(this._tileX + 0.499);
|
||||
}
|
||||
|
||||
public get tileYAsInt(): number
|
||||
{
|
||||
return Math.trunc(this._tileY + 0.499);
|
||||
}
|
||||
|
||||
public get tileZAsInt(): number
|
||||
{
|
||||
return Math.trunc(this._tileZ + 0.499);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
import { IRoomObject, IVector3D } from '@nitrots/api';
|
||||
import { Vector3d } from '@nitrots/utils';
|
||||
import { RoomObjectMouseEvent } from './RoomObjectMouseEvent';
|
||||
|
||||
export class RoomObjectWallMouseEvent extends RoomObjectMouseEvent
|
||||
{
|
||||
private _wallLocation: IVector3D;
|
||||
private _wallWd: IVector3D;
|
||||
private _wallHt: IVector3D;
|
||||
private _x: number;
|
||||
private _y: number;
|
||||
private _direction: number;
|
||||
|
||||
constructor(type: string, object: IRoomObject, eventId: string, wallLocation: IVector3D, wallWidth: IVector3D, wallHeight: IVector3D, x: number, y: number, direction: number, altKey: boolean = false, ctrlKey: boolean = false, shiftKey: boolean = false, buttonDown: boolean = false)
|
||||
{
|
||||
super(type, object, eventId, altKey, ctrlKey, shiftKey, buttonDown);
|
||||
|
||||
this._wallLocation = new Vector3d();
|
||||
this._wallWd = new Vector3d();
|
||||
this._wallHt = new Vector3d();
|
||||
|
||||
this._wallLocation.assign(wallLocation);
|
||||
this._wallWd.assign(wallWidth);
|
||||
this._wallHt.assign(wallHeight);
|
||||
|
||||
this._x = x;
|
||||
this._y = y;
|
||||
this._direction = direction;
|
||||
}
|
||||
|
||||
public get wallLocation(): IVector3D
|
||||
{
|
||||
return this._wallLocation;
|
||||
}
|
||||
|
||||
public get wallWidth(): IVector3D
|
||||
{
|
||||
return this._wallWd;
|
||||
}
|
||||
|
||||
public get wallHeight(): IVector3D
|
||||
{
|
||||
return this._wallHt;
|
||||
}
|
||||
|
||||
public get x(): number
|
||||
{
|
||||
return this._x;
|
||||
}
|
||||
|
||||
public get y(): number
|
||||
{
|
||||
return this._y;
|
||||
}
|
||||
|
||||
public get direction(): number
|
||||
{
|
||||
return this._direction;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import { IRoomObject } from '@nitrots/api';
|
||||
import { RoomObjectEvent } from './RoomObjectEvent';
|
||||
|
||||
export class RoomObjectWidgetRequestEvent extends RoomObjectEvent
|
||||
{
|
||||
public static OPEN_WIDGET: string = 'ROWRE_OPEN_WIDGET';
|
||||
public static CLOSE_WIDGET: string = 'ROWRE_CLOSE_WIDGET';
|
||||
public static OPEN_FURNI_CONTEXT_MENU: string = 'ROWRE_OPEN_FURNI_CONTEXT_MENU';
|
||||
public static CLOSE_FURNI_CONTEXT_MENU: string = 'ROWRE_CLOSE_FURNI_CONTEXT_MENU';
|
||||
public static PLACEHOLDER: string = 'ROWRE_PLACEHOLDER';
|
||||
public static CREDITFURNI: string = 'ROWRE_CREDITFURNI';
|
||||
public static STACK_HEIGHT: string = 'ROWRE_STACK_HEIGHT';
|
||||
public static EXTERNAL_IMAGE: string = 'ROWRE_EXTERNAL_IMAGE';
|
||||
public static STICKIE: string = 'ROWRE_STICKIE';
|
||||
public static PRESENT: string = 'ROWRE_PRESENT';
|
||||
public static TROPHY: string = 'ROWRE_TROPHY';
|
||||
public static TEASER: string = 'ROWRE_TEASER';
|
||||
public static ECOTRONBOX: string = 'ROWRE_ECOTRONBOX';
|
||||
public static DIMMER: string = 'ROWRE_DIMMER';
|
||||
public static WIDGET_REMOVE_DIMMER: string = 'ROWRE_WIDGET_REMOVE_DIMMER';
|
||||
public static CLOTHING_CHANGE: string = 'ROWRE_CLOTHING_CHANGE';
|
||||
public static JUKEBOX_PLAYLIST_EDITOR: string = 'ROWRE_JUKEBOX_PLAYLIST_EDITOR';
|
||||
public static MANNEQUIN: string = 'ROWRE_MANNEQUIN';
|
||||
public static PET_PRODUCT_MENU: string = 'ROWRE_PET_PRODUCT_MENU';
|
||||
public static GUILD_FURNI_CONTEXT_MENU: string = 'ROWRE_GUILD_FURNI_CONTEXT_MENU';
|
||||
public static MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG: string = 'ROWRE_MONSTERPLANT_SEED_PLANT_CONFIRMATION_DIALOG';
|
||||
public static PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG: string = 'ROWRE_PURCHASABLE_CLOTHING_CONFIRMATION_DIALOG';
|
||||
public static BACKGROUND_COLOR: string = 'ROWRE_BACKGROUND_COLOR';
|
||||
public static MYSTERYBOX_OPEN_DIALOG: string = 'ROWRE_MYSTERYBOX_OPEN_DIALOG';
|
||||
public static EFFECTBOX_OPEN_DIALOG: string = 'ROWRE_EFFECTBOX_OPEN_DIALOG';
|
||||
public static MYSTERYTROPHY_OPEN_DIALOG: string = 'ROWRE_MYSTERYTROPHY_OPEN_DIALOG';
|
||||
public static ACHIEVEMENT_RESOLUTION_OPEN: string = 'ROWRE_ACHIEVEMENT_RESOLUTION_OPEN';
|
||||
public static ACHIEVEMENT_RESOLUTION_ENGRAVING: string = 'ROWRE_ACHIEVEMENT_RESOLUTION_ENGRAVING';
|
||||
public static ACHIEVEMENT_RESOLUTION_FAILED: string = 'ROWRE_ACHIEVEMENT_RESOLUTION_FAILED';
|
||||
public static FRIEND_FURNITURE_CONFIRM: string = 'ROWRE_FRIEND_FURNITURE_CONFIRM';
|
||||
public static FRIEND_FURNITURE_ENGRAVING: string = 'ROWRE_FRIEND_FURNITURE_ENGRAVING';
|
||||
public static BADGE_DISPLAY_ENGRAVING: string = 'ROWRE_BADGE_DISPLAY_ENGRAVING';
|
||||
public static HIGH_SCORE_DISPLAY: string = 'ROWRE_HIGH_SCORE_DISPLAY';
|
||||
public static HIDE_HIGH_SCORE_DISPLAY: string = 'ROWRE_HIDE_HIGH_SCORE_DISPLAY';
|
||||
public static INERNAL_LINK: string = 'ROWRE_INTERNAL_LINK';
|
||||
public static ROOM_LINK: string = 'ROWRE_ROOM_LINK';
|
||||
public static YOUTUBE: string = 'ROWRE_YOUTUBE';
|
||||
|
||||
constructor(type: string, roomObject: IRoomObject)
|
||||
{
|
||||
super(type, roomObject);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
import { IRoomSpriteMouseEvent } from '@nitrots/api';
|
||||
|
||||
export class RoomSpriteMouseEvent implements IRoomSpriteMouseEvent
|
||||
{
|
||||
private _type: string;
|
||||
private _eventId: string;
|
||||
private _canvasId: string;
|
||||
private _spriteTag: string;
|
||||
private _screenX: number;
|
||||
private _screenY: number;
|
||||
private _localX: number;
|
||||
private _localY: number;
|
||||
private _ctrlKey: boolean;
|
||||
private _altKey: boolean;
|
||||
private _shiftKey: boolean;
|
||||
private _buttonDown: boolean;
|
||||
private _spriteOffsetX: number;
|
||||
private _spriteOffsetY: number;
|
||||
|
||||
constructor(type: string, eventId: string, canvasId: string, spriteTag: string, screenX: number, screenY: number, localX: number = 0, localY: number = 0, ctrlKey: boolean = false, altKey: boolean = false, shiftKey: boolean = false, buttonDown: boolean = false)
|
||||
{
|
||||
this._type = type;
|
||||
this._eventId = eventId;
|
||||
this._canvasId = canvasId;
|
||||
this._spriteTag = spriteTag;
|
||||
this._screenX = screenX;
|
||||
this._screenY = screenY;
|
||||
this._localX = localX;
|
||||
this._localY = localY;
|
||||
this._ctrlKey = ctrlKey;
|
||||
this._altKey = altKey;
|
||||
this._shiftKey = shiftKey;
|
||||
this._buttonDown = buttonDown;
|
||||
this._spriteOffsetX = 0;
|
||||
this._spriteOffsetY = 0;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
public get eventId(): string
|
||||
{
|
||||
return this._eventId;
|
||||
}
|
||||
|
||||
public get canvasId(): string
|
||||
{
|
||||
return this._canvasId;
|
||||
}
|
||||
|
||||
public get spriteTag(): string
|
||||
{
|
||||
return this._spriteTag;
|
||||
}
|
||||
|
||||
public get screenX(): number
|
||||
{
|
||||
return this._screenX;
|
||||
}
|
||||
|
||||
public get screenY(): number
|
||||
{
|
||||
return this._screenY;
|
||||
}
|
||||
|
||||
public get localX(): number
|
||||
{
|
||||
return this._localX;
|
||||
}
|
||||
|
||||
public get localY(): number
|
||||
{
|
||||
return this._localY;
|
||||
}
|
||||
|
||||
public get ctrlKey(): boolean
|
||||
{
|
||||
return this._ctrlKey;
|
||||
}
|
||||
|
||||
public get altKey(): boolean
|
||||
{
|
||||
return this._altKey;
|
||||
}
|
||||
|
||||
public get shiftKey(): boolean
|
||||
{
|
||||
return this._shiftKey;
|
||||
}
|
||||
|
||||
public get buttonDown(): boolean
|
||||
{
|
||||
return this._buttonDown;
|
||||
}
|
||||
|
||||
public get spriteOffsetX(): number
|
||||
{
|
||||
return this._spriteOffsetX;
|
||||
}
|
||||
|
||||
public set spriteOffsetX(k: number)
|
||||
{
|
||||
this._spriteOffsetX = k;
|
||||
}
|
||||
|
||||
public get spriteOffsetY(): number
|
||||
{
|
||||
return this._spriteOffsetY;
|
||||
}
|
||||
|
||||
public set spriteOffsetY(k: number)
|
||||
{
|
||||
this._spriteOffsetY = k;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { NitroEvent } from '../core';
|
||||
|
||||
export class RoomToObjectEvent extends NitroEvent
|
||||
{
|
||||
public constructor(type: string)
|
||||
{
|
||||
super(type);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { IVector3D } from '@nitrots/api';
|
||||
import { RoomToObjectEvent } from './RoomToObjectEvent';
|
||||
|
||||
export class RoomToObjectOwnAvatarMoveEvent extends RoomToObjectEvent
|
||||
{
|
||||
public static ROAME_MOVE_TO: string = 'ROAME_MOVE_TO';
|
||||
|
||||
private _targetLocation: IVector3D;
|
||||
|
||||
constructor(type: string, targetLocation: IVector3D)
|
||||
{
|
||||
super(type);
|
||||
|
||||
this._targetLocation = targetLocation;
|
||||
}
|
||||
|
||||
public get targetLocation(): IVector3D
|
||||
{
|
||||
return this._targetLocation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import { RoomEngineEvent } from './RoomEngineEvent';
|
||||
|
||||
export class RoomZoomEvent extends RoomEngineEvent
|
||||
{
|
||||
public static ROOM_ZOOM: string = 'REE_ROOM_ZOOM';
|
||||
|
||||
private _level: number;
|
||||
private _forceFlip: boolean;
|
||||
private _asDelta: boolean;
|
||||
|
||||
constructor(roomId: number, level: number, forceFlip: boolean = false, asDelta: boolean = false)
|
||||
{
|
||||
super(RoomZoomEvent.ROOM_ZOOM, roomId);
|
||||
|
||||
this._level = level;
|
||||
this._forceFlip = forceFlip;
|
||||
this._asDelta = asDelta;
|
||||
}
|
||||
|
||||
public get level(): number
|
||||
{
|
||||
return this._level;
|
||||
}
|
||||
|
||||
public get forceFlip(): boolean
|
||||
{
|
||||
return this._forceFlip;
|
||||
}
|
||||
|
||||
public get asDelta(): boolean
|
||||
{
|
||||
return this._asDelta;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
export * from './RoomBackgroundColorEvent';
|
||||
export * from './RoomContentLoadedEvent';
|
||||
export * from './RoomDragEvent';
|
||||
export * from './RoomEngineDimmerStateEvent';
|
||||
export * from './RoomEngineEvent';
|
||||
export * from './RoomEngineObjectEvent';
|
||||
export * from './RoomEngineObjectPlacedEvent';
|
||||
export * from './RoomEngineObjectPlacedOnUserEvent';
|
||||
export * from './RoomEngineObjectPlaySoundEvent';
|
||||
export * from './RoomEngineRoomAdEvent';
|
||||
export * from './RoomEngineSamplePlaybackEvent';
|
||||
export * from './RoomEngineTriggerWidgetEvent';
|
||||
export * from './RoomEngineUseProductEvent';
|
||||
export * from './RoomObjectBadgeAssetEvent';
|
||||
export * from './RoomObjectDataRequestEvent';
|
||||
export * from './RoomObjectDimmerStateUpdateEvent';
|
||||
export * from './RoomObjectEvent';
|
||||
export * from './RoomObjectFloorHoleEvent';
|
||||
export * from './RoomObjectFurnitureActionEvent';
|
||||
export * from './RoomObjectHSLColorEnableEvent';
|
||||
export * from './RoomObjectHSLColorEnabledEvent';
|
||||
export * from './RoomObjectMouseEvent';
|
||||
export * from './RoomObjectMoveEvent';
|
||||
export * from './RoomObjectPlaySoundIdEvent';
|
||||
export * from './RoomObjectRoomAdEvent';
|
||||
export * from './RoomObjectSamplePlaybackEvent';
|
||||
export * from './RoomObjectSoundMachineEvent';
|
||||
export * from './RoomObjectStateChangedEvent';
|
||||
export * from './RoomObjectTileMouseEvent';
|
||||
export * from './RoomObjectWallMouseEvent';
|
||||
export * from './RoomObjectWidgetRequestEvent';
|
||||
export * from './RoomSpriteMouseEvent';
|
||||
export * from './RoomToObjectEvent';
|
||||
export * from './RoomToObjectOwnAvatarMoveEvent';
|
||||
export * from './RoomZoomEvent';
|
||||
Reference in New Issue
Block a user