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,21 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectAdUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static IMAGE_LOADED: string = 'ROAUM_IMAGE_LOADED';
|
||||
public static IMAGE_LOADING_FAILED: string = 'ROAUM_IMAGE_FAILED';
|
||||
|
||||
private _type: string;
|
||||
|
||||
constructor(type: string)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._type = type;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarCarryObjectUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _itemType: number;
|
||||
private _itemName: string;
|
||||
|
||||
constructor(itemType: number, itemName: string)
|
||||
{
|
||||
super();
|
||||
|
||||
this._itemType = itemType;
|
||||
this._itemName = itemName;
|
||||
}
|
||||
|
||||
public get itemType(): number
|
||||
{
|
||||
return this._itemType;
|
||||
}
|
||||
|
||||
public get itemName(): string
|
||||
{
|
||||
return this._itemName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarChatUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _numberOfWords: number;
|
||||
|
||||
constructor(numberOfWords: number = 0)
|
||||
{
|
||||
super();
|
||||
|
||||
this._numberOfWords = numberOfWords;
|
||||
}
|
||||
|
||||
public get numberOfWords(): number
|
||||
{
|
||||
return this._numberOfWords;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarDanceUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _danceStyle: number;
|
||||
|
||||
constructor(danceStyle: number = 0)
|
||||
{
|
||||
super();
|
||||
|
||||
this._danceStyle = danceStyle;
|
||||
}
|
||||
|
||||
public get danceStyle(): number
|
||||
{
|
||||
return this._danceStyle;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarEffectUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _effect: number;
|
||||
private _delayMilliseconds: number;
|
||||
|
||||
constructor(effect: number, delayMilliseconds: number = 0)
|
||||
{
|
||||
super();
|
||||
|
||||
this._effect = effect;
|
||||
this._delayMilliseconds = delayMilliseconds;
|
||||
}
|
||||
|
||||
public get effect(): number
|
||||
{
|
||||
return this._effect;
|
||||
}
|
||||
|
||||
public get delayMilliseconds(): number
|
||||
{
|
||||
return this._delayMilliseconds;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarExperienceUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _gainedExperience: number;
|
||||
|
||||
constructor(amount: number)
|
||||
{
|
||||
super();
|
||||
|
||||
this._gainedExperience = amount;
|
||||
}
|
||||
|
||||
public get gainedExperience(): number
|
||||
{
|
||||
return this._gainedExperience;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarExpressionUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _expressionType: number;
|
||||
|
||||
constructor(expressionType: number = 0)
|
||||
{
|
||||
super();
|
||||
|
||||
this._expressionType = expressionType;
|
||||
}
|
||||
|
||||
public get expressionType(): number
|
||||
{
|
||||
return this._expressionType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarFigureUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _figure: string;
|
||||
private _gender: string;
|
||||
private _subType: string;
|
||||
private _isRiding: boolean;
|
||||
|
||||
constructor(figure: string, gender: string = null, subType: string = null, isRiding: boolean = false)
|
||||
{
|
||||
super();
|
||||
|
||||
this._figure = figure;
|
||||
this._gender = gender;
|
||||
this._subType = subType;
|
||||
this._isRiding = isRiding;
|
||||
}
|
||||
|
||||
public get figure(): string
|
||||
{
|
||||
return this._figure;
|
||||
}
|
||||
|
||||
public get gender(): string
|
||||
{
|
||||
return this._gender;
|
||||
}
|
||||
|
||||
public get subType(): string
|
||||
{
|
||||
return this._subType;
|
||||
}
|
||||
|
||||
public get isRiding(): boolean
|
||||
{
|
||||
return this._isRiding;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarFlatControlUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _level: number;
|
||||
|
||||
constructor(level: number = 0)
|
||||
{
|
||||
super();
|
||||
|
||||
this._level = level;
|
||||
}
|
||||
|
||||
public get level(): number
|
||||
{
|
||||
return this._level;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarGestureUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _gesture: number;
|
||||
|
||||
constructor(gesture: number = 0)
|
||||
{
|
||||
super();
|
||||
|
||||
this._gesture = gesture;
|
||||
}
|
||||
|
||||
public get gesture(): number
|
||||
{
|
||||
return this._gesture;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarGuideStatusUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _guideStatus: number;
|
||||
|
||||
constructor(value: number)
|
||||
{
|
||||
super();
|
||||
|
||||
this._guideStatus = value;
|
||||
}
|
||||
|
||||
public get guideStatus(): number
|
||||
{
|
||||
return this._guideStatus;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarMutedUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _isMuted: boolean;
|
||||
|
||||
constructor(isMuted: boolean = false)
|
||||
{
|
||||
super();
|
||||
|
||||
this._isMuted = isMuted;
|
||||
}
|
||||
|
||||
public get isMuted(): boolean
|
||||
{
|
||||
return this._isMuted;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarOwnMessage extends ObjectStateUpdateMessage
|
||||
{}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarPetGestureUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _gesture: string;
|
||||
|
||||
constructor(gesture: string)
|
||||
{
|
||||
super();
|
||||
|
||||
this._gesture = gesture;
|
||||
}
|
||||
|
||||
public get gesture(): string
|
||||
{
|
||||
return this._gesture;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarPlayerValueUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _value: number;
|
||||
|
||||
constructor(value: number)
|
||||
{
|
||||
super();
|
||||
|
||||
this._value = value;
|
||||
}
|
||||
|
||||
public get value(): number
|
||||
{
|
||||
return this._value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarPlayingGameUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _isPlayingGame: boolean;
|
||||
|
||||
constructor(flag: boolean)
|
||||
{
|
||||
super();
|
||||
|
||||
this._isPlayingGame = flag;
|
||||
}
|
||||
|
||||
public get isPlayingGame(): boolean
|
||||
{
|
||||
return this._isPlayingGame;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarPostureUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _postureType: string;
|
||||
private _parameter: string;
|
||||
|
||||
constructor(postureType: string, parameter: string = '')
|
||||
{
|
||||
super();
|
||||
|
||||
this._postureType = postureType;
|
||||
this._parameter = parameter;
|
||||
}
|
||||
|
||||
public get postureType(): string
|
||||
{
|
||||
return this._postureType;
|
||||
}
|
||||
|
||||
public get parameter(): string
|
||||
{
|
||||
return this._parameter;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarSelectedMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _selected: boolean;
|
||||
|
||||
constructor(selected: boolean)
|
||||
{
|
||||
super();
|
||||
|
||||
this._selected = selected;
|
||||
}
|
||||
|
||||
public get selected(): boolean
|
||||
{
|
||||
return this._selected;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarSignUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _signType: number;
|
||||
|
||||
constructor(signType: number = 0)
|
||||
{
|
||||
super();
|
||||
|
||||
this._signType = signType;
|
||||
}
|
||||
|
||||
public get signType(): number
|
||||
{
|
||||
return this._signType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarSleepUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _isSleeping: boolean;
|
||||
|
||||
constructor(isSleeping: boolean = false)
|
||||
{
|
||||
super();
|
||||
|
||||
this._isSleeping = isSleeping;
|
||||
}
|
||||
|
||||
public get isSleeping(): boolean
|
||||
{
|
||||
return this._isSleeping;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarTypingUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _isTyping: boolean;
|
||||
|
||||
constructor(isTyping: boolean = false)
|
||||
{
|
||||
super();
|
||||
|
||||
this._isTyping = isTyping;
|
||||
}
|
||||
|
||||
public get isTyping(): boolean
|
||||
{
|
||||
return this._isTyping;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { IVector3D } from '@nitrots/api';
|
||||
import { ObjectMoveUpdateMessage } from './ObjectMoveUpdateMessage';
|
||||
|
||||
export class ObjectAvatarUpdateMessage extends ObjectMoveUpdateMessage
|
||||
{
|
||||
private _headDirection: number;
|
||||
private _canStandUp: boolean;
|
||||
private _baseY: number;
|
||||
|
||||
constructor(location: IVector3D, targetLocation: IVector3D, direction: IVector3D, headDirection: number, canStandUp: boolean, baseY: number)
|
||||
{
|
||||
super(location, targetLocation, direction);
|
||||
|
||||
this._headDirection = headDirection;
|
||||
this._canStandUp = canStandUp;
|
||||
this._baseY = baseY;
|
||||
}
|
||||
|
||||
public get headDirection(): number
|
||||
{
|
||||
return this._headDirection;
|
||||
}
|
||||
|
||||
public get canStandUp(): boolean
|
||||
{
|
||||
return this._canStandUp;
|
||||
}
|
||||
|
||||
public get baseY(): number
|
||||
{
|
||||
return this._baseY;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectAvatarUseObjectUpdateMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _itemType: number;
|
||||
|
||||
constructor(itemType: number)
|
||||
{
|
||||
super();
|
||||
|
||||
this._itemType = itemType;
|
||||
}
|
||||
|
||||
public get itemType(): number
|
||||
{
|
||||
return this._itemType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { IObjectData } from '@nitrots/api';
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectDataUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
private _state: number;
|
||||
private _data: IObjectData;
|
||||
private _extra: number;
|
||||
|
||||
constructor(state: number, data: IObjectData, extra: number = null)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._state = state;
|
||||
this._data = data;
|
||||
this._extra = extra;
|
||||
}
|
||||
|
||||
public get state(): number
|
||||
{
|
||||
return this._state;
|
||||
}
|
||||
|
||||
public get data(): IObjectData
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public get extra(): number
|
||||
{
|
||||
return this._extra;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectGroupBadgeUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static BADGE_LOADED: string = 'ROGBUM_BADGE_LOADED';
|
||||
|
||||
private _badgeId: string;
|
||||
private _assetName: string;
|
||||
|
||||
constructor(badgeId: string, assetName: string)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._badgeId = badgeId;
|
||||
this._assetName = assetName;
|
||||
}
|
||||
|
||||
public get badgeId(): string
|
||||
{
|
||||
return this._badgeId;
|
||||
}
|
||||
|
||||
public get assetName(): string
|
||||
{
|
||||
return this._assetName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import { IVector3D } from '@nitrots/api';
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectHeightUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
private _height: number;
|
||||
|
||||
constructor(location: IVector3D, direction: IVector3D, height: number)
|
||||
{
|
||||
super(location, direction);
|
||||
|
||||
this._height = height;
|
||||
}
|
||||
|
||||
public get height(): number
|
||||
{
|
||||
return this._height;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectItemDataUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
private _data: string;
|
||||
|
||||
constructor(data: string)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._data = data;
|
||||
}
|
||||
|
||||
public get data(): string
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectModelDataUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
private _numberKey: string;
|
||||
private _numberValue: number;
|
||||
|
||||
constructor(numberKey: string, numberValue: number)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._numberKey = numberKey;
|
||||
this._numberValue = numberValue;
|
||||
}
|
||||
|
||||
public get numberKey(): string
|
||||
{
|
||||
return this._numberKey;
|
||||
}
|
||||
|
||||
public get numberValue(): number
|
||||
{
|
||||
return this._numberValue;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { IVector3D } from '@nitrots/api';
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectMoveUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
private _targetLocation: IVector3D;
|
||||
private _isSlide: boolean;
|
||||
|
||||
constructor(location: IVector3D, targetLocation: IVector3D, direction: IVector3D, isSlide: boolean = false)
|
||||
{
|
||||
super(location, direction);
|
||||
|
||||
this._targetLocation = targetLocation;
|
||||
this._isSlide = isSlide;
|
||||
}
|
||||
|
||||
public get targetLocation(): IVector3D
|
||||
{
|
||||
if(!this._targetLocation) return this.location;
|
||||
|
||||
return this._targetLocation;
|
||||
}
|
||||
|
||||
public get isSlide(): boolean
|
||||
{
|
||||
return this._isSlide;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectRoomColorUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static BACKGROUND_COLOR: string = 'RORCUM_BACKGROUND_COLOR';
|
||||
|
||||
private _type: string;
|
||||
private _color: number;
|
||||
private _light: number;
|
||||
private _backgroundOnly: boolean;
|
||||
|
||||
constructor(type: string, color: number, light: number, backgroundOnly: boolean)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._type = type;
|
||||
this._color = color;
|
||||
this._light = light;
|
||||
this._backgroundOnly = backgroundOnly;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
public get color(): number
|
||||
{
|
||||
return this._color;
|
||||
}
|
||||
|
||||
public get light(): number
|
||||
{
|
||||
return this._light;
|
||||
}
|
||||
|
||||
public get backgroundOnly(): boolean
|
||||
{
|
||||
return this._backgroundOnly;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectRoomFloorHoleUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static ADD: string = 'ORPFHUM_ADD';
|
||||
public static REMOVE: string = 'ORPFHUM_REMOVE';
|
||||
|
||||
private _type: string;
|
||||
private _id: number;
|
||||
private _x: number;
|
||||
private _y: number;
|
||||
private _width: number;
|
||||
private _height: number;
|
||||
|
||||
constructor(type: string, id: number, x: number = 0, y: number = 0, width: number = 0, height: number = 0)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._type = type;
|
||||
this._id = id;
|
||||
this._x = x;
|
||||
this._y = y;
|
||||
this._width = width;
|
||||
this._height = height;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
public get id(): number
|
||||
{
|
||||
return this._id;
|
||||
}
|
||||
|
||||
public get x(): number
|
||||
{
|
||||
return this._x;
|
||||
}
|
||||
|
||||
public get y(): number
|
||||
{
|
||||
return this._y;
|
||||
}
|
||||
|
||||
public get width(): number
|
||||
{
|
||||
return this._width;
|
||||
}
|
||||
|
||||
public get height(): number
|
||||
{
|
||||
return this._height;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { RoomMapData } from '../object';
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectRoomMapUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static UPDATE_MAP: string = 'RORMUM_UPDATE_MAP';
|
||||
|
||||
private _type: string;
|
||||
private _mapData: RoomMapData;
|
||||
|
||||
constructor(mapData: RoomMapData)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._type = ObjectRoomMapUpdateMessage.UPDATE_MAP;
|
||||
this._mapData = mapData;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
public get mapData(): RoomMapData
|
||||
{
|
||||
return this._mapData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import { IVector3D } from '@nitrots/api';
|
||||
import { Vector3d } from '@nitrots/utils';
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectRoomMaskUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static ADD_MASK: string = 'RORMUM_ADD_MASK';
|
||||
public static REMOVE_MASK: string = 'RORMUM_ADD_MASK';
|
||||
public static DOOR: string = 'door';
|
||||
public static WINDOW: string = 'window';
|
||||
public static HOLE: string = 'hole';
|
||||
|
||||
private _type: string;
|
||||
private _maskId: string;
|
||||
private _maskType: string;
|
||||
private _maskLocation: IVector3D;
|
||||
private _maskCategory: string;
|
||||
|
||||
constructor(type: string, maskId: string, maskType: string = null, maskLocation: IVector3D = null, maskCategory: string = 'window')
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._type = type;
|
||||
this._maskId = maskId;
|
||||
this._maskType = maskType;
|
||||
this._maskLocation = maskLocation ? new Vector3d(maskLocation.x, maskLocation.y, maskLocation.z) : null;
|
||||
this._maskCategory = maskCategory;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
public get maskId(): string
|
||||
{
|
||||
return this._maskId;
|
||||
}
|
||||
|
||||
public get maskType(): string
|
||||
{
|
||||
return this._maskType;
|
||||
}
|
||||
|
||||
public get maskLocation(): IVector3D
|
||||
{
|
||||
return this._maskLocation;
|
||||
}
|
||||
|
||||
public get maskCategory(): string
|
||||
{
|
||||
return this._maskCategory;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectRoomPlanePropertyUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static WALL_THICKNESS: string = 'RORPPUM_WALL_THICKNESS';
|
||||
public static FLOOR_THICKNESS: string = 'RORPVUM_FLOOR_THICKNESS';
|
||||
|
||||
private _type: string;
|
||||
private _value: number;
|
||||
|
||||
constructor(type: string, value: number)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._type = type;
|
||||
this._value = value;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
public get value(): number
|
||||
{
|
||||
return this._value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectRoomPlaneVisibilityUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static WALL_VISIBILITY: string = 'RORPVUM_WALL_VISIBILITY';
|
||||
public static FLOOR_VISIBILITY: string = 'RORPVUM_FLOOR_VISIBILITY';
|
||||
|
||||
private _type: string;
|
||||
private _visible: boolean;
|
||||
|
||||
constructor(type: string, visible: boolean)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._type = type;
|
||||
this._visible = visible;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
public get visible(): boolean
|
||||
{
|
||||
return this._visible;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectRoomUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static ROOM_WALL_UPDATE: string = 'RORUM_ROOM_WALL_UPDATE';
|
||||
public static ROOM_FLOOR_UPDATE: string = 'RORUM_ROOM_FLOOR_UPDATE';
|
||||
public static ROOM_LANDSCAPE_UPDATE: string = 'RORUM_ROOM_LANDSCAPE_UPDATE';
|
||||
|
||||
private _type: string;
|
||||
private _value: string;
|
||||
|
||||
constructor(type: string, value: string)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._type = type;
|
||||
this._value = value;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
public get value(): string
|
||||
{
|
||||
return this._value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { ObjectStateUpdateMessage } from './ObjectStateUpdateMessage';
|
||||
|
||||
export class ObjectSelectedMessage extends ObjectStateUpdateMessage
|
||||
{
|
||||
private _selected: boolean;
|
||||
|
||||
constructor(selected: boolean)
|
||||
{
|
||||
super();
|
||||
|
||||
this._selected = selected;
|
||||
}
|
||||
|
||||
public get selected(): boolean
|
||||
{
|
||||
return this._selected;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectStateUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
constructor()
|
||||
{
|
||||
super(null, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { RoomObjectUpdateMessage } from './RoomObjectUpdateMessage';
|
||||
|
||||
export class ObjectVisibilityUpdateMessage extends RoomObjectUpdateMessage
|
||||
{
|
||||
public static ENABLED: string = 'ROVUM_ENABLED';
|
||||
public static DISABLED: string = 'ROVUM_DISABLED';
|
||||
|
||||
private _type: string;
|
||||
|
||||
constructor(type: string)
|
||||
{
|
||||
super(null, null);
|
||||
|
||||
this._type = type;
|
||||
}
|
||||
|
||||
public get type(): string
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { IVector3D } from '@nitrots/api';
|
||||
|
||||
export class RoomObjectUpdateMessage
|
||||
{
|
||||
private _location: IVector3D;
|
||||
private _direction: IVector3D;
|
||||
|
||||
constructor(location: IVector3D, direction: IVector3D)
|
||||
{
|
||||
this._location = location;
|
||||
this._direction = direction;
|
||||
}
|
||||
|
||||
public get location(): IVector3D
|
||||
{
|
||||
return this._location;
|
||||
}
|
||||
|
||||
public get direction(): IVector3D
|
||||
{
|
||||
return this._direction;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
export * from './ObjectAdUpdateMessage';
|
||||
export * from './ObjectAvatarCarryObjectUpdateMessage';
|
||||
export * from './ObjectAvatarChatUpdateMessage';
|
||||
export * from './ObjectAvatarDanceUpdateMessage';
|
||||
export * from './ObjectAvatarEffectUpdateMessage';
|
||||
export * from './ObjectAvatarExperienceUpdateMessage';
|
||||
export * from './ObjectAvatarExpressionUpdateMessage';
|
||||
export * from './ObjectAvatarFigureUpdateMessage';
|
||||
export * from './ObjectAvatarFlatControlUpdateMessage';
|
||||
export * from './ObjectAvatarGestureUpdateMessage';
|
||||
export * from './ObjectAvatarGuideStatusUpdateMessage';
|
||||
export * from './ObjectAvatarMutedUpdateMessage';
|
||||
export * from './ObjectAvatarOwnMessage';
|
||||
export * from './ObjectAvatarPetGestureUpdateMessage';
|
||||
export * from './ObjectAvatarPlayerValueUpdateMessage';
|
||||
export * from './ObjectAvatarPlayingGameUpdateMessage';
|
||||
export * from './ObjectAvatarPostureUpdateMessage';
|
||||
export * from './ObjectAvatarSelectedMessage';
|
||||
export * from './ObjectAvatarSignUpdateMessage';
|
||||
export * from './ObjectAvatarSleepUpdateMessage';
|
||||
export * from './ObjectAvatarTypingUpdateMessage';
|
||||
export * from './ObjectAvatarUpdateMessage';
|
||||
export * from './ObjectAvatarUseObjectUpdateMessage';
|
||||
export * from './ObjectDataUpdateMessage';
|
||||
export * from './ObjectGroupBadgeUpdateMessage';
|
||||
export * from './ObjectHeightUpdateMessage';
|
||||
export * from './ObjectItemDataUpdateMessage';
|
||||
export * from './ObjectModelDataUpdateMessage';
|
||||
export * from './ObjectMoveUpdateMessage';
|
||||
export * from './ObjectRoomColorUpdateMessage';
|
||||
export * from './ObjectRoomFloorHoleUpdateMessage';
|
||||
export * from './ObjectRoomMapUpdateMessage';
|
||||
export * from './ObjectRoomMaskUpdateMessage';
|
||||
export * from './ObjectRoomPlanePropertyUpdateMessage';
|
||||
export * from './ObjectRoomPlaneVisibilityUpdateMessage';
|
||||
export * from './ObjectRoomUpdateMessage';
|
||||
export * from './ObjectSelectedMessage';
|
||||
export * from './ObjectStateUpdateMessage';
|
||||
export * from './ObjectTileCursorUpdateMessage';
|
||||
export * from './ObjectVisibilityUpdateMessage';
|
||||
export * from './RoomObjectUpdateMessage';
|
||||
Reference in New Issue
Block a user