Eslint remove extra spaces

This commit is contained in:
Bill 2022-03-02 19:21:30 -05:00
parent 9adc09897d
commit 0d805b3b36
507 changed files with 5949 additions and 5946 deletions

View File

@ -24,6 +24,9 @@
"SwitchCase": 1 "SwitchCase": 1
} }
], ],
"no-multi-spaces": [
"error"
],
"no-trailing-spaces": [ "no-trailing-spaces": [
"error", "error",
{ {

View File

@ -22,7 +22,7 @@ export class NitroCore extends Disposable implements INitroCore
this._configuration = new ConfigurationManager(); this._configuration = new ConfigurationManager();
this._communication = new CommunicationManager(); this._communication = new CommunicationManager();
this._asset = new AssetManager(); this._asset = new AssetManager();
} }
protected onDispose(): void protected onDispose(): void

View File

@ -1,5 +1,5 @@
export class NitroVersion export class NitroVersion
{ {
public static RENDERER_VERSION: string = '1.1.5'; public static RENDERER_VERSION: string = '1.1.5';
public static UI_VERSION: string = ''; public static UI_VERSION: string = '';
} }

View File

@ -21,9 +21,9 @@ export class AssetManager extends Disposable implements IAssetManager
{ {
super(); super();
this._logger = new NitroLogger(this.constructor.name); this._logger = new NitroLogger(this.constructor.name);
this._textures = new Map(); this._textures = new Map();
this._collections = new Map(); this._collections = new Map();
} }
public static removeFileExtension(name: string): string public static removeFileExtension(name: string): string
@ -167,8 +167,8 @@ export class AssetManager extends Disposable implements IAssetManager
if(resource.extension === 'nitro') if(resource.extension === 'nitro')
{ {
const nitroBundle = new NitroBundle(resource.data); const nitroBundle = new NitroBundle(resource.data);
const assetData = (nitroBundle.jsonFile as IAssetData); const assetData = (nitroBundle.jsonFile as IAssetData);
if(!assetData) if(!assetData)
{ {

View File

@ -21,7 +21,7 @@ export class NitroBundle
let binary = ''; let binary = '';
const bytes = new Uint8Array(buffer); const bytes = new Uint8Array(buffer);
const len = bytes.byteLength; const len = bytes.byteLength;
for(let i = 0; i < len; i++) (binary += String.fromCharCode(bytes[i])); for(let i = 0; i < len; i++) (binary += String.fromCharCode(bytes[i]));
@ -36,10 +36,10 @@ export class NitroBundle
while(fileCount > 0) while(fileCount > 0)
{ {
const fileNameLength = binaryReader.readShort(); const fileNameLength = binaryReader.readShort();
const fileName = binaryReader.readBytes(fileNameLength).toString(); const fileName = binaryReader.readBytes(fileNameLength).toString();
const fileLength = binaryReader.readInt(); const fileLength = binaryReader.readInt();
const buffer = binaryReader.readBytes(fileLength); const buffer = binaryReader.readBytes(fileLength);
if(fileName.endsWith('.json')) if(fileName.endsWith('.json'))
{ {
@ -49,8 +49,8 @@ export class NitroBundle
} }
else else
{ {
const decompressed = inflate((buffer.toArrayBuffer() as Data)); const decompressed = inflate((buffer.toArrayBuffer() as Data));
const base64 = NitroBundle.arrayBufferToBase64(decompressed); const base64 = NitroBundle.arrayBufferToBase64(decompressed);
this._baseTexture = new BaseTexture('data:image/png;base64,' + base64); this._baseTexture = new BaseTexture('data:image/png;base64,' + base64);
} }

View File

@ -18,24 +18,24 @@ export class NitroManager extends Disposable implements INitroManager
{ {
super(); super();
this._logger = logger instanceof NitroLogger ? logger : new NitroLogger(this.constructor.name); this._logger = logger instanceof NitroLogger ? logger : new NitroLogger(this.constructor.name);
this._events = new EventDispatcher(); this._events = new EventDispatcher();
this._isLoaded = false; this._isLoaded = false;
this._isLoading = false; this._isLoading = false;
} }
public init(): void public init(): void
{ {
if(this._isLoaded || this._isLoading || this.isDisposing) return; if(this._isLoaded || this._isLoading || this.isDisposing) return;
this._isLoading = true; this._isLoading = true;
this.onInit(); this.onInit();
this._isLoaded = true; this._isLoaded = true;
this._isLoading = false; this._isLoading = false;
} }
protected onInit(): void protected onInit(): void

View File

@ -7,20 +7,20 @@ export class Disposable implements IDisposable
constructor() constructor()
{ {
this._isDisposed = false; this._isDisposed = false;
this._isDisposing = false; this._isDisposing = false;
} }
public dispose(): void public dispose(): void
{ {
if(this._isDisposed || this._isDisposing) return; if(this._isDisposed || this._isDisposing) return;
this._isDisposing = true; this._isDisposing = true;
this.onDispose(); this.onDispose();
this._isDisposed = true; this._isDisposed = true;
this._isDisposing = false; this._isDisposing = false;
} }
protected onDispose(): void protected onDispose(): void

View File

@ -10,9 +10,9 @@ export class NitroLogger implements INitroLogger
constructor(name: string, description: string | number = null) constructor(name: string, description: string | number = null)
{ {
this._name = name; this._name = name;
this._description = description; this._description = description;
this._print = true; this._print = true;
} }
public log(message: string): void public log(message: string): void

View File

@ -76,7 +76,7 @@ export class BinaryWriter
{ {
if(!array) return; if(!array) return;
const mergedArray = new Uint8Array( ((this.position + array.length) > this._buffer.length) ? (this.position + array.length) : this._buffer.length); const mergedArray = new Uint8Array( ((this.position + array.length) > this._buffer.length) ? (this.position + array.length) : this._buffer.length);
mergedArray.set(this._buffer); mergedArray.set(this._buffer);
mergedArray.set(array, this.position); mergedArray.set(array, this.position);

View File

@ -8,8 +8,8 @@ export class EvaWireDataWrapper implements IMessageDataWrapper
constructor(header: number, buffer: BinaryReader) constructor(header: number, buffer: BinaryReader)
{ {
this._header = header; this._header = header;
this._buffer = buffer; this._buffer = buffer;
} }
public readBytes(length: number): BinaryReader public readBytes(length: number): BinaryReader
@ -61,8 +61,8 @@ export class EvaWireDataWrapper implements IMessageDataWrapper
public readString(): string public readString(): string
{ {
const length = this.readShort(); const length = this.readShort();
const buffer = this._buffer.readBytes(length); const buffer = this._buffer.readBytes(length);
return buffer.toString('utf8'); return buffer.toString('utf8');
} }

View File

@ -21,8 +21,8 @@ export class EvaWireFormat implements ICodec
if(type === 'object') if(type === 'object')
{ {
if(value === null) type = 'null'; if(value === null) type = 'null';
else if(value instanceof Byte) type = 'byte'; else if(value instanceof Byte) type = 'byte';
else if(value instanceof Short) type = 'short'; else if(value instanceof Short) type = 'short';
else if(value instanceof ArrayBuffer) type = 'arraybuffer'; else if(value instanceof ArrayBuffer) type = 'arraybuffer';
} }
@ -75,7 +75,7 @@ export class EvaWireFormat implements ICodec
if(connection.dataBuffer.byteLength < 4) break; if(connection.dataBuffer.byteLength < 4) break;
const container = new BinaryReader(connection.dataBuffer); const container = new BinaryReader(connection.dataBuffer);
const length = container.readInt(); const length = container.readInt();
if(length > (connection.dataBuffer.byteLength - 4)) break; if(length > (connection.dataBuffer.byteLength - 4)) break;

View File

@ -33,23 +33,23 @@ export class SocketConnection extends EventDispatcher implements IConnection
{ {
super(); super();
this._communicationManager = communicationManager; this._communicationManager = communicationManager;
this._stateListener = stateListener; this._stateListener = stateListener;
this._socket = null; this._socket = null;
this._messages = new MessageClassManager(); this._messages = new MessageClassManager();
this._codec = new EvaWireFormat(); this._codec = new EvaWireFormat();
this._dataBuffer = null; this._dataBuffer = null;
this._isReady = false; this._isReady = false;
this._pendingClientMessages = []; this._pendingClientMessages = [];
this._pendingServerMessages = []; this._pendingServerMessages = [];
this._isAuthenticated = false; this._isAuthenticated = false;
this.onOpen = this.onOpen.bind(this); this.onOpen = this.onOpen.bind(this);
this.onClose = this.onClose.bind(this); this.onClose = this.onClose.bind(this);
this.onError = this.onError.bind(this); this.onError = this.onError.bind(this);
this.onMessage = this.onMessage.bind(this); this.onMessage = this.onMessage.bind(this);
} }
public init(socketUrl: string): void public init(socketUrl: string): void
@ -68,11 +68,11 @@ export class SocketConnection extends EventDispatcher implements IConnection
this.destroySocket(); this.destroySocket();
this._communicationManager = null; this._communicationManager = null;
this._stateListener = null; this._stateListener = null;
this._messages = null; this._messages = null;
this._codec = null; this._codec = null;
this._dataBuffer = null; this._dataBuffer = null;
} }
public onReady(): void public onReady(): void
@ -95,8 +95,8 @@ export class SocketConnection extends EventDispatcher implements IConnection
this.destroySocket(); this.destroySocket();
this._dataBuffer = new ArrayBuffer(0); this._dataBuffer = new ArrayBuffer(0);
this._socket = new WebSocket(socketUrl); this._socket = new WebSocket(socketUrl);
this._socket.addEventListener(WebSocketEventEnum.CONNECTION_OPENED, this.onOpen); this._socket.addEventListener(WebSocketEventEnum.CONNECTION_OPENED, this.onOpen);
this._socket.addEventListener(WebSocketEventEnum.CONNECTION_CLOSED, this.onClose); this._socket.addEventListener(WebSocketEventEnum.CONNECTION_CLOSED, this.onClose);
@ -189,8 +189,8 @@ export class SocketConnection extends EventDispatcher implements IConnection
continue; continue;
} }
const message = composer.getMessageArray(); const message = composer.getMessageArray();
const encoded = this._codec.encode(header, message); const encoded = this._codec.encode(header, message);
if(!encoded) if(!encoded)
{ {

View File

@ -1,5 +1,5 @@
export class ClientDeviceCategoryEnum export class ClientDeviceCategoryEnum
{ {
public static UNKNOWN: number = 0; public static UNKNOWN: number = 0;
public static BROWSER: number = 1; public static BROWSER: number = 1;
} }

View File

@ -1,7 +1,7 @@
export class ClientPlatformEnum export class ClientPlatformEnum
{ {
public static UNKNOWN: number = 0; public static UNKNOWN: number = 0;
public static FLASH: number = 1; public static FLASH: number = 1;
public static HTML5: number = 2; public static HTML5: number = 2;
} }

View File

@ -1,7 +1,7 @@
export class WebSocketEventEnum export class WebSocketEventEnum
{ {
public static CONNECTION_OPENED = 'open'; public static CONNECTION_OPENED = 'open';
public static CONNECTION_CLOSED = 'close'; public static CONNECTION_CLOSED = 'close';
public static CONNECTION_ERROR = 'error'; public static CONNECTION_ERROR = 'error';
public static CONNECTION_MESSAGE = 'message'; public static CONNECTION_MESSAGE = 'message';
} }

View File

@ -3,10 +3,10 @@ import { IConnection } from '../connections/IConnection';
export class SocketConnectionEvent extends NitroEvent export class SocketConnectionEvent extends NitroEvent
{ {
public static CONNECTION_OPENED = 'SCE_OPEN'; public static CONNECTION_OPENED = 'SCE_OPEN';
public static CONNECTION_CLOSED = 'SCE_CLOSED'; public static CONNECTION_CLOSED = 'SCE_CLOSED';
public static CONNECTION_ERROR = 'SCE_ERROR'; public static CONNECTION_ERROR = 'SCE_ERROR';
public static CONNECTION_MESSAGE = 'SCE_MESSAGE'; public static CONNECTION_MESSAGE = 'SCE_MESSAGE';
private _connection: IConnection; private _connection: IConnection;
private _originalEvent: Event; private _originalEvent: Event;
@ -15,7 +15,7 @@ export class SocketConnectionEvent extends NitroEvent
{ {
super(type); super(type);
this._connection = connection; this._connection = connection;
this._originalEvent = event; this._originalEvent = event;
} }

View File

@ -11,9 +11,9 @@ export class MessageClassManager
constructor() constructor()
{ {
this._messageIdByEvent = new Map(); this._messageIdByEvent = new Map();
this._messageIdByComposer = new Map(); this._messageIdByComposer = new Map();
this._messageInstancesById = new Map(); this._messageInstancesById = new Map();
} }
public dispose(): void public dispose(): void

View File

@ -11,18 +11,18 @@ export class MessageEvent implements IMessageEvent
constructor(callBack: Function, parser: { new(): IMessageParser }) constructor(callBack: Function, parser: { new(): IMessageParser })
{ {
this._callBack = callBack; this._callBack = callBack;
this._parserClass = parser; this._parserClass = parser;
this._parser = null; this._parser = null;
this._connection = null; this._connection = null;
} }
public dispose(): void public dispose(): void
{ {
this._callBack = null; this._callBack = null;
this._parserClass = null; this._parserClass = null;
this._parser = null; this._parser = null;
this._connection = null; this._connection = null;
} }
public get callBack(): Function public get callBack(): Function

View File

@ -2,8 +2,8 @@ import { NitroEvent } from '../events/NitroEvent';
export class ConfigurationEvent extends NitroEvent export class ConfigurationEvent extends NitroEvent
{ {
public static LOADED: string = 'NCE_LOADED'; public static LOADED: string = 'NCE_LOADED';
public static FAILED: string = 'NCE_FAILED'; public static FAILED: string = 'NCE_FAILED';
constructor(type: string) constructor(type: string)
{ {

View File

@ -15,7 +15,7 @@ export class EventDispatcher extends Disposable implements IEventDispatcher, IDi
{ {
super(); super();
this._logger = new NitroLogger(this.constructor.name); this._logger = new NitroLogger(this.constructor.name);
this._listeners = new Map(); this._listeners = new Map();
} }

View File

@ -9,10 +9,10 @@ export class AdvancedMap<T, U> implements IDisposable
constructor(map: Map<T, U> = null) constructor(map: Map<T, U> = null)
{ {
this._length = 0; this._length = 0;
this._dictionary = new Map(); this._dictionary = new Map();
this._array = []; this._array = [];
this._keys = []; this._keys = [];
if(map) for(const [ key, value ] of map.entries()) this.add(key, value); if(map) for(const [ key, value ] of map.entries()) this.add(key, value);
} }
@ -36,18 +36,18 @@ export class AdvancedMap<T, U> implements IDisposable
this._dictionary = null; this._dictionary = null;
} }
this._length = 0; this._length = 0;
this._array = null; this._array = null;
this._keys = null; this._keys = null;
} }
public reset(): void public reset(): void
{ {
for(const key of this._dictionary.keys()) this._dictionary.delete(key); for(const key of this._dictionary.keys()) this._dictionary.delete(key);
this._length = 0; this._length = 0;
this._array = []; this._array = [];
this._keys = []; this._keys = [];
} }
public unshift(key: T, value: U): boolean public unshift(key: T, value: U): boolean
@ -70,8 +70,8 @@ export class AdvancedMap<T, U> implements IDisposable
this._dictionary.set(key, value); this._dictionary.set(key, value);
this._array[this._length] = value; this._array[this._length] = value;
this._keys[this._length] = key; this._keys[this._length] = key;
this._length++; this._length++;

View File

@ -6,9 +6,9 @@ export class NitroTimer
constructor(percision: number = 1) constructor(percision: number = 1)
{ {
this._elapsedTime = 0; this._elapsedTime = 0;
this._percision = percision; this._percision = percision;
this._timer = null; this._timer = null;
this.start(); this.start();
} }

View File

@ -43,9 +43,9 @@ settings.ROUND_PIXELS = true;
export class Nitro extends Application implements INitro export class Nitro extends Application implements INitro
{ {
public static WEBGL_CONTEXT_LOST: string = 'NE_WEBGL_CONTEXT_LOST'; public static WEBGL_CONTEXT_LOST: string = 'NE_WEBGL_CONTEXT_LOST';
public static WEBGL_UNAVAILABLE: string = 'NE_WEBGL_UNAVAILABLE'; public static WEBGL_UNAVAILABLE: string = 'NE_WEBGL_UNAVAILABLE';
public static READY: string = 'NE_READY!'; public static READY: string = 'NE_READY!';
private static INSTANCE: INitro = null; private static INSTANCE: INitro = null;
@ -74,24 +74,24 @@ export class Nitro extends Application implements INitro
if(!Nitro.INSTANCE) Nitro.INSTANCE = this; if(!Nitro.INSTANCE) Nitro.INSTANCE = this;
this._nitroTimer = new NitroTimer(); this._nitroTimer = new NitroTimer();
this._worker = null; this._worker = null;
this._core = core; this._core = core;
this._events = new EventDispatcher(); this._events = new EventDispatcher();
this._localization = new NitroLocalizationManager(); this._localization = new NitroLocalizationManager();
this._communication = new NitroCommunicationManager(core.communication); this._communication = new NitroCommunicationManager(core.communication);
this._avatar = new AvatarRenderManager(); this._avatar = new AvatarRenderManager();
this._roomEngine = new RoomEngine(this._communication); this._roomEngine = new RoomEngine(this._communication);
this._sessionDataManager = new SessionDataManager(this._communication); this._sessionDataManager = new SessionDataManager(this._communication);
this._roomSessionManager = new RoomSessionManager(this._communication, this._roomEngine); this._roomSessionManager = new RoomSessionManager(this._communication, this._roomEngine);
this._roomManager = new RoomManager(this._roomEngine, this._roomEngine.visualizationFactory, this._roomEngine.logicFactory); this._roomManager = new RoomManager(this._roomEngine, this._roomEngine.visualizationFactory, this._roomEngine.logicFactory);
this._cameraManager = new RoomCameraWidgetManager(); this._cameraManager = new RoomCameraWidgetManager();
this._soundManager = new SoundManager(); this._soundManager = new SoundManager();
this._linkTrackers = []; this._linkTrackers = [];
this._workerTrackers = []; this._workerTrackers = [];
this._isReady = false; this._isReady = false;
this._isDisposed = false; this._isDisposed = false;
this._core.configuration.events.addEventListener(ConfigurationEvent.LOADED, this.onConfigurationLoadedEvent.bind(this)); this._core.configuration.events.addEventListener(ConfigurationEvent.LOADED, this.onConfigurationLoadedEvent.bind(this));
this._roomEngine.events.addEventListener(RoomEngineEvent.ENGINE_INITIALIZED, this.onRoomEngineReady.bind(this)); this._roomEngine.events.addEventListener(RoomEngineEvent.ENGINE_INITIALIZED, this.onRoomEngineReady.bind(this));
@ -110,8 +110,8 @@ export class Nitro extends Application implements INitro
const canvas = document.createElement('canvas'); const canvas = document.createElement('canvas');
canvas.id = 'client-wrapper'; canvas.id = 'client-wrapper';
canvas.className = 'client-canvas'; canvas.className = 'client-canvas';
const instance = new this(new NitroCore(), { const instance = new this(new NitroCore(), {
autoDensity: true, autoDensity: true,
@ -136,7 +136,7 @@ export class Nitro extends Application implements INitro
{ {
this._roomEngine.sessionDataManager = this._sessionDataManager; this._roomEngine.sessionDataManager = this._sessionDataManager;
this._roomEngine.roomSessionManager = this._roomSessionManager; this._roomEngine.roomSessionManager = this._roomSessionManager;
this._roomEngine.roomManager = this._roomManager; this._roomEngine.roomManager = this._roomManager;
if(this._sessionDataManager) this._sessionDataManager.init(); if(this._sessionDataManager) this._sessionDataManager.init();
if(this._roomSessionManager) this._roomSessionManager.init(); if(this._roomSessionManager) this._roomSessionManager.init();
@ -209,14 +209,14 @@ export class Nitro extends Application implements INitro
super.destroy(); super.destroy();
this._isDisposed = true; this._isDisposed = true;
this._isReady = false; this._isReady = false;
} }
private onConfigurationLoadedEvent(event: ConfigurationEvent): void private onConfigurationLoadedEvent(event: ConfigurationEvent): void
{ {
const animationFPS = this.getConfiguration<number>('system.animation.fps', 24); const animationFPS = this.getConfiguration<number>('system.animation.fps', 24);
const limitsFPS = this.getConfiguration<boolean>('system.limits.fps', true); const limitsFPS = this.getConfiguration<boolean>('system.limits.fps', true);
if(limitsFPS) Nitro.instance.ticker.maxFPS = animationFPS; if(limitsFPS) Nitro.instance.ticker.maxFPS = animationFPS;
} }

View File

@ -6,9 +6,9 @@ export class AvatarAssetDownloadLibrary extends EventDispatcher
{ {
public static DOWNLOAD_COMPLETE: string = 'AADL_DOWNLOAD_COMPLETE'; public static DOWNLOAD_COMPLETE: string = 'AADL_DOWNLOAD_COMPLETE';
private static NOT_LOADED: number = 0; private static NOT_LOADED: number = 0;
private static LOADING: number = 1; private static LOADING: number = 1;
private static LOADED: number = 2; private static LOADED: number = 2;
private _state: number; private _state: number;
private _libraryName: string; private _libraryName: string;
@ -20,11 +20,11 @@ export class AvatarAssetDownloadLibrary extends EventDispatcher
{ {
super(); super();
this._state = AvatarAssetDownloadLibrary.NOT_LOADED; this._state = AvatarAssetDownloadLibrary.NOT_LOADED;
this._libraryName = id; this._libraryName = id;
this._revision = revision; this._revision = revision;
this._downloadUrl = assetUrl; this._downloadUrl = assetUrl;
this._assets = assets; this._assets = assets;
this._downloadUrl = this._downloadUrl.replace(/%libname%/gi, this._libraryName); this._downloadUrl = this._downloadUrl.replace(/%libname%/gi, this._libraryName);
this._downloadUrl = this._downloadUrl.replace(/%revision%/gi, this._revision); this._downloadUrl = this._downloadUrl.replace(/%revision%/gi, this._revision);

View File

@ -12,10 +12,10 @@ import { IAvatarImageListener } from './IAvatarImageListener';
export class AvatarAssetDownloadManager extends EventDispatcher export class AvatarAssetDownloadManager extends EventDispatcher
{ {
public static DOWNLOADER_READY: string = 'AADM_DOWNLOADER_READY'; public static DOWNLOADER_READY: string = 'AADM_DOWNLOADER_READY';
public static LIBRARY_LOADED: string = 'AADM_LIBRARY_LOADED'; public static LIBRARY_LOADED: string = 'AADM_LIBRARY_LOADED';
private static MAX_DOWNLOADS: number = 2; private static MAX_DOWNLOADS: number = 2;
private _assets: IAssetManager; private _assets: IAssetManager;
private _structure: AvatarStructure; private _structure: AvatarStructure;
@ -34,21 +34,21 @@ export class AvatarAssetDownloadManager extends EventDispatcher
{ {
super(); super();
this._assets = assets; this._assets = assets;
this._structure = structure; this._structure = structure;
this._missingMandatoryLibs = Nitro.instance.getConfiguration<string[]>('avatar.mandatory.libraries'); this._missingMandatoryLibs = Nitro.instance.getConfiguration<string[]>('avatar.mandatory.libraries');
this._figureMap = new Map(); this._figureMap = new Map();
this._pendingContainers = []; this._pendingContainers = [];
this._figureListeners = new Map(); this._figureListeners = new Map();
this._incompleteFigures = new Map(); this._incompleteFigures = new Map();
this._pendingDownloadQueue = []; this._pendingDownloadQueue = [];
this._currentDownloads = []; this._currentDownloads = [];
this._libraryNames = []; this._libraryNames = [];
this._isReady = false; this._isReady = false;
this.onLibraryLoaded = this.onLibraryLoaded.bind(this); this.onLibraryLoaded = this.onLibraryLoaded.bind(this);
this.onAvatarRenderReady = this.onAvatarRenderReady.bind(this); this.onAvatarRenderReady = this.onAvatarRenderReady.bind(this);
this.loadFigureMap(); this.loadFigureMap();
@ -101,8 +101,8 @@ export class AvatarAssetDownloadManager extends EventDispatcher
{ {
if(!library) continue; if(!library) continue;
const id = (library.id as string); const id = (library.id as string);
const revision = (library.revision || ''); const revision = (library.revision || '');
if(this._libraryNames.indexOf(id) >= 0) continue; if(this._libraryNames.indexOf(id) >= 0) continue;
@ -114,9 +114,9 @@ export class AvatarAssetDownloadManager extends EventDispatcher
for(const part of library.parts) for(const part of library.parts)
{ {
const id = (part.id as string); const id = (part.id as string);
const type = (part.type as string); const type = (part.type as string);
const partString = (type + ':' + id); const partString = (type + ':' + id);
let existing = this._figureMap.get(partString); let existing = this._figureMap.get(partString);
@ -256,8 +256,8 @@ export class AvatarAssetDownloadManager extends EventDispatcher
{ {
if(!part) continue; if(!part) continue;
const name = (part.type + ':' + part.id); const name = (part.type + ':' + part.id);
const existing = this._figureMap.get(name); const existing = this._figureMap.get(name);
if(existing === undefined) continue; if(existing === undefined) continue;
@ -284,8 +284,8 @@ export class AvatarAssetDownloadManager extends EventDispatcher
return; return;
} }
const figure = container.getFigureString(); const figure = container.getFigureString();
const pendingLibraries = this.getAvatarFigurePendingLibraries(container); const pendingLibraries = this.getAvatarFigurePendingLibraries(container);
if(pendingLibraries && pendingLibraries.length) if(pendingLibraries && pendingLibraries.length)
{ {

View File

@ -96,9 +96,9 @@ export class AvatarFigureContainer implements IAvatarFigureContainer
if(pieces.length >= 2) if(pieces.length >= 2)
{ {
const type = pieces[0]; const type = pieces[0];
const setId = parseInt(pieces[1]); const setId = parseInt(pieces[1]);
const colors = []; const colors = [];
let index = 2; let index = 2;

View File

@ -31,15 +31,15 @@ import { IPartColor } from './structure/figure/IPartColor';
export class AvatarImage implements IAvatarImage, IAvatarEffectListener export class AvatarImage implements IAvatarImage, IAvatarEffectListener
{ {
private static CHANNELS_EQUAL: string = 'CHANNELS_EQUAL'; private static CHANNELS_EQUAL: string = 'CHANNELS_EQUAL';
private static CHANNELS_UNIQUE: string = 'CHANNELS_UNIQUE'; private static CHANNELS_UNIQUE: string = 'CHANNELS_UNIQUE';
private static CHANNELS_RED: string = 'CHANNELS_RED'; private static CHANNELS_RED: string = 'CHANNELS_RED';
private static CHANNELS_GREEN: string = 'CHANNELS_GREEN'; private static CHANNELS_GREEN: string = 'CHANNELS_GREEN';
private static CHANNELS_BLUE: string = 'CHANNELS_BLUE'; private static CHANNELS_BLUE: string = 'CHANNELS_BLUE';
private static CHANNELS_DESATURATED: string = 'CHANNELS_DESATURATED'; private static CHANNELS_DESATURATED: string = 'CHANNELS_DESATURATED';
private static DEFAULT_ACTION: string = 'Default'; private static DEFAULT_ACTION: string = 'Default';
private static DEFAULT_DIRECTION: number = 2; private static DEFAULT_DIRECTION: number = 2;
private static DEFAULT_AVATAR_SET: string = AvatarSetType.FULL; private static DEFAULT_AVATAR_SET: string = AvatarSetType.FULL;
protected _structure: AvatarStructure; protected _structure: AvatarStructure;
protected _scale: string; protected _scale: string;
@ -333,7 +333,7 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
this._reusableTexture = null; this._reusableTexture = null;
} }
this._image = null; this._image = null;
this._isCachedImage = false; this._isCachedImage = false;
} }
@ -343,8 +343,8 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
const container = new NitroContainer(); const container = new NitroContainer();
let isCachable = true; let isCachable = true;
let partCount = (_local_6.length - 1); let partCount = (_local_6.length - 1);
while(partCount >= 0) while(partCount >= 0)
{ {
@ -435,18 +435,18 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
} }
*/ */
this._image = this._reusableTexture; this._image = this._reusableTexture;
this._changes = false; this._changes = false;
return this._image; return this._image;
} }
public applyPalette(texture: RenderTexture, reds: number[] = [], greens: number[] = [], blues: number[] = []): RenderTexture public applyPalette(texture: RenderTexture, reds: number[] = [], greens: number[] = [], blues: number[] = []): RenderTexture
{ {
const textureCanvas = TextureUtils.generateCanvas(texture); const textureCanvas = TextureUtils.generateCanvas(texture);
const textureCtx = textureCanvas.getContext('2d'); const textureCtx = textureCanvas.getContext('2d');
const textureImageData = textureCtx.getImageData(0, 0, textureCanvas.width, textureCanvas.height); const textureImageData = textureCtx.getImageData(0, 0, textureCanvas.width, textureCanvas.height);
const data = textureImageData.data; const data = textureImageData.data;
for(let i = 0; i < data.length; i += 4) for(let i = 0; i < data.length; i += 4)
{ {
@ -502,12 +502,12 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
if(!avatarCanvas) return null; if(!avatarCanvas) return null;
const setTypes = this.getBodyParts(setType, this._mainAction.definition.geometryType, this._mainDirection); const setTypes = this.getBodyParts(setType, this._mainAction.definition.geometryType, this._mainDirection);
const container = new NitroSprite(); const container = new NitroSprite();
const sprite = new NitroSprite(Texture.EMPTY); const sprite = new NitroSprite(Texture.EMPTY);
sprite.width = avatarCanvas.width; sprite.width = avatarCanvas.width;
sprite.height = avatarCanvas.height; sprite.height = avatarCanvas.height;
container.addChild(sprite); container.addChild(sprite);
@ -515,8 +515,8 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
while(partCount >= 0) while(partCount >= 0)
{ {
const set = setTypes[partCount]; const set = setTypes[partCount];
const part = this._cache.getImageContainer(set, this._frameCounter); const part = this._cache.getImageContainer(set, this._frameCounter);
if(part) if(part)
{ {
@ -567,15 +567,15 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
if(!avatarCanvas) return null; if(!avatarCanvas) return null;
const setTypes = this.getBodyParts(setType, this._mainAction.definition.geometryType, this._mainDirection); const setTypes = this.getBodyParts(setType, this._mainAction.definition.geometryType, this._mainDirection);
const container = new NitroContainer(); const container = new NitroContainer();
let partCount = (setTypes.length - 1); let partCount = (setTypes.length - 1);
while(partCount >= 0) while(partCount >= 0)
{ {
const set = setTypes[partCount]; const set = setTypes[partCount];
const part = this._cache.getImageContainer(set, this._frameCounter); const part = this._cache.getImageContainer(set, this._frameCounter);
if(part) if(part)
{ {
@ -927,8 +927,8 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
{ {
if(!this._sortedActions == null) return; if(!this._sortedActions == null) return;
const _local_3: number = Nitro.instance.time; const _local_3: number = Nitro.instance.time;
const _local_4: string[] = []; const _local_4: string[] = [];
for(const k of this._sortedActions) _local_4.push(k.actionType); for(const k of this._sortedActions) _local_4.push(k.actionType);

View File

@ -10,11 +10,11 @@ export class AvatarImageBodyPartContainer
constructor(k: Container, _arg_2: Point, _arg_3: boolean) constructor(k: Container, _arg_2: Point, _arg_3: boolean)
{ {
this._image = k; this._image = k;
this._regPoint = _arg_2; this._regPoint = _arg_2;
this._offset = new Point(0, 0); this._offset = new Point(0, 0);
this._regPoint = _arg_2; this._regPoint = _arg_2;
this._isCacheable = _arg_3; this._isCacheable = _arg_3;
this.cleanPoints(); this.cleanPoints();
} }
@ -28,9 +28,9 @@ export class AvatarImageBodyPartContainer
}); });
} }
this._image = null; this._image = null;
this._regPoint = null; this._regPoint = null;
this._offset = null; this._offset = null;
} }
private cleanPoints(): void private cleanPoints(): void

View File

@ -19,17 +19,17 @@ export class AvatarImagePartContainer
constructor(k: string, _arg_2: string, _arg_3: string, _arg_4: IPartColor, _arg_5: AvatarAnimationFrame[], _arg_6: IActionDefinition, _arg_7: boolean, _arg_8: number, _arg_9: string = '', _arg_10: boolean = false, _arg_11: number = 1) constructor(k: string, _arg_2: string, _arg_3: string, _arg_4: IPartColor, _arg_5: AvatarAnimationFrame[], _arg_6: IActionDefinition, _arg_7: boolean, _arg_8: number, _arg_9: string = '', _arg_10: boolean = false, _arg_11: number = 1)
{ {
this._bodyPartId = k; this._bodyPartId = k;
this._partType = _arg_2; this._partType = _arg_2;
this._partId = _arg_3; this._partId = _arg_3;
this._color = _arg_4; this._color = _arg_4;
this._frames = _arg_5; this._frames = _arg_5;
this._action = _arg_6; this._action = _arg_6;
this._isColorable = _arg_7; this._isColorable = _arg_7;
this._paletteMapId = _arg_8; this._paletteMapId = _arg_8;
this._flippedPartType = _arg_9; this._flippedPartType = _arg_9;
this._isBlendable = _arg_10; this._isBlendable = _arg_10;
this._blendTransform = null; this._blendTransform = null;
if(this._partType === 'ey') this._isColorable = false; if(this._partType === 'ey') this._isColorable = false;
} }

View File

@ -53,24 +53,24 @@ export class AvatarRenderManager extends NitroManager implements IAvatarRenderMa
{ {
super(); super();
this._structure = null; this._structure = null;
this._avatarAssetDownloadManager = null; this._avatarAssetDownloadManager = null;
this._placeHolderFigure = null; this._placeHolderFigure = null;
this._figureMapReady = false; this._figureMapReady = false;
this._effectMapReady = false; this._effectMapReady = false;
this._actionsReady = false; this._actionsReady = false;
this._geometryReady = false; this._geometryReady = false;
this._partSetsReady = false; this._partSetsReady = false;
this._animationsReady = false; this._animationsReady = false;
this._isReady = false; this._isReady = false;
this.onAvatarAssetDownloaderReady = this.onAvatarAssetDownloaderReady.bind(this); this.onAvatarAssetDownloaderReady = this.onAvatarAssetDownloaderReady.bind(this);
this.onAvatarAssetDownloaded = this.onAvatarAssetDownloaded.bind(this); this.onAvatarAssetDownloaded = this.onAvatarAssetDownloaded.bind(this);
this.onEffectAssetDownloaderReady = this.onEffectAssetDownloaderReady.bind(this); this.onEffectAssetDownloaderReady = this.onEffectAssetDownloaderReady.bind(this);
this.onEffectAssetDownloaded = this.onEffectAssetDownloaded.bind(this); this.onEffectAssetDownloaded = this.onEffectAssetDownloaded.bind(this);
this.onAvatarStructureDownloadDone = this.onAvatarStructureDownloadDone.bind(this); this.onAvatarStructureDownloadDone = this.onAvatarStructureDownloadDone.bind(this);
} }
public onInit(): void public onInit(): void
@ -356,8 +356,8 @@ export class AvatarRenderManager extends NitroManager implements IAvatarRenderMa
{ {
if(!this._structure) return 0; if(!this._structure) return 0;
const figureData = this._structure.figureData; const figureData = this._structure.figureData;
const parts = Array.from(container.getPartTypeIds()); const parts = Array.from(container.getPartTypeIds());
let clubLevel = 0; let clubLevel = 0;
@ -367,15 +367,15 @@ export class AvatarRenderManager extends NitroManager implements IAvatarRenderMa
if(!set) continue; if(!set) continue;
const setId = container.getPartSetId(part); const setId = container.getPartSetId(part);
const partSet = set.getPartSet(setId); const partSet = set.getPartSet(setId);
if(partSet) if(partSet)
{ {
clubLevel = Math.max(partSet.clubLevel, clubLevel); clubLevel = Math.max(partSet.clubLevel, clubLevel);
const palette = figureData.getPalette(set.paletteID); const palette = figureData.getPalette(set.paletteID);
const colors = container.getPartColorIds(part); const colors = container.getPartColorIds(part);
for(const colorId of colors) for(const colorId of colors)
{ {
@ -405,7 +405,7 @@ export class AvatarRenderManager extends NitroManager implements IAvatarRenderMa
public isValidFigureSetForGender(setId: number, gender: string): boolean public isValidFigureSetForGender(setId: number, gender: string): boolean
{ {
const structure = this.structureData; const structure = this.structureData;
const partSet = structure.getFigurePartSet(setId); const partSet = structure.getFigurePartSet(setId);
return !!(partSet && ((partSet.gender.toUpperCase() === 'U') || (partSet.gender.toUpperCase() === gender.toUpperCase()))); return !!(partSet && ((partSet.gender.toUpperCase() === 'U') || (partSet.gender.toUpperCase() === gender.toUpperCase())));
} }
@ -428,8 +428,8 @@ export class AvatarRenderManager extends NitroManager implements IAvatarRenderMa
private resolveFigureSets(k: number[]): IFigurePartSet[] private resolveFigureSets(k: number[]): IFigurePartSet[]
{ {
const structure = this.structureData; const structure = this.structureData;
const partSets: IFigurePartSet[] = []; const partSets: IFigurePartSet[] = [];
for(const _local_4 of k) for(const _local_4 of k)
{ {

View File

@ -43,15 +43,15 @@ export class AvatarStructure extends EventDispatcher
{ {
super(); super();
this._renderManager = renderManager; this._renderManager = renderManager;
this._geometry = null; this._geometry = null;
this._figureData = new FigureSetData(); this._figureData = new FigureSetData();
this._partSetsData = new PartSetsData(); this._partSetsData = new PartSetsData();
this._animationData = new AvatarAnimationData(); this._animationData = new AvatarAnimationData();
this._animationManager = new AnimationManager(); this._animationManager = new AnimationManager();
this._mandatorySetTypeIds = {}; this._mandatorySetTypeIds = {};
this._actionManager = null; this._actionManager = null;
this._defaultAction = null; this._defaultAction = null;
} }
public init(): void public init(): void
@ -65,11 +65,11 @@ export class AvatarStructure extends EventDispatcher
super.dispose(); super.dispose();
this._renderManager = null; this._renderManager = null;
this._figureData = null; this._figureData = null;
this._partSetsData = null; this._partSetsData = null;
this._animationData = null; this._animationData = null;
this._mandatorySetTypeIds = null; this._mandatorySetTypeIds = null;
} }
public initGeometry(k: any): void public initGeometry(k: any): void
@ -251,8 +251,8 @@ export class AvatarStructure extends EventDispatcher
{ {
let _local_3: string[] = []; let _local_3: string[] = [];
const _local_4: string[] = []; const _local_4: string[] = [];
const _local_5 = k.definition.geometryType; const _local_5 = k.definition.geometryType;
if(k.definition.isAnimation) if(k.definition.isAnimation)
{ {
@ -356,10 +356,10 @@ export class AvatarStructure extends EventDispatcher
if(!_arg_3 == null) return []; if(!_arg_3 == null) return [];
const _local_9 = this._partSetsData.getActiveParts(_arg_3.definition); const _local_9 = this._partSetsData.getActiveParts(_arg_3.definition);
const _local_11: AvatarImagePartContainer[] = []; const _local_11: AvatarImagePartContainer[] = [];
let _local_14: any[] = [ 0 ]; let _local_14: any[] = [ 0 ];
const _local_15 = this._animationData.getAction(_arg_3.definition); const _local_15 = this._animationData.getAction(_arg_3.definition);
if(_arg_3.definition.isAnimation) if(_arg_3.definition.isAnimation)
{ {
@ -388,8 +388,8 @@ export class AvatarStructure extends EventDispatcher
} }
} }
const _local_16 = this._geometry.getParts(_arg_4, k, _arg_5, _local_9, _arg_7); const _local_16 = this._geometry.getParts(_arg_4, k, _arg_5, _local_9, _arg_7);
const _local_21 = _arg_2.getPartTypeIds(); const _local_21 = _arg_2.getPartTypeIds();
for(const _local_17 of _local_21) for(const _local_17 of _local_21)
{ {
@ -469,7 +469,7 @@ export class AvatarStructure extends EventDispatcher
for(const _local_12 of _local_16) for(const _local_12 of _local_16)
{ {
let _local_39: IPartColor = null; let _local_39: IPartColor = null;
let _local_38 = false; let _local_38 = false;
const _local_40 = ((_arg_8) && (_arg_8.get(_local_12))); const _local_40 = ((_arg_8) && (_arg_8.get(_local_12)));

View File

@ -7,9 +7,9 @@ export class EffectAssetDownloadLibrary extends EventDispatcher
{ {
public static DOWNLOAD_COMPLETE: string = 'EADL_DOWNLOAD_COMPLETE'; public static DOWNLOAD_COMPLETE: string = 'EADL_DOWNLOAD_COMPLETE';
private static NOT_LOADED: number = 0; private static NOT_LOADED: number = 0;
private static LOADING: number = 1; private static LOADING: number = 1;
private static LOADED: number = 2; private static LOADED: number = 2;
private _state: number; private _state: number;
private _libraryName: string; private _libraryName: string;
@ -22,12 +22,12 @@ export class EffectAssetDownloadLibrary extends EventDispatcher
{ {
super(); super();
this._state = EffectAssetDownloadLibrary.NOT_LOADED; this._state = EffectAssetDownloadLibrary.NOT_LOADED;
this._libraryName = id; this._libraryName = id;
this._revision = revision; this._revision = revision;
this._downloadUrl = assetUrl; this._downloadUrl = assetUrl;
this._assets = assets; this._assets = assets;
this._animation = null; this._animation = null;
this._downloadUrl = this._downloadUrl.replace(/%libname%/gi, this._libraryName); this._downloadUrl = this._downloadUrl.replace(/%libname%/gi, this._libraryName);
this._downloadUrl = this._downloadUrl.replace(/%revision%/gi, this._revision); this._downloadUrl = this._downloadUrl.replace(/%revision%/gi, this._revision);

View File

@ -11,10 +11,10 @@ import { IAvatarEffectListener } from './IAvatarEffectListener';
export class EffectAssetDownloadManager extends EventDispatcher export class EffectAssetDownloadManager extends EventDispatcher
{ {
public static DOWNLOADER_READY: string = 'EADM_DOWNLOADER_READY'; public static DOWNLOADER_READY: string = 'EADM_DOWNLOADER_READY';
public static LIBRARY_LOADED: string = 'EADM_LIBRARY_LOADED'; public static LIBRARY_LOADED: string = 'EADM_LIBRARY_LOADED';
private static MAX_DOWNLOADS: number = 2; private static MAX_DOWNLOADS: number = 2;
private _assets: IAssetManager; private _assets: IAssetManager;
private _structure: AvatarStructure; private _structure: AvatarStructure;
@ -33,21 +33,21 @@ export class EffectAssetDownloadManager extends EventDispatcher
{ {
super(); super();
this._assets = assets; this._assets = assets;
this._structure = structure; this._structure = structure;
this._missingMandatoryLibs = Nitro.instance.getConfiguration<string[]>('avatar.mandatory.effect.libraries'); this._missingMandatoryLibs = Nitro.instance.getConfiguration<string[]>('avatar.mandatory.effect.libraries');
this._effectMap = new Map(); this._effectMap = new Map();
this._effectListeners = new Map(); this._effectListeners = new Map();
this._incompleteEffects = new Map(); this._incompleteEffects = new Map();
this._initDownloadBuffer = []; this._initDownloadBuffer = [];
this._pendingDownloadQueue = []; this._pendingDownloadQueue = [];
this._currentDownloads = []; this._currentDownloads = [];
this._libraryNames = []; this._libraryNames = [];
this._isReady = false; this._isReady = false;
this.onLibraryLoaded = this.onLibraryLoaded.bind(this); this.onLibraryLoaded = this.onLibraryLoaded.bind(this);
this.onAvatarRenderReady = this.onAvatarRenderReady.bind(this); this.onAvatarRenderReady = this.onAvatarRenderReady.bind(this);
this.loadEffectMap(); this.loadEffectMap();
@ -100,9 +100,9 @@ export class EffectAssetDownloadManager extends EventDispatcher
{ {
if(!effect) continue; if(!effect) continue;
const id = (effect.id as string); const id = (effect.id as string);
const lib = (effect.lib as string); const lib = (effect.lib as string);
const revision = (effect.revision || ''); const revision = (effect.revision || '');
if(this._libraryNames.indexOf(lib) >= 0) continue; if(this._libraryNames.indexOf(lib) >= 0) continue;

View File

@ -23,23 +23,23 @@ export class ActionDefinition implements IActionDefinition
constructor(data: any) constructor(data: any)
{ {
this._id = data.id; this._id = data.id;
this._state = data.state; this._state = data.state;
this._precedence = data.precedence; this._precedence = data.precedence;
this._activePartSet = data.activePartSet; this._activePartSet = data.activePartSet;
this._assetPartDefinition = data.assetPartDefinition; this._assetPartDefinition = data.assetPartDefinition;
this._lay = data.lay; this._lay = data.lay;
this._geometryType = data.geometryType; this._geometryType = data.geometryType;
this._isMain = data.main || false; this._isMain = data.main || false;
this._isDefault = data.isDefault || false; this._isDefault = data.isDefault || false;
this._isAnimation = data.animation || false; this._isAnimation = data.animation || false;
this._startFromFrameZero = data.startFromFrameZero || false; this._startFromFrameZero = data.startFromFrameZero || false;
this._prevents = data.prevents || []; this._prevents = data.prevents || [];
this._preventHeadTurn = data.preventHeadTurn || false; this._preventHeadTurn = data.preventHeadTurn || false;
this._types = new Map(); this._types = new Map();
this._params = new Map(); this._params = new Map();
this._defaultParameterValue = ''; this._defaultParameterValue = '';
this._canvasOffsets = null; this._canvasOffsets = null;
if(data.params && (data.params.length > 0)) if(data.params && (data.params.length > 0))
{ {

View File

@ -8,11 +8,11 @@ export class ActionType
constructor(data: any) constructor(data: any)
{ {
this._id = parseInt(data.id); this._id = parseInt(data.id);
this._value = parseInt(data.id); this._value = parseInt(data.id);
this._prevents = data.prevents || []; this._prevents = data.prevents || [];
this._preventHeadTurn = data.preventHeadTurn || false; this._preventHeadTurn = data.preventHeadTurn || false;
this._isAnimated = true; this._isAnimated = true;
if((data.animated !== undefined) && (data.animated === false)) this._isAnimated = false; if((data.animated !== undefined) && (data.animated === false)) this._isAnimated = false;
} }

View File

@ -11,18 +11,18 @@ export class ActiveActionData implements IActiveActionData
constructor(action: string, parameter: string = '', startFrame: number = 0) constructor(action: string, parameter: string = '', startFrame: number = 0)
{ {
this._actionType = action || ''; this._actionType = action || '';
this._actionParameter = parameter || ''; this._actionParameter = parameter || '';
this._definition = null; this._definition = null;
this._startFrame = startFrame || 0; this._startFrame = startFrame || 0;
this._overridingAction = null; this._overridingAction = null;
} }
public dispose(): void public dispose(): void
{ {
this._actionType = null; this._actionType = null;
this._actionParameter = null; this._actionParameter = null;
this._definition = null; this._definition = null;
} }
public get id(): string public get id(): string

View File

@ -10,8 +10,8 @@ export class AvatarActionManager
constructor(k: IAssetManager, data: any) constructor(k: IAssetManager, data: any)
{ {
this._assets = k; this._assets = k;
this._actions = new Map(); this._actions = new Map();
this._defaultAction = null; this._defaultAction = null;
this.updateActions(data); this.updateActions(data);
@ -45,7 +45,7 @@ export class AvatarActionManager
for(const canvasOffset of offset.offsets) for(const canvasOffset of offset.offsets)
{ {
const size = (canvasOffset.size || ''); const size = (canvasOffset.size || '');
const direction = canvasOffset.direction; const direction = canvasOffset.direction;
if((size === '') || (direction === undefined)) continue; if((size === '') || (direction === undefined)) continue;
@ -106,8 +106,8 @@ export class AvatarActionManager
{ {
if(!activeAction) continue; if(!activeAction) continue;
const action = this._actions.get(activeAction.actionType); const action = this._actions.get(activeAction.actionType);
const offsets = action && action.getOffsets(_arg_2, _arg_3); const offsets = action && action.getOffsets(_arg_2, _arg_3);
if(offsets) canvasOffsets = offsets; if(offsets) canvasOffsets = offsets;
} }
@ -143,8 +143,8 @@ export class AvatarActionManager
private filterActions(actions: IActiveActionData[]): IActiveActionData[] private filterActions(actions: IActiveActionData[]): IActiveActionData[]
{ {
let preventions: string[] = []; let preventions: string[] = [];
const activeActions: IActiveActionData[] = []; const activeActions: IActiveActionData[] = [];
for(const action of actions) for(const action of actions)
{ {

View File

@ -9,8 +9,8 @@ export class AssetAlias
constructor(name: string, alias: IAssetAlias) constructor(name: string, alias: IAssetAlias)
{ {
this._name = name; this._name = name;
this._link = alias.link; this._link = alias.link;
this._flipH = alias.flipH; this._flipH = alias.flipH;
this._flipV = alias.flipV; this._flipV = alias.flipV;
} }

View File

@ -12,16 +12,16 @@ export class AssetAliasCollection
constructor(k: AvatarRenderManager, _arg_2: IAssetManager) constructor(k: AvatarRenderManager, _arg_2: IAssetManager)
{ {
this._avatarRenderManager = k; this._avatarRenderManager = k;
this._aliases = new Map(); this._aliases = new Map();
this._assets = _arg_2; this._assets = _arg_2;
this._missingAssetNames = []; this._missingAssetNames = [];
} }
public dispose(): void public dispose(): void
{ {
this._assets = null; this._assets = null;
this._aliases = null; this._aliases = null;
} }
public reset(): void public reset(): void

View File

@ -10,10 +10,10 @@ export class AddDataContainer
constructor(k: IAssetAnimationAdd) constructor(k: IAssetAnimationAdd)
{ {
this._id = k.id || ''; this._id = k.id || '';
this._align = k.align || ''; this._align = k.align || '';
this._base = k.base || ''; this._base = k.base || '';
this._ink = k.ink || 0; this._ink = k.ink || 0;
this._blend = 0; this._blend = 0;
const _local_2 = k.blend; const _local_2 = k.blend;

View File

@ -25,17 +25,17 @@ export class Animation implements IAnimation
constructor(k: AvatarStructure, _arg_2: IAssetAnimation) constructor(k: AvatarStructure, _arg_2: IAssetAnimation)
{ {
this._id = _arg_2.name; this._id = _arg_2.name;
this._description = this._id; this._description = this._id;
this._frames = []; this._frames = [];
this._spriteData = null; this._spriteData = null;
this._avatarData = null; this._avatarData = null;
this._directionData = null; this._directionData = null;
this._removeData = null; this._removeData = null;
this._addData = null; this._addData = null;
this._overriddenActions = null; this._overriddenActions = null;
this._overrideFrames = null; this._overrideFrames = null;
this._resetOnToggle = (_arg_2.resetOnToggle || false); this._resetOnToggle = (_arg_2.resetOnToggle || false);
if(_arg_2.sprites && _arg_2.sprites.length) if(_arg_2.sprites && _arg_2.sprites.length)
{ {
@ -64,12 +64,12 @@ export class Animation implements IAnimation
if(_arg_2.overrides && _arg_2.overrides.length) if(_arg_2.overrides && _arg_2.overrides.length)
{ {
this._overrideFrames = new Map(); this._overrideFrames = new Map();
this._overriddenActions = new Map(); this._overriddenActions = new Map();
for(const override of _arg_2.overrides) for(const override of _arg_2.overrides)
{ {
const name = override.name; const name = override.name;
const value = override.override; const value = override.override;
this._overriddenActions.set(value, name); this._overriddenActions.set(value, name);
@ -105,8 +105,8 @@ export class Animation implements IAnimation
{ {
for(const bodyPart of frame.bodyparts) for(const bodyPart of frame.bodyparts)
{ {
const definition = _arg_3.getActionDefinition(bodyPart.action); const definition = _arg_3.getActionDefinition(bodyPart.action);
const layer = new AvatarAnimationLayerData(bodyPart, AvatarAnimationLayerData.BODYPART, definition); const layer = new AvatarAnimationLayerData(bodyPart, AvatarAnimationLayerData.BODYPART, definition);
layers.push(layer); layers.push(layer);
} }
@ -116,8 +116,8 @@ export class Animation implements IAnimation
{ {
for(const fx of frame.fxs) for(const fx of frame.fxs)
{ {
const definition = _arg_3.getActionDefinition(fx.action); const definition = _arg_3.getActionDefinition(fx.action);
const layer = new AvatarAnimationLayerData(fx, AvatarAnimationLayerData.FX, definition); const layer = new AvatarAnimationLayerData(fx, AvatarAnimationLayerData.FX, definition);
layers.push(layer); layers.push(layer);
} }

View File

@ -22,15 +22,15 @@ export class AvatarAnimationLayerData implements IAnimationLayerData
constructor(k: IAssetAnimationFramePart, _arg_2: string, _arg_3: IActionDefinition) constructor(k: IAssetAnimationFramePart, _arg_2: string, _arg_3: IActionDefinition)
{ {
this._id = k.id; this._id = k.id;
this._animationFrame = (k.frame || 0); this._animationFrame = (k.frame || 0);
this._dx = (k.dx || 0); this._dx = (k.dx || 0);
this._dy = (k.dy || 0); this._dy = (k.dy || 0);
this._dz = (k.dz || 0); this._dz = (k.dz || 0);
this._directionOffset = (k.dd || 0); this._directionOffset = (k.dd || 0);
this._type = _arg_2; this._type = _arg_2;
this._base = (k.base || ''); this._base = (k.base || '');
this._items = new Map(); this._items = new Map();
if(k.items) for(const _local_4 of k.items) this._items.set(_local_4.id, _local_4.base); if(k.items) for(const _local_4 of k.items) this._items.set(_local_4.id, _local_4.base);
@ -40,8 +40,8 @@ export class AvatarAnimationLayerData implements IAnimationLayerData
if(_arg_3) if(_arg_3)
{ {
this._action = new ActiveActionData(_arg_3.state, this.base); this._action = new ActiveActionData(_arg_3.state, this.base);
this._action.definition = _arg_3; this._action.definition = _arg_3;
} }
} }
@ -52,8 +52,8 @@ export class AvatarAnimationLayerData implements IAnimationLayerData
private baseAsInt(): number private baseAsInt(): number
{ {
let k = 0; let k = 0;
let index = 0; let index = 0;
while(index < this._base.length) while(index < this._base.length)
{ {

View File

@ -29,18 +29,18 @@ export class AvatarDataContainer implements IAvatarDataContainer
foreground = foreground.replace('#', ''); foreground = foreground.replace('#', '');
background = background.replace('#', ''); background = background.replace('#', '');
this._foreGround = parseInt(foreground, 16); this._foreGround = parseInt(foreground, 16);
this._backGround = parseInt(background, 16); this._backGround = parseInt(background, 16);
this._colorTransform = null; this._colorTransform = null;
this._rgb = parseInt(foreground, 16); this._rgb = parseInt(foreground, 16);
this._r = ((this._rgb >> 16) & 0xFF); this._r = ((this._rgb >> 16) & 0xFF);
this._g = ((this._rgb >> 8) & 0xFF); this._g = ((this._rgb >> 8) & 0xFF);
this._b = ((this._rgb >> 0) & 0xFF); this._b = ((this._rgb >> 0) & 0xFF);
this._redMultiplier = ((this._r / 0xFF) * 1); this._redMultiplier = ((this._r / 0xFF) * 1);
this._greenMultiplier = ((this._g / 0xFF) * 1); this._greenMultiplier = ((this._g / 0xFF) * 1);
this._blueMultiplier = ((this._b / 0xFF) * 1); this._blueMultiplier = ((this._b / 0xFF) * 1);
this._alphaMultiplier = 1; this._alphaMultiplier = 1;
this._paletteIsGrayscale = true; this._paletteIsGrayscale = true;
if(this._ink === 37) if(this._ink === 37)
{ {

View File

@ -16,15 +16,15 @@ export class SpriteDataContainer implements ISpriteDataContainer
constructor(k: IAnimation, _arg_2: IAssetAnimationSprite) constructor(k: IAnimation, _arg_2: IAssetAnimationSprite)
{ {
this._animation = k; this._animation = k;
this._id = _arg_2.id; this._id = _arg_2.id;
this._ink = _arg_2.ink; this._ink = _arg_2.ink;
this._member = _arg_2.member; this._member = _arg_2.member;
this._hasStaticY = _arg_2.staticY ? true : false; this._hasStaticY = _arg_2.staticY ? true : false;
this._hasDirections = _arg_2.directions ? true : false; this._hasDirections = _arg_2.directions ? true : false;
this._dx = []; this._dx = [];
this._dy = []; this._dy = [];
this._dz = []; this._dz = [];
const directions = _arg_2.directionList; const directions = _arg_2.directionList;

View File

@ -34,8 +34,8 @@ export class AvatarImageBodyPartCache
this._cache.clear(); this._cache.clear();
this._cache = null; this._cache = null;
this._disposed = true; this._disposed = true;
} }
} }

View File

@ -38,16 +38,16 @@ export class AvatarImageCache
constructor(k: AvatarStructure, _arg_2: IAvatarImage, _arg_3: AssetAliasCollection, _arg_4: string) constructor(k: AvatarStructure, _arg_2: IAvatarImage, _arg_3: AssetAliasCollection, _arg_4: string)
{ {
this._structure = k; this._structure = k;
this._avatar = _arg_2; this._avatar = _arg_2;
this._assets = _arg_3; this._assets = _arg_3;
this._scale = _arg_4; this._scale = _arg_4;
this._cache = new Map(); this._cache = new Map();
this._canvas = null; this._canvas = null;
this._disposed = false; this._disposed = false;
this._unionImages = []; this._unionImages = [];
this._matrix = new Matrix(); this._matrix = new Matrix();
this._serverRenderData = []; this._serverRenderData = [];
} }
public dispose(): void public dispose(): void
@ -55,10 +55,10 @@ export class AvatarImageCache
if(this._disposed) return; if(this._disposed) return;
this._structure = null; this._structure = null;
this._avatar = null; this._avatar = null;
this._assets = null; this._assets = null;
this._canvas = null; this._canvas = null;
this._disposed = true; this._disposed = true;
if(this._cache) if(this._cache)
{ {
@ -148,16 +148,16 @@ export class AvatarImageCache
if((((this._geometryType === GeometryType.SITTING) && (k === GeometryType.VERTICAL)) || ((this._geometryType === GeometryType.VERTICAL) && (k === GeometryType.SITTING)) || ((this._geometryType === GeometryType.SNOWWARS_HORIZONTAL) && (k = GeometryType.SNOWWARS_HORIZONTAL)))) if((((this._geometryType === GeometryType.SITTING) && (k === GeometryType.VERTICAL)) || ((this._geometryType === GeometryType.VERTICAL) && (k === GeometryType.SITTING)) || ((this._geometryType === GeometryType.SNOWWARS_HORIZONTAL) && (k = GeometryType.SNOWWARS_HORIZONTAL))))
{ {
this._geometryType = k; this._geometryType = k;
this._canvas = null; this._canvas = null;
return; return;
} }
this.disposeInactiveActions(0); this.disposeInactiveActions(0);
this._geometryType = k; this._geometryType = k;
this._canvas = null; this._canvas = null;
} }
public getImageContainer(k: string, frameNumber: number, _arg_3: boolean = false): AvatarImageBodyPartContainer public getImageContainer(k: string, frameNumber: number, _arg_3: boolean = false): AvatarImageBodyPartContainer
@ -177,10 +177,10 @@ export class AvatarImageCache
if(_local_7.definition.startFromFrameZero) frameCount -= _local_7.startFrame; if(_local_7.definition.startFromFrameZero) frameCount -= _local_7.startFrame;
let _local_8 = _local_7; let _local_8 = _local_7;
let _local_9: string[] = []; let _local_9: string[] = [];
let _local_10: Map<string, string> = new Map(); let _local_10: Map<string, string> = new Map();
const _local_11 = new Point(); const _local_11 = new Point();
if(!((!(_local_7)) || (!(_local_7.definition)))) if(!((!(_local_7)) || (!(_local_7.definition))))
{ {
@ -332,10 +332,10 @@ export class AvatarImageCache
if(!this._canvas) return null; if(!this._canvas) return null;
} }
const isFlipped = AvatarDirectionAngle.DIRECTION_IS_FLIPPED[direction] || false; const isFlipped = AvatarDirectionAngle.DIRECTION_IS_FLIPPED[direction] || false;
let assetPartDefinition = _arg_4.definition.assetPartDefinition; let assetPartDefinition = _arg_4.definition.assetPartDefinition;
let isCacheable = true; let isCacheable = true;
let containerIndex = (containers.length - 1); let containerIndex = (containers.length - 1);
while(containerIndex >= 0) while(containerIndex >= 0)
{ {
@ -347,10 +347,10 @@ export class AvatarImageCache
{ {
if(!((container.partType === 'ri') && !container.partId)) if(!((container.partType === 'ri') && !container.partId))
{ {
const partId = container.partId; const partId = container.partId;
const animationFrame = container.getFrameDefinition(frameCount); const animationFrame = container.getFrameDefinition(frameCount);
let partType = container.partType; let partType = container.partType;
let frameNumber = 0; let frameNumber = 0;
if(animationFrame) if(animationFrame)
@ -361,8 +361,8 @@ export class AvatarImageCache
} }
else frameNumber = container.getFrameIndex(frameCount); else frameNumber = container.getFrameIndex(frameCount);
let assetDirection = direction; let assetDirection = direction;
let flipH = false; let flipH = false;
if(isFlipped) if(isFlipped)
{ {
@ -372,21 +372,21 @@ export class AvatarImageCache
} }
else else
{ {
if(direction === 4) assetDirection = 2; if(direction === 4) assetDirection = 2;
else if(direction === 5) assetDirection = 1; else if(direction === 5) assetDirection = 1;
else if(direction === 6) assetDirection = 0; else if(direction === 6) assetDirection = 0;
if(container.flippedPartType !== partType) partType = container.flippedPartType; if(container.flippedPartType !== partType) partType = container.flippedPartType;
} }
} }
let assetName = (this._scale + '_' + assetPartDefinition + '_' + partType + '_' + partId + '_' + assetDirection + '_' + frameNumber); let assetName = (this._scale + '_' + assetPartDefinition + '_' + partType + '_' + partId + '_' + assetDirection + '_' + frameNumber);
let asset = this._assets.getAsset(assetName); let asset = this._assets.getAsset(assetName);
if(!asset) if(!asset)
{ {
assetName = (this._scale + '_std_' + partType + '_' + partId + '_' + assetDirection + '_0'); assetName = (this._scale + '_std_' + partType + '_' + partId + '_' + assetDirection + '_0');
asset = this._assets.getAsset(assetName); asset = this._assets.getAsset(assetName);
} }
if(asset) if(asset)
@ -409,13 +409,13 @@ export class AvatarImageCache
{ {
const spriteData = new RoomObjectSpriteData(); const spriteData = new RoomObjectSpriteData();
spriteData.name = this._assets.getAssetName(assetName); spriteData.name = this._assets.getAssetName(assetName);
spriteData.x = (-(offset.x) - 33); spriteData.x = (-(offset.x) - 33);
spriteData.y = -(offset.y); spriteData.y = -(offset.y);
spriteData.z = (this._serverRenderData.length * -0.0001); spriteData.z = (this._serverRenderData.length * -0.0001);
spriteData.width = asset.rectangle.width; spriteData.width = asset.rectangle.width;
spriteData.height = asset.rectangle.height; spriteData.height = asset.rectangle.height;
spriteData.flipH = flipH; spriteData.flipH = flipH;
if(assetPartDefinition === 'lay') spriteData.x = (spriteData.x + 53); if(assetPartDefinition === 'lay') spriteData.x = (spriteData.x + 53);
@ -443,9 +443,9 @@ export class AvatarImageCache
if(!this._unionImages.length) return null; if(!this._unionImages.length) return null;
const imageData = this.createUnionImage(this._unionImages, isFlipped); const imageData = this.createUnionImage(this._unionImages, isFlipped);
const canvasOffset = ((this._scale === AvatarScaleType.LARGE) ? (this._canvas.height - 16) : (this._canvas.height - 8)); const canvasOffset = ((this._scale === AvatarScaleType.LARGE) ? (this._canvas.height - 16) : (this._canvas.height - 8));
const offset = new Point(-(imageData.regPoint.x), (canvasOffset - imageData.regPoint.y)); const offset = new Point(-(imageData.regPoint.x), (canvasOffset - imageData.regPoint.y));
if(isFlipped && (assetPartDefinition !== 'lay')) offset.x = (offset.x + ((this._scale === AvatarScaleType.LARGE) ? 67 : 31)); if(isFlipped && (assetPartDefinition !== 'lay')) offset.x = (offset.x + ((this._scale === AvatarScaleType.LARGE) ? 67 : 31));
@ -479,13 +479,13 @@ export class AvatarImageCache
for(const data of k) data && bounds.enlarge(data.offsetRect); for(const data of k) data && bounds.enlarge(data.offsetRect);
const point = new Point(-(bounds.x), -(bounds.y)); const point = new Point(-(bounds.x), -(bounds.y));
const container = new NitroContainer(); const container = new NitroContainer();
const sprite = new NitroSprite(Texture.EMPTY); const sprite = new NitroSprite(Texture.EMPTY);
sprite.width = bounds.width; sprite.width = bounds.width;
sprite.height = bounds.height; sprite.height = bounds.height;
container.addChild(sprite); container.addChild(sprite);
@ -493,10 +493,10 @@ export class AvatarImageCache
{ {
if(!data) continue; if(!data) continue;
const texture = data.texture; const texture = data.texture;
const color = data.colorTransform; const color = data.colorTransform;
const flipH = (!(isFlipped && data.flipH) && (isFlipped || data.flipH)); const flipH = (!(isFlipped && data.flipH) && (isFlipped || data.flipH));
const regPoint = point.clone(); const regPoint = point.clone();
regPoint.x -= data.regPoint.x; regPoint.x -= data.regPoint.x;
regPoint.y -= data.regPoint.y; regPoint.y -= data.regPoint.y;
@ -505,7 +505,7 @@ export class AvatarImageCache
if(flipH) if(flipH)
{ {
this._matrix.a = -1; this._matrix.a = -1;
this._matrix.tx = ((data.rect.x + data.rect.width) + regPoint.x); this._matrix.tx = ((data.rect.x + data.rect.width) + regPoint.x);
this._matrix.ty = (regPoint.y - data.rect.y); this._matrix.ty = (regPoint.y - data.rect.y);
} }

View File

@ -8,8 +8,8 @@ export class AvatarImageDirectionCache
constructor(k: AvatarImagePartContainer[]) constructor(k: AvatarImagePartContainer[])
{ {
this._partList = k; this._partList = k;
this._images = new Map(); this._images = new Map();
} }
public dispose(): void public dispose(): void

View File

@ -13,21 +13,21 @@ export class ImageData
constructor(texture: Texture<Resource>, rectangle: Rectangle, _arg_3: Point, flipH: boolean, color: number, container: Container = null) constructor(texture: Texture<Resource>, rectangle: Rectangle, _arg_3: Point, flipH: boolean, color: number, container: Container = null)
{ {
this._texture = texture; this._texture = texture;
this._container = container; this._container = container;
this._rect = rectangle; this._rect = rectangle;
this._regPoint = _arg_3; this._regPoint = _arg_3;
this._flipH = flipH; this._flipH = flipH;
this._colorTransform = color; this._colorTransform = color;
if(flipH) this._regPoint.x = (-(this._regPoint.x) + rectangle.width); if(flipH) this._regPoint.x = (-(this._regPoint.x) + rectangle.width);
} }
public dispose(): void public dispose(): void
{ {
this._texture = null; this._texture = null;
this._regPoint = null; this._regPoint = null;
this._colorTransform = null; this._colorTransform = null;
} }
public get texture(): Texture<Resource> public get texture(): Texture<Resource>

View File

@ -1,51 +1,51 @@
export class AvatarAction export class AvatarAction
{ {
public static CARRY_OBJECT = 'cri'; public static CARRY_OBJECT = 'cri';
public static DANCE = 'dance'; public static DANCE = 'dance';
public static EFFECT = 'fx'; public static EFFECT = 'fx';
public static EXPRESSION = 'expression'; public static EXPRESSION = 'expression';
public static EXPRESSION_BLOW_A_KISS = 'blow'; public static EXPRESSION_BLOW_A_KISS = 'blow';
public static EXPRESSION_CRY = 'cry'; public static EXPRESSION_CRY = 'cry';
public static EXPRESSION_IDLE = 'idle'; public static EXPRESSION_IDLE = 'idle';
public static EXPRESSION_LAUGH = 'laugh'; public static EXPRESSION_LAUGH = 'laugh';
public static EXPRESSION_RESPECT = 'respect'; public static EXPRESSION_RESPECT = 'respect';
public static EXPRESSION_RIDE_JUMP = 'ridejump'; public static EXPRESSION_RIDE_JUMP = 'ridejump';
public static EXPRESSION_SNOWBOARD_OLLIE = 'sbollie'; public static EXPRESSION_SNOWBOARD_OLLIE = 'sbollie';
public static EXPRESSION_SNOWBORD_360 = 'sb360'; public static EXPRESSION_SNOWBORD_360 = 'sb360';
public static EXPRESSION_WAVE = 'wave'; public static EXPRESSION_WAVE = 'wave';
public static GESTURE = 'gest'; public static GESTURE = 'gest';
public static GESTURE_AGGRAVATED = 'agr'; public static GESTURE_AGGRAVATED = 'agr';
public static GESTURE_SAD = 'sad'; public static GESTURE_SAD = 'sad';
public static GESTURE_SMILE = 'sml'; public static GESTURE_SMILE = 'sml';
public static GESTURE_SURPRISED = 'srp'; public static GESTURE_SURPRISED = 'srp';
public static GUIDE_STATUS = 'guide'; public static GUIDE_STATUS = 'guide';
public static MUTED = 'muted'; public static MUTED = 'muted';
public static PET_GESTURE_BLINK = 'eyb'; public static PET_GESTURE_BLINK = 'eyb';
public static PET_GESTURE_CRAZY = 'crz'; public static PET_GESTURE_CRAZY = 'crz';
public static PET_GESTURE_JOY = 'joy'; public static PET_GESTURE_JOY = 'joy';
public static PET_GESTURE_MISERABLE = 'mis'; public static PET_GESTURE_MISERABLE = 'mis';
public static PET_GESTURE_PUZZLED = 'puz'; public static PET_GESTURE_PUZZLED = 'puz';
public static PET_GESTURE_TONGUE = 'tng'; public static PET_GESTURE_TONGUE = 'tng';
public static PLAYING_GAME = 'playing_game'; public static PLAYING_GAME = 'playing_game';
public static POSTURE = 'posture'; public static POSTURE = 'posture';
public static POSTURE_FLOAT = 'float'; public static POSTURE_FLOAT = 'float';
public static POSTURE_LAY = 'lay'; public static POSTURE_LAY = 'lay';
public static POSTURE_SIT = 'sit'; public static POSTURE_SIT = 'sit';
public static POSTURE_STAND = 'std'; public static POSTURE_STAND = 'std';
public static POSTURE_SWIM = 'swim'; public static POSTURE_SWIM = 'swim';
public static POSTURE_WALK = 'mv'; public static POSTURE_WALK = 'mv';
public static SIGN = 'sign'; public static SIGN = 'sign';
public static SLEEP = 'sleep'; public static SLEEP = 'sleep';
public static SNOWWAR_DIE_BACK = 'swdieback'; public static SNOWWAR_DIE_BACK = 'swdieback';
public static SNOWWAR_DIE_FRONT = 'swdiefront'; public static SNOWWAR_DIE_FRONT = 'swdiefront';
public static SNOWWAR_PICK = 'swpick'; public static SNOWWAR_PICK = 'swpick';
public static SNOWWAR_RUN = 'swrun'; public static SNOWWAR_RUN = 'swrun';
public static SNOWWAR_THROW = 'swthrow'; public static SNOWWAR_THROW = 'swthrow';
public static TALK = 'talk'; public static TALK = 'talk';
public static BLINK = 'blink'; public static BLINK = 'blink';
public static TYPING = 'typing'; public static TYPING = 'typing';
public static USE_OBJECT = 'usei'; public static USE_OBJECT = 'usei';
public static VOTE = 'vote'; public static VOTE = 'vote';
public static GESTURE_MAP = [ '', AvatarAction.GESTURE_SMILE, AvatarAction.GESTURE_AGGRAVATED, AvatarAction.GESTURE_SURPRISED, AvatarAction.GESTURE_SAD, AvatarAction.PET_GESTURE_JOY, AvatarAction.PET_GESTURE_CRAZY, AvatarAction.PET_GESTURE_TONGUE, AvatarAction.PET_GESTURE_BLINK, AvatarAction.PET_GESTURE_MISERABLE, AvatarAction.PET_GESTURE_PUZZLED ]; public static GESTURE_MAP = [ '', AvatarAction.GESTURE_SMILE, AvatarAction.GESTURE_AGGRAVATED, AvatarAction.GESTURE_SURPRISED, AvatarAction.GESTURE_SAD, AvatarAction.PET_GESTURE_JOY, AvatarAction.PET_GESTURE_CRAZY, AvatarAction.PET_GESTURE_TONGUE, AvatarAction.PET_GESTURE_BLINK, AvatarAction.PET_GESTURE_MISERABLE, AvatarAction.PET_GESTURE_PUZZLED ];
@ -108,19 +108,19 @@ export class AvatarAction
public static idToAvatarActionState(id: string): string public static idToAvatarActionState(id: string): string
{ {
if(id === 'Lay') return 'lay'; if(id === 'Lay') return 'lay';
if(id === 'Float') return 'float'; if(id === 'Float') return 'float';
if(id === 'Swim') return 'swim'; if(id === 'Swim') return 'swim';
if(id === 'Sit') return 'sit'; if(id === 'Sit') return 'sit';
if(id === 'Respect') return 'respect'; if(id === 'Respect') return 'respect';
if(id === 'Wave') return 'wave'; if(id === 'Wave') return 'wave';
if(id === 'Idle') return 'idle'; if(id === 'Idle') return 'idle';
if(id === 'Dance') return 'dance'; if(id === 'Dance') return 'dance';
if(id === 'UseItem') return 'usei'; if(id === 'UseItem') return 'usei';
if(id === 'CarryItem') return 'cri'; if(id === 'CarryItem') return 'cri';
if(id === 'Talk') return 'talk'; if(id === 'Talk') return 'talk';
if(id === 'Sleep') return 'Sleep'; if(id === 'Sleep') return 'Sleep';
if(id === 'Move') return 'mv'; if(id === 'Move') return 'mv';
return 'std'; return 'std';
} }

View File

@ -1,7 +1,7 @@
export class AvatarDirectionAngle export class AvatarDirectionAngle
{ {
public static DIRECTION_TO_ANGLE: number[] = [45, 90, 135, 180, 225, 270, 315, 0]; //_Str_2204 public static DIRECTION_TO_ANGLE: number[] = [45, 90, 135, 180, 225, 270, 315, 0]; //_Str_2204
public static DIRECTION_IS_FLIPPED: boolean[] = [false, false, false, false, true, true, true, false]; //_Str_1859 public static DIRECTION_IS_FLIPPED: boolean[] = [false, false, false, false, true, true, true, false]; //_Str_1859
public static MIN_DIRECTION: number = 0; //_Str_1562 public static MIN_DIRECTION: number = 0; //_Str_1562
public static MAX_DIRECTION: number = 7; //_Str_1257 public static MAX_DIRECTION: number = 7; //_Str_1257
} }

View File

@ -1,10 +1,10 @@
export class AvatarEditorFigureCategory export class AvatarEditorFigureCategory
{ {
public static GENERIC: string = 'hd'; public static GENERIC: string = 'hd';
public static HEAD: string = 'head'; public static HEAD: string = 'head';
public static TORSO: string = 'torso'; public static TORSO: string = 'torso';
public static LEGS: string = 'legs'; public static LEGS: string = 'legs';
public static HOTLOOKS: string = 'hotlooks'; public static HOTLOOKS: string = 'hotlooks';
public static WARDROBE: string = 'wardrobe'; public static WARDROBE: string = 'wardrobe';
public static EFFECTS: string = 'effects'; public static EFFECTS: string = 'effects';
} }

View File

@ -1,7 +1,7 @@
export class AvatarEditorInstanceId export class AvatarEditorInstanceId
{ {
public static OWN_AVATAR_EDITOR: number = 0; public static OWN_AVATAR_EDITOR: number = 0;
public static FURNITURE_AVATAR_EDITOR: number = 1; public static FURNITURE_AVATAR_EDITOR: number = 1;
public static BOT_EDITOR: number = 2; public static BOT_EDITOR: number = 2;
public static DEV_TOOL_EDITOR: number = 3; public static DEV_TOOL_EDITOR: number = 3;
} }

View File

@ -1,5 +1,5 @@
export class AvatarEditorSideCategory export class AvatarEditorSideCategory
{ {
public static NOTHING: string = 'nothing'; public static NOTHING: string = 'nothing';
public static WARDROBE: string = 'wardrobe'; public static WARDROBE: string = 'wardrobe';
} }

View File

@ -1,29 +1,29 @@
export class AvatarFigurePartType export class AvatarFigurePartType
{ {
public static BODY: string = 'bd'; public static BODY: string = 'bd';
public static SHOES: string = 'sh'; public static SHOES: string = 'sh';
public static LEGS: string = 'lg'; public static LEGS: string = 'lg';
public static CHEST: string = 'ch'; public static CHEST: string = 'ch';
public static WAIST_ACCESSORY: string = 'wa'; public static WAIST_ACCESSORY: string = 'wa';
public static CHEST_ACCESSORY: string = 'ca'; public static CHEST_ACCESSORY: string = 'ca';
public static HEAD: string = 'hd'; public static HEAD: string = 'hd';
public static HAIR: string = 'hr'; public static HAIR: string = 'hr';
public static FACE_ACCESSORY: string = 'fa'; public static FACE_ACCESSORY: string = 'fa';
public static EYE_ACCESSORY: string = 'ea'; public static EYE_ACCESSORY: string = 'ea';
public static HEAD_ACCESSORY: string = 'ha'; public static HEAD_ACCESSORY: string = 'ha';
public static HEAD_ACCESSORY_EXTRA: string = 'he'; public static HEAD_ACCESSORY_EXTRA: string = 'he';
public static COAT_CHEST: string = 'cc'; public static COAT_CHEST: string = 'cc';
public static CHEST_PRINT: string = 'cp'; public static CHEST_PRINT: string = 'cp';
public static LEFT_HAND_ITEM: string = 'li'; public static LEFT_HAND_ITEM: string = 'li';
public static LEFT_HAND: string = 'lh'; public static LEFT_HAND: string = 'lh';
public static LEFT_SLEEVE: string = 'ls'; public static LEFT_SLEEVE: string = 'ls';
public static RIGHT_HAND: string = 'rh'; public static RIGHT_HAND: string = 'rh';
public static RIGHT_SLEEVE: string = 'rs'; public static RIGHT_SLEEVE: string = 'rs';
public static FACE: string = 'fc'; public static FACE: string = 'fc';
public static EYES: string = 'ey'; public static EYES: string = 'ey';
public static HAIR_BIG: string = 'hrb'; public static HAIR_BIG: string = 'hrb';
public static RIGHT_HAND_ITEM: string = 'ri'; public static RIGHT_HAND_ITEM: string = 'ri';
public static LEFT_COAT_SLEEVE: string = 'lc'; public static LEFT_COAT_SLEEVE: string = 'lc';
public static RIGHT_COAT_SLEEVE: string = 'rc'; public static RIGHT_COAT_SLEEVE: string = 'rc';
public static FIGURE_SETS: string[] = [ AvatarFigurePartType.SHOES, AvatarFigurePartType.LEGS, AvatarFigurePartType.CHEST, AvatarFigurePartType.WAIST_ACCESSORY, AvatarFigurePartType.CHEST_ACCESSORY, AvatarFigurePartType.HEAD, AvatarFigurePartType.HAIR, AvatarFigurePartType.FACE_ACCESSORY, AvatarFigurePartType.EYE_ACCESSORY, AvatarFigurePartType.HEAD_ACCESSORY, AvatarFigurePartType.HEAD_ACCESSORY_EXTRA, AvatarFigurePartType.COAT_CHEST, AvatarFigurePartType.CHEST_PRINT ]; public static FIGURE_SETS: string[] = [ AvatarFigurePartType.SHOES, AvatarFigurePartType.LEGS, AvatarFigurePartType.CHEST, AvatarFigurePartType.WAIST_ACCESSORY, AvatarFigurePartType.CHEST_ACCESSORY, AvatarFigurePartType.HEAD, AvatarFigurePartType.HAIR, AvatarFigurePartType.FACE_ACCESSORY, AvatarFigurePartType.EYE_ACCESSORY, AvatarFigurePartType.HEAD_ACCESSORY, AvatarFigurePartType.HEAD_ACCESSORY_EXTRA, AvatarFigurePartType.COAT_CHEST, AvatarFigurePartType.CHEST_PRINT ];
} }

View File

@ -1,6 +1,6 @@
export class AvatarGuideStatus export class AvatarGuideStatus
{ {
public static NONE: number = 0; public static NONE: number = 0;
public static GUIDE: number = 1; public static GUIDE: number = 1;
public static REQUESTER: number = 2; public static REQUESTER: number = 2;
} }

View File

@ -1,8 +1,8 @@
export class GeometryType export class GeometryType
{ {
public static VERTICAL: string = 'vertical'; public static VERTICAL: string = 'vertical';
public static SITTING: string = 'sitting'; public static SITTING: string = 'sitting';
public static HORIZONTAL: string = 'horizontal'; public static HORIZONTAL: string = 'horizontal';
public static SWIM: string = 'swim'; public static SWIM: string = 'swim';
public static SNOWWARS_HORIZONTAL: string = 'swhorizontal'; public static SNOWWARS_HORIZONTAL: string = 'swhorizontal';
} }

View File

@ -1,7 +1,7 @@
export class RenderMode export class RenderMode
{ {
public static TOOL: string = 'tool'; public static TOOL: string = 'tool';
public static COMPONENT: string = 'component'; public static COMPONENT: string = 'component';
public static ONLINE_TOOL: string = 'online_tool'; public static ONLINE_TOOL: string = 'online_tool';
public static LOCAL_ONLY: string = 'local_only'; public static LOCAL_ONLY: string = 'local_only';
} }

View File

@ -16,12 +16,12 @@ export class AvatarModelGeometry
constructor(k: any) constructor(k: any)
{ {
this._camera = new Vector3D(0, 0, 10); this._camera = new Vector3D(0, 0, 10);
this._avatarSet = new AvatarSet(k.avatarSets[0]); this._avatarSet = new AvatarSet(k.avatarSets[0]);
this._geometryTypes = new Map(); this._geometryTypes = new Map();
this._itemIdToBodyPartMap = new Map(); this._itemIdToBodyPartMap = new Map();
this._transformation = new Matrix4x4(); this._transformation = new Matrix4x4();
this._canvases = new Map(); this._canvases = new Map();
const camera = k.camera; const camera = k.camera;
@ -38,8 +38,8 @@ export class AvatarModelGeometry
{ {
if(!canvas) continue; if(!canvas) continue;
const scale = canvas.scale; const scale = canvas.scale;
const geometries = new Map(); const geometries = new Map();
if(canvas.geometries && (canvas.geometries.length > 0)) if(canvas.geometries && (canvas.geometries.length > 0))
{ {
@ -63,8 +63,8 @@ export class AvatarModelGeometry
{ {
if(!type) continue; if(!type) continue;
const bodyParts: Map<string, GeometryBodyPart> = new Map(); const bodyParts: Map<string, GeometryBodyPart> = new Map();
const itemIds: Map<string, GeometryBodyPart> = new Map(); const itemIds: Map<string, GeometryBodyPart> = new Map();
if(type.bodyParts && (type.bodyParts.length > 0)) if(type.bodyParts && (type.bodyParts.length > 0))
{ {
@ -211,7 +211,7 @@ export class AvatarModelGeometry
private getBodyPartsInAvatarSet(k: Map<string, GeometryBodyPart>, _arg_2: string): GeometryBodyPart[] private getBodyPartsInAvatarSet(k: Map<string, GeometryBodyPart>, _arg_2: string): GeometryBodyPart[]
{ {
const parts = this.getBodyPartIdsInAvatarSet(_arg_2); const parts = this.getBodyPartIdsInAvatarSet(_arg_2);
const geometryParts = []; const geometryParts = [];
for(const part of parts) for(const part of parts)
@ -233,10 +233,10 @@ export class AvatarModelGeometry
{ {
if(!_arg_3) return []; if(!_arg_3) return [];
const geometryParts = this.getBodyPartsOfType(_arg_3); const geometryParts = this.getBodyPartsOfType(_arg_3);
const parts = this.getBodyPartsInAvatarSet(geometryParts, k); const parts = this.getBodyPartsInAvatarSet(geometryParts, k);
const sets: [ number, GeometryBodyPart ][] = []; const sets: [ number, GeometryBodyPart ][] = [];
const ids: string[] = []; const ids: string[] = [];
this._transformation = Matrix4x4.getYRotationMatrix(_arg_2); this._transformation = Matrix4x4.getYRotationMatrix(_arg_2);

View File

@ -8,11 +8,11 @@
constructor(k: any) constructor(k: any)
{ {
this._id = k.id; this._id = k.id;
this._isMain = k.main || false; this._isMain = k.main || false;
this._avatarSets = new Map(); this._avatarSets = new Map();
this._bodyParts = []; this._bodyParts = [];
this._allBodyParts = []; this._allBodyParts = [];
if(k.avatarSets && (k.avatarSets.length > 0)) if(k.avatarSets && (k.avatarSets.length > 0))
{ {

View File

@ -15,10 +15,10 @@ export class GeometryBodyPart extends Node3D
{ {
super(parseFloat(k.x), parseFloat(k.y), parseFloat(k.z)); super(parseFloat(k.x), parseFloat(k.y), parseFloat(k.z));
this._id = k.id; this._id = k.id;
this._radius = parseFloat(k.radius); this._radius = parseFloat(k.radius);
this._parts = new Map(); this._parts = new Map();
this._dynamicParts = new Map(); this._dynamicParts = new Map();
if(k.items && (k.items.length > 0)) if(k.items && (k.items.length > 0))
{ {
@ -35,7 +35,7 @@ export class GeometryBodyPart extends Node3D
public getDynamicParts(k: IAvatarImage): GeometryItem[] public getDynamicParts(k: IAvatarImage): GeometryItem[]
{ {
const existing = this._dynamicParts.get(k); const existing = this._dynamicParts.get(k);
const parts: GeometryItem[] = []; const parts: GeometryItem[] = [];
if(existing) if(existing)

View File

@ -13,14 +13,14 @@ export class GeometryItem extends Node3D
{ {
super(parseFloat(k.x), parseFloat(k.y), parseFloat(k.z)); super(parseFloat(k.x), parseFloat(k.y), parseFloat(k.z));
this._id = k.id; this._id = k.id;
this._radius = parseFloat(k.radius); this._radius = parseFloat(k.radius);
this._normal = new Vector3D(parseFloat(k.nx), parseFloat(k.ny), parseFloat(k.nz)); this._normal = new Vector3D(parseFloat(k.nx), parseFloat(k.ny), parseFloat(k.nz));
this._isDoubleSided = k.double || false; this._isDoubleSided = k.double || false;
this._isDynamic = _arg_2; this._isDynamic = _arg_2;
} }
public getDistance(k: Vector3D): number public getDistance(k: Vector3D): number
{ {
const _local_2 = Math.abs(((k.z - this.transformedLocation.z) - this._radius)); const _local_2 = Math.abs(((k.z - this.transformedLocation.z) - this._radius));
const _local_3 = Math.abs(((k.z - this.transformedLocation.z) + this._radius)); const _local_3 = Math.abs(((k.z - this.transformedLocation.z) + this._radius));

View File

@ -2,8 +2,8 @@
export class Matrix4x4 export class Matrix4x4
{ {
public static IDENTITY:Matrix4x4 = new Matrix4x4(1, 0, 0, 0, 1, 0, 0, 0, 1); public static IDENTITY:Matrix4x4 = new Matrix4x4(1, 0, 0, 0, 1, 0, 0, 0, 1);
private static TOLERANS: number = 1E-18; private static TOLERANS: number = 1E-18;
private _data: number[]; private _data: number[];
@ -57,14 +57,14 @@ export class Matrix4x4
public multiply(k:Matrix4x4): Matrix4x4 public multiply(k:Matrix4x4): Matrix4x4
{ {
const _local_2 = (((this._data[0] * k.data[0]) + (this._data[1] * k.data[3])) + (this._data[2] * k.data[6])); const _local_2 = (((this._data[0] * k.data[0]) + (this._data[1] * k.data[3])) + (this._data[2] * k.data[6]));
const _local_3 = (((this._data[0] * k.data[1]) + (this._data[1] * k.data[4])) + (this._data[2] * k.data[7])); const _local_3 = (((this._data[0] * k.data[1]) + (this._data[1] * k.data[4])) + (this._data[2] * k.data[7]));
const _local_4 = (((this._data[0] * k.data[2]) + (this._data[1] * k.data[5])) + (this._data[2] * k.data[8])); const _local_4 = (((this._data[0] * k.data[2]) + (this._data[1] * k.data[5])) + (this._data[2] * k.data[8]));
const _local_5 = (((this._data[3] * k.data[0]) + (this._data[4] * k.data[3])) + (this._data[5] * k.data[6])); const _local_5 = (((this._data[3] * k.data[0]) + (this._data[4] * k.data[3])) + (this._data[5] * k.data[6]));
const _local_6 = (((this._data[3] * k.data[1]) + (this._data[4] * k.data[4])) + (this._data[5] * k.data[7])); const _local_6 = (((this._data[3] * k.data[1]) + (this._data[4] * k.data[4])) + (this._data[5] * k.data[7]));
const _local_7 = (((this._data[3] * k.data[2]) + (this._data[4] * k.data[5])) + (this._data[5] * k.data[8])); const _local_7 = (((this._data[3] * k.data[2]) + (this._data[4] * k.data[5])) + (this._data[5] * k.data[8]));
const _local_8 = (((this._data[6] * k.data[0]) + (this._data[7] * k.data[3])) + (this._data[8] * k.data[6])); const _local_8 = (((this._data[6] * k.data[0]) + (this._data[7] * k.data[3])) + (this._data[8] * k.data[6]));
const _local_9 = (((this._data[6] * k.data[1]) + (this._data[7] * k.data[4])) + (this._data[8] * k.data[7])); const _local_9 = (((this._data[6] * k.data[1]) + (this._data[7] * k.data[4])) + (this._data[8] * k.data[7]));
const _local_10 = (((this._data[6] * k.data[2]) + (this._data[7] * k.data[5])) + (this._data[8] * k.data[8])); const _local_10 = (((this._data[6] * k.data[2]) + (this._data[7] * k.data[5])) + (this._data[8] * k.data[8]));
return new Matrix4x4(_local_2, _local_3, _local_4, _local_5, _local_6, _local_7, _local_8, _local_9, _local_10); return new Matrix4x4(_local_2, _local_3, _local_4, _local_5, _local_6, _local_7, _local_8, _local_9, _local_10);

View File

@ -9,9 +9,9 @@ export class Node3D
constructor(k: number, _arg_2: number, _arg_3: number) constructor(k: number, _arg_2: number, _arg_3: number)
{ {
this._location = new Vector3D(k, _arg_2, _arg_3); this._location = new Vector3D(k, _arg_2, _arg_3);
this._transformedLocation = new Vector3D(); this._transformedLocation = new Vector3D();
this._needsTransformation = false; this._needsTransformation = false;
if(((!(k == 0)) || (!(_arg_2 == 0))) || (!(_arg_3 == 0))) this._needsTransformation = true; if(((!(k == 0)) || (!(_arg_2 == 0))) || (!(_arg_3 == 0))) this._needsTransformation = true;
} }

View File

@ -6,8 +6,8 @@ export class PetCustomPart
constructor(layerId: number, partId: number, paletteId: number) constructor(layerId: number, partId: number, paletteId: number)
{ {
this._layerId = layerId; this._layerId = layerId;
this._partId = partId; this._partId = partId;
this._paletteId = paletteId; this._paletteId = paletteId;
} }

View File

@ -14,17 +14,17 @@ export class PetFigureData
constructor(k: string) constructor(k: string)
{ {
this._typeId = this.getTypeId(k); this._typeId = this.getTypeId(k);
this._paletteId = this.getPaletteId(k); this._paletteId = this.getPaletteId(k);
this._color = this.getColor(k); this._color = this.getColor(k);
this._headOnly = this.getHeadOnly(k); this._headOnly = this.getHeadOnly(k);
const _local_2 = this.getCustomData(k); const _local_2 = this.getCustomData(k);
this._customLayerIds = this.getCustomLayerIds(_local_2); this._customLayerIds = this.getCustomLayerIds(_local_2);
this._customPartIds = this.getCustomPartIds(_local_2); this._customPartIds = this.getCustomPartIds(_local_2);
this._customPaletteIds = this.getCustomPaletteIds(_local_2); this._customPaletteIds = this.getCustomPaletteIds(_local_2);
this._customParts = []; this._customParts = [];
let i = 0; let i = 0;
@ -114,16 +114,16 @@ export class PetFigureData
if(k) if(k)
{ {
const _local_3 = k.split(' '); const _local_3 = k.split(' ');
const _local_4 = ((this._headOnly) ? 1 : 0); const _local_4 = ((this._headOnly) ? 1 : 0);
const _local_5 = (4 + _local_4); const _local_5 = (4 + _local_4);
if(_local_3.length > _local_5) if(_local_3.length > _local_5)
{ {
const _local_6 = (3 + _local_4); const _local_6 = (3 + _local_4);
const _local_7 = parseInt(_local_3[_local_6]); const _local_7 = parseInt(_local_3[_local_6]);
_local_2 = _local_3.slice(_local_5, (_local_5 + (_local_7 * 3))); _local_2 = _local_3.slice(_local_5, (_local_5 + (_local_7 * 3)));
} }
} }

View File

@ -1,38 +1,38 @@
export class PetType export class PetType
{ {
public static DOG: number = 0; public static DOG: number = 0;
public static CAT: number = 1; public static CAT: number = 1;
public static CROCODILE: number = 2; public static CROCODILE: number = 2;
public static TERRIER: number = 3; public static TERRIER: number = 3;
public static BEAR: number = 4; public static BEAR: number = 4;
public static PIG: number = 5; public static PIG: number = 5;
public static LION: number = 6; public static LION: number = 6;
public static RHINO: number = 7; public static RHINO: number = 7;
public static SPIDER: number = 8; public static SPIDER: number = 8;
public static TURTLE: number = 9; public static TURTLE: number = 9;
public static CHICKEN: number = 10; public static CHICKEN: number = 10;
public static FROG: number = 11; public static FROG: number = 11;
public static DRAGON: number = 12; public static DRAGON: number = 12;
public static MONSTER: number = 13; public static MONSTER: number = 13;
public static MONKEY: number = 14; public static MONKEY: number = 14;
public static HORSE: number = 15; public static HORSE: number = 15;
public static MONSTERPLANT: number = 16; public static MONSTERPLANT: number = 16;
public static BUNNY: number = 17; public static BUNNY: number = 17;
public static BUNNYEVIL: number = 18; public static BUNNYEVIL: number = 18;
public static BUNNYDEPRESSED: number = 19; public static BUNNYDEPRESSED: number = 19;
public static BUNNYLOVE: number = 20; public static BUNNYLOVE: number = 20;
public static PIGEONGOOD: number = 21; public static PIGEONGOOD: number = 21;
public static PIGEONEVIL: number = 22; public static PIGEONEVIL: number = 22;
public static DEMONMONKEY: number = 23; public static DEMONMONKEY: number = 23;
public static BABYBEAR: number = 24; public static BABYBEAR: number = 24;
public static BABYTERRIER: number = 25; public static BABYTERRIER: number = 25;
public static GNOME: number = 26; public static GNOME: number = 26;
public static LEPRECHAUN: number = 27; public static LEPRECHAUN: number = 27;
public static KITTENBABY: number = 28; public static KITTENBABY: number = 28;
public static PUPPYBABY: number = 29; public static PUPPYBABY: number = 29;
public static PIGLETNBABY: number = 30; public static PIGLETNBABY: number = 30;
public static HALOOMPA: number = 31; public static HALOOMPA: number = 31;
public static FOOLS: number = 32; public static FOOLS: number = 32;
public static PTEROSAUR: number = 33; public static PTEROSAUR: number = 33;
public static VELOCIRAPTOR: number = 34; public static VELOCIRAPTOR: number = 34;
} }

View File

@ -11,10 +11,10 @@ export class AvatarCanvas
constructor(k: any, _arg_2: string) constructor(k: any, _arg_2: string)
{ {
this._id = k.id; this._id = k.id;
this._width = k.width; this._width = k.width;
this._height = k.height; this._height = k.height;
this._offset = new Point(k.dx, k.dy); this._offset = new Point(k.dx, k.dy);
if(_arg_2 == AvatarScaleType.LARGE) this._regPoint = new Point(((this._width - 64) / 2), 0); if(_arg_2 == AvatarScaleType.LARGE) this._regPoint = new Point(((this._width - 64) / 2), 0);
else this._regPoint = new Point(((this._width - 32) / 2), 0); else this._regPoint = new Point(((this._width - 32) / 2), 0);

View File

@ -14,8 +14,8 @@ export class FigureSetData implements IFigureSetData, IStructureData
constructor() constructor()
{ {
this._palettes = new Map(); this._palettes = new Map();
this._setTypes = new Map(); this._setTypes = new Map();
} }
public dispose(): void public dispose(): void

View File

@ -11,8 +11,8 @@ export class PartSetsData implements IFigureSetData
constructor() constructor()
{ {
this._parts = new Map(); this._parts = new Map();
this._activePartSets = new Map(); this._activePartSets = new Map();
} }
public parse(data: any): boolean public parse(data: any): boolean

View File

@ -13,11 +13,11 @@ export class AnimationAction
constructor(data: any) constructor(data: any)
{ {
this._id = data.id; this._id = data.id;
this._actionParts = new Map(); this._actionParts = new Map();
this._bodyPartOffsets = new Map(); this._bodyPartOffsets = new Map();
this._frameCount = 0; this._frameCount = 0;
this._frameIndexes = []; this._frameIndexes = [];
if(data.parts && (data.parts.length > 0)) if(data.parts && (data.parts.length > 0))
{ {
@ -104,9 +104,9 @@ export class AnimationAction
public getFrameBodyPartOffset(frameId: number, frameCount: number, partId: string): Point public getFrameBodyPartOffset(frameId: number, frameCount: number, partId: string): Point
{ {
const frameIndex = (frameCount % this._frameIndexes.length); const frameIndex = (frameCount % this._frameIndexes.length);
const frameNumber = this._frameIndexes[frameIndex]; const frameNumber = this._frameIndexes[frameIndex];
const offsets = this._bodyPartOffsets.get(frameNumber); const offsets = this._bodyPartOffsets.get(frameNumber);
if(!offsets) return AnimationAction.DEFAULT_OFFSET; if(!offsets) return AnimationAction.DEFAULT_OFFSET;

View File

@ -5,8 +5,8 @@ export class AvatarAnimationFrame
constructor(data: any) constructor(data: any)
{ {
this._number = data.number; this._number = data.number;
this._assetPartDefinition = data.assetPartDefinition || null; this._assetPartDefinition = data.assetPartDefinition || null;
} }
public get number(): number public get number(): number

View File

@ -14,12 +14,12 @@ export class FigurePart implements IFigurePart
{ {
if(!data) throw new Error('invalid_data'); if(!data) throw new Error('invalid_data');
this._id = data.id; this._id = data.id;
this._type = data.type; this._type = data.type;
this._index = data.index; this._index = data.index;
this._colorLayerIndex = data.colorindex; this._colorLayerIndex = data.colorindex;
this._paletteMapId = -1; this._paletteMapId = -1;
this._breed = -1; this._breed = -1;
} }
public dispose(): void public dispose(): void

View File

@ -20,20 +20,20 @@ export class FigurePartSet implements IFigurePartSet
{ {
if(!type || !data) throw new Error('invalid_data'); if(!type || !data) throw new Error('invalid_data');
this._id = data.id; this._id = data.id;
this._type = type; this._type = type;
this._gender = data.gender; this._gender = data.gender;
this._clubLevel = data.club; this._clubLevel = data.club;
this._isColorable = data.colorable; this._isColorable = data.colorable;
this._isSelectable = data.selectable; this._isSelectable = data.selectable;
this._parts = []; this._parts = [];
this._hiddenLayers = []; this._hiddenLayers = [];
this._isPreSelectable = data.preselectable; this._isPreSelectable = data.preselectable;
this._isSellable = data.sellable; this._isSellable = data.sellable;
for(const part of data.parts) for(const part of data.parts)
{ {
const newPart = new FigurePart(part); const newPart = new FigurePart(part);
const partIndex = this.getPartIndex(newPart); const partIndex = this.getPartIndex(newPart);
if(partIndex !== -1) this._parts.splice(partIndex, 0, newPart); if(partIndex !== -1) this._parts.splice(partIndex, 0, newPart);
@ -55,8 +55,8 @@ export class FigurePartSet implements IFigurePartSet
figurePart.dispose(); figurePart.dispose();
} }
this._parts = null; this._parts = null;
this._hiddenLayers = null; this._hiddenLayers = null;
} }
private getPartIndex(part: FigurePart): number private getPartIndex(part: FigurePart): number

View File

@ -13,8 +13,8 @@ export class Palette implements IPalette
{ {
if(!data) throw new Error('invalid_data'); if(!data) throw new Error('invalid_data');
this._id = data.id; this._id = data.id;
this._colors = new AdvancedMap(); this._colors = new AdvancedMap();
this.append(data); this.append(data);
} }

View File

@ -15,12 +15,12 @@ export class SetType implements ISetType
{ {
if(!data) throw new Error('invalid_data'); if(!data) throw new Error('invalid_data');
this._type = data.type; this._type = data.type;
this._paletteId = data.paletteId; this._paletteId = data.paletteId;
this._isMandatory = {}; this._isMandatory = {};
this._isMandatory['F'] = [ data.mandatory_f_0, data.mandatory_f_1 ]; this._isMandatory['F'] = [ data.mandatory_f_0, data.mandatory_f_1 ];
this._isMandatory['M'] = [ data.mandatory_m_0, data.mandatory_m_1 ]; this._isMandatory['M'] = [ data.mandatory_m_0, data.mandatory_m_1 ];
this._partSets = new AdvancedMap(); this._partSets = new AdvancedMap();
this.append(data); this.append(data);
} }

View File

@ -5,7 +5,7 @@ export class ActivePartSet
constructor(data: any) constructor(data: any)
{ {
this._id = data.id; this._id = data.id;
this._parts = []; this._parts = [];
if(data.activeParts && (data.activeParts.length > 0)) if(data.activeParts && (data.activeParts.length > 0))

View File

@ -10,11 +10,11 @@ export class PartDefinition
{ {
if(!data) throw new Error('invalid_data'); if(!data) throw new Error('invalid_data');
this._setType = data.setType; this._setType = data.setType;
this._flippedSetType = data.flippedSetType || null; this._flippedSetType = data.flippedSetType || null;
this._removeSetType = data.removeSetType || null; this._removeSetType = data.removeSetType || null;
this._appendToFigure = false; this._appendToFigure = false;
this._staticId = -1; this._staticId = -1;
} }
public hasStaticId(): boolean public hasStaticId(): boolean

View File

@ -12,11 +12,11 @@ export class RoomCameraWidgetEffect implements IRoomCameraWidgetEffect
constructor(name: string, minLevel: number = -1, texture: Texture<Resource> = null, colorMatrix: ColorMatrix = null, blendMode: number = null) constructor(name: string, minLevel: number = -1, texture: Texture<Resource> = null, colorMatrix: ColorMatrix = null, blendMode: number = null)
{ {
this._name = name; this._name = name;
this._minLevel = minLevel; this._minLevel = minLevel;
this._texture = texture; this._texture = texture;
this._colorMatrix = colorMatrix; this._colorMatrix = colorMatrix;
this._blendMode = blendMode; this._blendMode = blendMode;
} }
public get name(): string public get name(): string

View File

@ -17,9 +17,9 @@ export class RoomCameraWidgetManager implements IRoomCameraWidgetManager
constructor() constructor()
{ {
this._effects = new Map(); this._effects = new Map();
this._events = new EventDispatcher(); this._events = new EventDispatcher();
this._isLoaded = false; this._isLoaded = false;
} }
public init(): void public init(): void
@ -29,7 +29,7 @@ export class RoomCameraWidgetManager implements IRoomCameraWidgetManager
this._isLoaded = true; this._isLoaded = true;
const imagesUrl = Nitro.instance.getConfiguration<string>('image.library.url') + 'Habbo-Stories/'; const imagesUrl = Nitro.instance.getConfiguration<string>('image.library.url') + 'Habbo-Stories/';
const effects = Nitro.instance.getConfiguration<{ name: string, colorMatrix?: ColorMatrix, minLevel: number, blendMode?: number, enabled: boolean }[]>('camera.available.effects'); const effects = Nitro.instance.getConfiguration<{ name: string, colorMatrix?: ColorMatrix, minLevel: number, blendMode?: number, enabled: boolean }[]>('camera.available.effects');
for(const effect of effects) for(const effect of effects)
{ {
@ -43,8 +43,8 @@ export class RoomCameraWidgetManager implements IRoomCameraWidgetManager
} }
else else
{ {
cameraEffect.texture = Texture.from(imagesUrl + effect.name + '.png'); cameraEffect.texture = Texture.from(imagesUrl + effect.name + '.png');
cameraEffect.blendMode = effect.blendMode; cameraEffect.blendMode = effect.blendMode;
} }
this._effects.set(cameraEffect.name, cameraEffect); this._effects.set(cameraEffect.name, cameraEffect);
@ -56,7 +56,7 @@ export class RoomCameraWidgetManager implements IRoomCameraWidgetManager
public applyEffects(texture: Texture, selectedEffects: IRoomCameraWidgetSelectedEffect[], isZoomed: boolean): HTMLImageElement public applyEffects(texture: Texture, selectedEffects: IRoomCameraWidgetSelectedEffect[], isZoomed: boolean): HTMLImageElement
{ {
const container = new NitroContainer(); const container = new NitroContainer();
const sprite = new NitroSprite(texture); const sprite = new NitroSprite(texture);
container.addChild(sprite); container.addChild(sprite);
@ -70,8 +70,8 @@ export class RoomCameraWidgetManager implements IRoomCameraWidgetManager
{ {
const filter = new ColorMatrixFilter(); const filter = new ColorMatrixFilter();
filter.matrix = effect.colorMatrix; filter.matrix = effect.colorMatrix;
filter.alpha = selectedEffect.alpha; filter.alpha = selectedEffect.alpha;
if(!sprite.filters) sprite.filters = []; if(!sprite.filters) sprite.filters = [];
@ -79,9 +79,9 @@ export class RoomCameraWidgetManager implements IRoomCameraWidgetManager
} }
else else
{ {
const effectSprite = new NitroSprite(effect.texture); const effectSprite = new NitroSprite(effect.texture);
effectSprite.alpha = selectedEffect.alpha; effectSprite.alpha = selectedEffect.alpha;
effectSprite.blendMode = effect.blendMode; effectSprite.blendMode = effect.blendMode;
container.addChild(effectSprite); container.addChild(effectSprite);
} }

View File

@ -7,8 +7,8 @@ export class RoomCameraWidgetSelectedEffect
constructor(effect: IRoomCameraWidgetEffect, alpha: number) constructor(effect: IRoomCameraWidgetEffect, alpha: number)
{ {
this._effect = effect; this._effect = effect;
this._alpha = alpha; this._alpha = alpha;
} }
public get effect(): IRoomCameraWidgetEffect public get effect(): IRoomCameraWidgetEffect

View File

@ -25,14 +25,14 @@ export class NitroCommunicationManager extends NitroManager implements INitroCom
super(); super();
this._communication = communication; this._communication = communication;
this._connection = null; this._connection = null;
this._messages = new NitroMessages(); this._messages = new NitroMessages();
this._demo = new NitroCommunicationDemo(this); this._demo = new NitroCommunicationDemo(this);
this.onConnectionOpenedEvent = this.onConnectionOpenedEvent.bind(this); this.onConnectionOpenedEvent = this.onConnectionOpenedEvent.bind(this);
this.onConnectionClosedEvent = this.onConnectionClosedEvent.bind(this); this.onConnectionClosedEvent = this.onConnectionClosedEvent.bind(this);
this.onConnectionErrorEvent = this.onConnectionErrorEvent.bind(this); this.onConnectionErrorEvent = this.onConnectionErrorEvent.bind(this);
this.onConnectionAuthenticatedEvent = this.onConnectionAuthenticatedEvent.bind(this); this.onConnectionAuthenticatedEvent = this.onConnectionAuthenticatedEvent.bind(this);
} }

View File

@ -471,7 +471,7 @@ export class NitroMessages implements IMessageConfiguration
constructor() constructor()
{ {
this._events = new Map(); this._events = new Map();
this._composers = new Map(); this._composers = new Map();
this.registerEvents(); this.registerEvents();

View File

@ -27,15 +27,15 @@ export class NitroCommunicationDemo extends NitroManager
this._communication = communication; this._communication = communication;
this._handShaking = false; this._handShaking = false;
this._didConnect = false; this._didConnect = false;
this._pongInterval = null; this._pongInterval = null;
this.onConnectionOpenedEvent = this.onConnectionOpenedEvent.bind(this); this.onConnectionOpenedEvent = this.onConnectionOpenedEvent.bind(this);
this.onConnectionClosedEvent = this.onConnectionClosedEvent.bind(this); this.onConnectionClosedEvent = this.onConnectionClosedEvent.bind(this);
this.onConnectionErrorEvent = this.onConnectionErrorEvent.bind(this); this.onConnectionErrorEvent = this.onConnectionErrorEvent.bind(this);
this.sendPong = this.sendPong.bind(this); this.sendPong = this.sendPong.bind(this);
} }
protected onInit(): void protected onInit(): void
@ -64,7 +64,7 @@ export class NitroCommunicationDemo extends NitroManager
connection.removeEventListener(SocketConnectionEvent.CONNECTION_ERROR, this.onConnectionErrorEvent); connection.removeEventListener(SocketConnectionEvent.CONNECTION_ERROR, this.onConnectionErrorEvent);
} }
this._handShaking = false; this._handShaking = false;
this.stopPonging(); this.stopPonging();

View File

@ -3,13 +3,13 @@ import { NitroEvent } from '../../../core/events/NitroEvent';
export class NitroCommunicationDemoEvent extends NitroEvent export class NitroCommunicationDemoEvent extends NitroEvent
{ {
public static CONNECTION_ESTABLISHED = 'NCE_ESTABLISHED'; public static CONNECTION_ESTABLISHED = 'NCE_ESTABLISHED';
public static CONNECTION_CLOSED = 'NCE_CLOSED'; public static CONNECTION_CLOSED = 'NCE_CLOSED';
public static CONNECTION_ERROR = 'NCE_ERROR'; public static CONNECTION_ERROR = 'NCE_ERROR';
public static CONNECTION_HANDSHAKING = 'NCE_HANDSHAKING'; public static CONNECTION_HANDSHAKING = 'NCE_HANDSHAKING';
public static CONNECTION_HANDSHAKED = 'NCE_HANDSHAKED'; public static CONNECTION_HANDSHAKED = 'NCE_HANDSHAKED';
public static CONNECTION_HANDSHAKE_FAILED = 'NCE_HANDSHAKE_FAILED'; public static CONNECTION_HANDSHAKE_FAILED = 'NCE_HANDSHAKE_FAILED';
public static CONNECTION_AUTHENTICATED = 'NCE_AUTHENTICATED'; public static CONNECTION_AUTHENTICATED = 'NCE_AUTHENTICATED';
private _connection: IConnection; private _connection: IConnection;

View File

@ -1,368 +1,368 @@
export class IncomingHeader export class IncomingHeader
{ {
public static ACHIEVEMENT_LIST = 305; public static ACHIEVEMENT_LIST = 305;
public static AUTHENTICATED = 2491; public static AUTHENTICATED = 2491;
public static AUTHENTICATION = -1; public static AUTHENTICATION = -1;
public static AVAILABILITY_STATUS = 2033; public static AVAILABILITY_STATUS = 2033;
public static BUILDERS_CLUB_EXPIRED = 1452; public static BUILDERS_CLUB_EXPIRED = 1452;
public static CLUB_OFFERS = 2405; public static CLUB_OFFERS = 2405;
public static CATALOG_PAGE = 804; public static CATALOG_PAGE = 804;
public static CATALOG_PAGE_LIST = 1032; public static CATALOG_PAGE_LIST = 1032;
public static CATALOG_PURCHASE_OK = 869; public static CATALOG_PURCHASE_OK = 869;
public static CATALOG_PURCHASE_ERROR = 1404; public static CATALOG_PURCHASE_ERROR = 1404;
public static CATALOG_PURCHASE_NOT_ALLOWED = 3770; public static CATALOG_PURCHASE_NOT_ALLOWED = 3770;
public static PRODUCT_OFFER = 3388; public static PRODUCT_OFFER = 3388;
public static LIMITED_SOLD_OUT = 377; public static LIMITED_SOLD_OUT = 377;
public static CATALOG_PUBLISHED = 1866; public static CATALOG_PUBLISHED = 1866;
public static CFH_RESULT_MESSAGE = 3635; public static CFH_RESULT_MESSAGE = 3635;
public static CLIENT_LATENCY = 10; public static CLIENT_LATENCY = 10;
public static CLIENT_PING = 3928; public static CLIENT_PING = 3928;
public static DESKTOP_CAMPAIGN = 1745; public static DESKTOP_CAMPAIGN = 1745;
public static DESKTOP_NEWS = 286; public static DESKTOP_NEWS = 286;
public static DESKTOP_VIEW = 122; public static DESKTOP_VIEW = 122;
public static BUNDLE_DISCOUNT_RULESET = 2347; public static BUNDLE_DISCOUNT_RULESET = 2347;
public static FIRST_LOGIN_OF_DAY = 793; public static FIRST_LOGIN_OF_DAY = 793;
public static FURNITURE_ALIASES = 1723; public static FURNITURE_ALIASES = 1723;
public static FURNITURE_DATA = 2547; public static FURNITURE_DATA = 2547;
public static FURNITURE_FLOOR = 1778; public static FURNITURE_FLOOR = 1778;
public static FURNITURE_FLOOR_ADD = 1534; public static FURNITURE_FLOOR_ADD = 1534;
public static FURNITURE_FLOOR_REMOVE = 2703; public static FURNITURE_FLOOR_REMOVE = 2703;
public static FURNITURE_FLOOR_UPDATE = 3776; public static FURNITURE_FLOOR_UPDATE = 3776;
public static FURNITURE_ITEMDATA = 2202; public static FURNITURE_ITEMDATA = 2202;
public static FURNITURE_STATE = 2376; public static FURNITURE_STATE = 2376;
public static FURNITURE_GROUP_CONTEXT_MENU_INFO = 3293; public static FURNITURE_GROUP_CONTEXT_MENU_INFO = 3293;
public static FURNITURE_POSTIT_STICKY_POLE_OPEN = 2366; public static FURNITURE_POSTIT_STICKY_POLE_OPEN = 2366;
public static GAME_CENTER_ACHIEVEMENTS = 2265; public static GAME_CENTER_ACHIEVEMENTS = 2265;
public static GAME_CENTER_GAME_LIST = 222; public static GAME_CENTER_GAME_LIST = 222;
public static GAME_CENTER_STATUS = 2893; public static GAME_CENTER_STATUS = 2893;
public static GENERIC_ALERT = 3801; public static GENERIC_ALERT = 3801;
public static MODERATOR_MESSAGE = 2030; public static MODERATOR_MESSAGE = 2030;
public static GENERIC_ERROR = 1600; public static GENERIC_ERROR = 1600;
public static GIFT_WRAPPER_CONFIG = 2234; public static GIFT_WRAPPER_CONFIG = 2234;
public static GROUP_BADGES = 2402; public static GROUP_BADGES = 2402;
public static GROUP_CREATE_OPTIONS = 2159; public static GROUP_CREATE_OPTIONS = 2159;
public static GROUP_FORUM_INFO = 3011; public static GROUP_FORUM_INFO = 3011;
public static GROUP_FORUM_LIST = 3001; public static GROUP_FORUM_LIST = 3001;
public static GROUP_FORUM_THREADS = 1073; public static GROUP_FORUM_THREADS = 1073;
public static GROUP_INFO = 1702; public static GROUP_INFO = 1702;
public static GROUP_LIST = 420; public static GROUP_LIST = 420;
public static GROUP_MEMBER = 265; public static GROUP_MEMBER = 265;
public static GROUP_MEMBERS = 1200; public static GROUP_MEMBERS = 1200;
public static GROUP_MEMBERS_REFRESH = 2445; public static GROUP_MEMBERS_REFRESH = 2445;
public static GROUP_MEMBER_REMOVE_CONFIRM = 1876; public static GROUP_MEMBER_REMOVE_CONFIRM = 1876;
public static GROUP_PURCHASED = 2808; public static GROUP_PURCHASED = 2808;
public static GROUP_SETTINGS = 3965; public static GROUP_SETTINGS = 3965;
public static GROUP_BADGE_PARTS = 2238; public static GROUP_BADGE_PARTS = 2238;
public static ITEM_DIMMER_SETTINGS = 2710; public static ITEM_DIMMER_SETTINGS = 2710;
public static ITEM_STACK_HELPER = 2816; public static ITEM_STACK_HELPER = 2816;
public static ITEM_WALL = 1369; public static ITEM_WALL = 1369;
public static ITEM_WALL_ADD = 2187; public static ITEM_WALL_ADD = 2187;
public static ITEM_WALL_REMOVE = 3208; public static ITEM_WALL_REMOVE = 3208;
public static ITEM_WALL_UPDATE = 2009; public static ITEM_WALL_UPDATE = 2009;
public static LOAD_GAME_URL = 2624; public static LOAD_GAME_URL = 2624;
public static MARKETPLACE_CONFIG = 1823; public static MARKETPLACE_CONFIG = 1823;
public static MESSENGER_ACCEPT_FRIENDS = 896; public static MESSENGER_ACCEPT_FRIENDS = 896;
public static MESSENGER_CHAT = 1587; public static MESSENGER_CHAT = 1587;
public static MESSENGER_FIND_FRIENDS = 1210; public static MESSENGER_FIND_FRIENDS = 1210;
public static MESSENGER_FOLLOW_FAILED = 3048; public static MESSENGER_FOLLOW_FAILED = 3048;
public static MESSENGER_FRIEND_NOTIFICATION = 3082; public static MESSENGER_FRIEND_NOTIFICATION = 3082;
public static MESSENGER_FRIENDS = 3130; public static MESSENGER_FRIENDS = 3130;
public static MESSENGER_INIT = 1605; public static MESSENGER_INIT = 1605;
public static MESSENGER_INSTANCE_MESSAGE_ERROR = 3359; public static MESSENGER_INSTANCE_MESSAGE_ERROR = 3359;
public static MESSENGER_INVITE = 3870; public static MESSENGER_INVITE = 3870;
public static MESSENGER_INVITE_ERROR = 462; public static MESSENGER_INVITE_ERROR = 462;
public static MESSENGER_MESSAGE_ERROR = 892; public static MESSENGER_MESSAGE_ERROR = 892;
public static MESSENGER_MINIMAIL_COUNT = 2803; public static MESSENGER_MINIMAIL_COUNT = 2803;
public static MESSENGER_MINIMAIL_NEW = 1911; public static MESSENGER_MINIMAIL_NEW = 1911;
public static MESSENGER_RELATIONSHIPS = 2016; public static MESSENGER_RELATIONSHIPS = 2016;
public static MESSENGER_REQUEST = 2219; public static MESSENGER_REQUEST = 2219;
public static MESSENGER_REQUEST_ERROR = 892; public static MESSENGER_REQUEST_ERROR = 892;
public static MESSENGER_REQUESTS = 280; public static MESSENGER_REQUESTS = 280;
public static MESSENGER_ROOM_INVITE = 3870; public static MESSENGER_ROOM_INVITE = 3870;
public static MESSENGER_SEARCH = 973; public static MESSENGER_SEARCH = 973;
public static MESSENGER_UPDATE = 2800; public static MESSENGER_UPDATE = 2800;
public static MODERATION_REPORT_DISABLED = 1651; public static MODERATION_REPORT_DISABLED = 1651;
public static MODERATION_TOOL = 2696; public static MODERATION_TOOL = 2696;
public static MODERATION_USER_INFO = 2866; public static MODERATION_USER_INFO = 2866;
public static MOTD_MESSAGES = 2035; public static MOTD_MESSAGES = 2035;
public static NAVIGATOR_CATEGORIES = 1562; public static NAVIGATOR_CATEGORIES = 1562;
public static NAVIGATOR_COLLAPSED = 1543; public static NAVIGATOR_COLLAPSED = 1543;
public static NAVIGATOR_EVENT_CATEGORIES = 3244; public static NAVIGATOR_EVENT_CATEGORIES = 3244;
public static NAVIGATOR_LIFTED = 3104; public static NAVIGATOR_LIFTED = 3104;
public static NAVIGATOR_METADATA = 3052; public static NAVIGATOR_METADATA = 3052;
public static NAVIGATOR_OPEN_ROOM_CREATOR = 2064; public static NAVIGATOR_OPEN_ROOM_CREATOR = 2064;
public static NAVIGATOR_SEARCH = 2690; public static NAVIGATOR_SEARCH = 2690;
public static NAVIGATOR_SEARCHES = 3984; public static NAVIGATOR_SEARCHES = 3984;
public static NAVIGATOR_SETTINGS = 518; public static NAVIGATOR_SETTINGS = 518;
public static NOTIFICATION_LIST = 1992; public static NOTIFICATION_LIST = 1992;
public static PET_FIGURE_UPDATE = 1924; public static PET_FIGURE_UPDATE = 1924;
public static PET_INFO = 2901; public static PET_INFO = 2901;
public static RECYCLER_PRIZES = 3164; public static RECYCLER_PRIZES = 3164;
public static ROOM_BAN_LIST = 1869; public static ROOM_BAN_LIST = 1869;
public static ROOM_BAN_REMOVE = 3429; public static ROOM_BAN_REMOVE = 3429;
public static ROOM_CREATED = 1304; public static ROOM_CREATED = 1304;
public static ROOM_DOORBELL = 2309; public static ROOM_DOORBELL = 2309;
public static ROOM_DOORBELL_ACCEPTED = 3783; public static ROOM_DOORBELL_ACCEPTED = 3783;
public static ROOM_DOORBELL_REJECTED = 878; public static ROOM_DOORBELL_REJECTED = 878;
public static ROOM_ENTER = 758; public static ROOM_ENTER = 758;
public static ROOM_ENTER_ERROR = 899; public static ROOM_ENTER_ERROR = 899;
public static ROOM_FORWARD = 160; public static ROOM_FORWARD = 160;
public static ROOM_HEIGHT_MAP = 2753; public static ROOM_HEIGHT_MAP = 2753;
public static ROOM_HEIGHT_MAP_UPDATE = 558; public static ROOM_HEIGHT_MAP_UPDATE = 558;
public static ROOM_INFO = 687; public static ROOM_INFO = 687;
public static ROOM_INFO_OWNER = 749; public static ROOM_INFO_OWNER = 749;
public static ROOM_MODEL = 1301; public static ROOM_MODEL = 1301;
public static ROOM_MODEL_BLOCKED_TILES = 3990; public static ROOM_MODEL_BLOCKED_TILES = 3990;
public static ROOM_MODEL_DOOR = 1664; public static ROOM_MODEL_DOOR = 1664;
public static ROOM_MODEL_NAME = 2031; public static ROOM_MODEL_NAME = 2031;
public static ROOM_MUTED = 2533; public static ROOM_MUTED = 2533;
public static ROOM_MUTE_USER = 826; public static ROOM_MUTE_USER = 826;
public static ROOM_PAINT = 2454; public static ROOM_PAINT = 2454;
public static ROOM_PROMOTION = 2274; public static ROOM_PROMOTION = 2274;
public static ROOM_QUEUE_STATUS = 2208; public static ROOM_QUEUE_STATUS = 2208;
public static ROOM_RIGHTS = 780; public static ROOM_RIGHTS = 780;
public static ROOM_RIGHTS_CLEAR = 2392; public static ROOM_RIGHTS_CLEAR = 2392;
public static ROOM_RIGHTS_LIST = 1284; public static ROOM_RIGHTS_LIST = 1284;
public static ROOM_RIGHTS_LIST_ADD = 2088; public static ROOM_RIGHTS_LIST_ADD = 2088;
public static ROOM_RIGHTS_LIST_REMOVE = 1327; public static ROOM_RIGHTS_LIST_REMOVE = 1327;
public static ROOM_RIGHTS_OWNER = 339; public static ROOM_RIGHTS_OWNER = 339;
public static ROOM_ROLLING = 3207; public static ROOM_ROLLING = 3207;
public static ROOM_SCORE = 482; public static ROOM_SCORE = 482;
public static ROOM_SETTINGS = 1498; public static ROOM_SETTINGS = 1498;
public static ROOM_SETTINGS_CHAT = 1191; public static ROOM_SETTINGS_CHAT = 1191;
public static ROOM_SETTINGS_SAVE = 948; public static ROOM_SETTINGS_SAVE = 948;
public static ROOM_SETTINGS_SAVE_ERROR = 1555; public static ROOM_SETTINGS_SAVE_ERROR = 1555;
public static ROOM_SETTINGS_UPDATED = 3297; public static ROOM_SETTINGS_UPDATED = 3297;
public static ROOM_SPECTATOR = 1033; public static ROOM_SPECTATOR = 1033;
public static ROOM_THICKNESS = 3547; public static ROOM_THICKNESS = 3547;
public static INFO_FEED_ENABLE = 3284; public static INFO_FEED_ENABLE = 3284;
public static SECURITY_MACHINE = 1488; public static SECURITY_MACHINE = 1488;
public static MYSTERY_BOX_KEYS = 2833; public static MYSTERY_BOX_KEYS = 2833;
public static TRADE_ACCEPTED = 2568; public static TRADE_ACCEPTED = 2568;
public static TRADE_CLOSED = 1373; public static TRADE_CLOSED = 1373;
public static TRADE_COMPLETED = 1001; public static TRADE_COMPLETED = 1001;
public static TRADE_CONFIRMATION = 2720; public static TRADE_CONFIRMATION = 2720;
public static TRADE_LIST_ITEM = 2024; public static TRADE_LIST_ITEM = 2024;
public static TRADE_NOT_OPEN = 3128; public static TRADE_NOT_OPEN = 3128;
public static TRADE_OPEN = 2505; public static TRADE_OPEN = 2505;
public static TRADE_OPEN_FAILED = 217; public static TRADE_OPEN_FAILED = 217;
public static TRADE_OTHER_NOT_ALLOWED = 2154; public static TRADE_OTHER_NOT_ALLOWED = 2154;
public static TRADE_YOU_NOT_ALLOWED = 3058; public static TRADE_YOU_NOT_ALLOWED = 3058;
public static UNIT = 374; public static UNIT = 374;
public static UNIT_CHANGE_NAME = 2182; public static UNIT_CHANGE_NAME = 2182;
public static UNIT_CHAT = 1446; public static UNIT_CHAT = 1446;
public static UNIT_CHAT_SHOUT = 1036; public static UNIT_CHAT_SHOUT = 1036;
public static UNIT_CHAT_WHISPER = 2704; public static UNIT_CHAT_WHISPER = 2704;
public static UNIT_DANCE = 2233; public static UNIT_DANCE = 2233;
public static UNIT_EFFECT = 1167; public static UNIT_EFFECT = 1167;
public static UNIT_EXPRESSION = 1631; public static UNIT_EXPRESSION = 1631;
public static UNIT_HAND_ITEM = 1474; public static UNIT_HAND_ITEM = 1474;
public static UNIT_IDLE = 1797; public static UNIT_IDLE = 1797;
public static UNIT_INFO = 3920; public static UNIT_INFO = 3920;
public static UNIT_NUMBER = 2324; public static UNIT_NUMBER = 2324;
public static UNIT_REMOVE = 2661; public static UNIT_REMOVE = 2661;
public static UNIT_STATUS = 1640; public static UNIT_STATUS = 1640;
public static UNIT_TYPING = 1717; public static UNIT_TYPING = 1717;
public static UNSEEN_ITEMS = 2103; public static UNSEEN_ITEMS = 2103;
public static USER_ACHIEVEMENT_SCORE = 1968; public static USER_ACHIEVEMENT_SCORE = 1968;
public static USER_BADGES = 717; public static USER_BADGES = 717;
public static USER_BADGES_ADD = 2493; public static USER_BADGES_ADD = 2493;
public static USER_BADGES_CURRENT = 1087; public static USER_BADGES_CURRENT = 1087;
public static USER_BOT_REMOVE = 233; public static USER_BOT_REMOVE = 233;
public static USER_BOTS = 3086; public static USER_BOTS = 3086;
public static USER_CHANGE_NAME = 118; public static USER_CHANGE_NAME = 118;
public static USER_CLOTHING = 1450; public static USER_CLOTHING = 1450;
public static USER_CREDITS = 3475; public static USER_CREDITS = 3475;
public static USER_CURRENCY = 2018; public static USER_CURRENCY = 2018;
public static ACTIVITY_POINT_NOTIFICATION = 2275; public static ACTIVITY_POINT_NOTIFICATION = 2275;
public static USER_EFFECTS = 340; public static USER_EFFECTS = 340;
public static USER_FAVORITE_ROOM = 2524; public static USER_FAVORITE_ROOM = 2524;
public static USER_FAVORITE_ROOM_COUNT = 151; public static USER_FAVORITE_ROOM_COUNT = 151;
public static USER_FIGURE = 2429; public static USER_FIGURE = 2429;
public static USER_FURNITURE = 994; public static USER_FURNITURE = 994;
public static USER_FURNITURE_ADD = 104; public static USER_FURNITURE_ADD = 104;
public static USER_FURNITURE_POSTIT_PLACED = 1501; public static USER_FURNITURE_POSTIT_PLACED = 1501;
public static USER_FURNITURE_REFRESH = 3151; public static USER_FURNITURE_REFRESH = 3151;
public static USER_FURNITURE_REMOVE = 159; public static USER_FURNITURE_REMOVE = 159;
public static USER_HOME_ROOM = 2875; public static USER_HOME_ROOM = 2875;
public static USER_IGNORED = 126; public static USER_IGNORED = 126;
public static USER_IGNORED_RESULT = 207; public static USER_IGNORED_RESULT = 207;
public static USER_INFO = 2725; public static USER_INFO = 2725;
public static USER_OUTFITS = 3315; public static USER_OUTFITS = 3315;
public static USER_PERKS = 2586; public static USER_PERKS = 2586;
public static USER_PERMISSIONS = 411; public static USER_PERMISSIONS = 411;
public static USER_PET_ADD = 2101; public static USER_PET_ADD = 2101;
public static USER_PET_REMOVE = 3253; public static USER_PET_REMOVE = 3253;
public static USER_PETS = 3522; public static USER_PETS = 3522;
public static USER_PROFILE = 3898; public static USER_PROFILE = 3898;
public static USER_RESPECT = 2815; public static USER_RESPECT = 2815;
public static USER_SANCTION_STATUS = 3679; public static USER_SANCTION_STATUS = 3679;
public static USER_SETTINGS = 513; public static USER_SETTINGS = 513;
public static USER_SUBSCRIPTION = 954; public static USER_SUBSCRIPTION = 954;
public static USER_WARDROBE_PAGE = 3315; public static USER_WARDROBE_PAGE = 3315;
public static WIRED_ACTION = 1434; public static WIRED_ACTION = 1434;
public static WIRED_CONDITION = 1108; public static WIRED_CONDITION = 1108;
public static WIRED_ERROR = 156; public static WIRED_ERROR = 156;
public static WIRED_OPEN = 1830; public static WIRED_OPEN = 1830;
public static WIRED_REWARD = 178; public static WIRED_REWARD = 178;
public static WIRED_SAVE = 1155; public static WIRED_SAVE = 1155;
public static WIRED_TRIGGER = 383; public static WIRED_TRIGGER = 383;
public static PLAYING_GAME = 448; public static PLAYING_GAME = 448;
public static FURNITURE_STATE_2 = 3431; public static FURNITURE_STATE_2 = 3431;
public static REMOVE_BOT_FROM_INVENTORY = 233; public static REMOVE_BOT_FROM_INVENTORY = 233;
public static ADD_BOT_TO_INVENTORY = 1352; public static ADD_BOT_TO_INVENTORY = 1352;
public static ACHIEVEMENT_PROGRESSED = 2107; public static ACHIEVEMENT_PROGRESSED = 2107;
public static MODTOOL_ROOM_INFO = 1333; public static MODTOOL_ROOM_INFO = 1333;
public static MODTOOL_USER_CHATLOG = 3377; public static MODTOOL_USER_CHATLOG = 3377;
public static MODTOOL_ROOM_CHATLOG = 3434; public static MODTOOL_ROOM_CHATLOG = 3434;
public static MODTOOL_VISITED_ROOMS_USER = 1752; public static MODTOOL_VISITED_ROOMS_USER = 1752;
public static MODERATOR_ACTION_RESULT = 2335; public static MODERATOR_ACTION_RESULT = 2335;
public static ISSUE_DELETED = 3192; public static ISSUE_DELETED = 3192;
public static ISSUE_INFO = 3609; public static ISSUE_INFO = 3609;
public static ISSUE_PICK_FAILED = 3150; public static ISSUE_PICK_FAILED = 3150;
public static CFH_CHATLOG = 607; public static CFH_CHATLOG = 607;
public static MODERATOR_TOOL_PREFERENCES = 1576; public static MODERATOR_TOOL_PREFERENCES = 1576;
public static LOVELOCK_FURNI_START = 3753; public static LOVELOCK_FURNI_START = 3753;
public static LOVELOCK_FURNI_FRIEND_COMFIRMED = 382; public static LOVELOCK_FURNI_FRIEND_COMFIRMED = 382;
public static LOVELOCK_FURNI_FINISHED = 770; public static LOVELOCK_FURNI_FINISHED = 770;
public static GIFT_RECEIVER_NOT_FOUND = 1517; public static GIFT_RECEIVER_NOT_FOUND = 1517;
public static GIFT_OPENED = 56; public static GIFT_OPENED = 56;
public static FLOOD_CONTROL = 566; public static FLOOD_CONTROL = 566;
public static REMAINING_MUTE = 826; public static REMAINING_MUTE = 826;
public static USER_EFFECT_LIST = 340; public static USER_EFFECT_LIST = 340;
public static USER_EFFECT_LIST_ADD = 2867; public static USER_EFFECT_LIST_ADD = 2867;
public static USER_EFFECT_LIST_REMOVE = 2228; public static USER_EFFECT_LIST_REMOVE = 2228;
public static USER_EFFECT_ACTIVATE = 1959; public static USER_EFFECT_ACTIVATE = 1959;
public static CLUB_GIFT_INFO = 619; public static CLUB_GIFT_INFO = 619;
public static REDEEM_VOUCHER_ERROR = 714; public static REDEEM_VOUCHER_ERROR = 714;
public static REDEEM_VOUCHER_OK = 3336; public static REDEEM_VOUCHER_OK = 3336;
public static IN_CLIENT_LINK = 2023; public static IN_CLIENT_LINK = 2023;
public static BOT_COMMAND_CONFIGURATION = 1618; public static BOT_COMMAND_CONFIGURATION = 1618;
public static HAND_ITEM_RECEIVED = 354; public static HAND_ITEM_RECEIVED = 354;
public static PET_PLACING_ERROR = 2913; public static PET_PLACING_ERROR = 2913;
public static BOT_ERROR = 639; public static BOT_ERROR = 639;
public static MARKETPLACE_SELL_ITEM = 54; public static MARKETPLACE_SELL_ITEM = 54;
public static MARKETPLACE_ITEM_STATS = 725; public static MARKETPLACE_ITEM_STATS = 725;
public static MARKETPLACE_OWN_ITEMS = 3884; public static MARKETPLACE_OWN_ITEMS = 3884;
public static MARKETPLACE_CANCEL_SALE = 3264; public static MARKETPLACE_CANCEL_SALE = 3264;
public static MARKETPLACE_ITEM_POSTED = 1359; public static MARKETPLACE_ITEM_POSTED = 1359;
public static MARKETPLACE_ITEMS_SEARCHED = 680; public static MARKETPLACE_ITEMS_SEARCHED = 680;
public static MARKETPLACE_AFTER_ORDER_STATUS = 2032; public static MARKETPLACE_AFTER_ORDER_STATUS = 2032;
public static CATALOG_RECEIVE_PET_BREEDS = 3331; public static CATALOG_RECEIVE_PET_BREEDS = 3331;
public static CATALOG_APPROVE_NAME_RESULT = 1503; public static CATALOG_APPROVE_NAME_RESULT = 1503;
public static OBJECTS_DATA_UPDATE = 1453; public static OBJECTS_DATA_UPDATE = 1453;
public static PET_EXPERIENCE = 2156; public static PET_EXPERIENCE = 2156;
public static COMMUNITY_GOAL_VOTE_EVENT = 1435; public static COMMUNITY_GOAL_VOTE_EVENT = 1435;
public static PROMO_ARTICLES = 286; public static PROMO_ARTICLES = 286;
public static COMMUNITY_GOAL_EARNED_PRIZES = 3319; public static COMMUNITY_GOAL_EARNED_PRIZES = 3319;
public static COMMUNITY_GOAL_PROGRESS = 2525; public static COMMUNITY_GOAL_PROGRESS = 2525;
public static CONCURRENT_USERS_GOAL_PROGRESS = 2737; public static CONCURRENT_USERS_GOAL_PROGRESS = 2737;
public static QUEST_DAILY = 1878; public static QUEST_DAILY = 1878;
public static QUEST_CANCELLED = 3027; public static QUEST_CANCELLED = 3027;
public static QUEST_COMPLETED = 949; public static QUEST_COMPLETED = 949;
public static COMMUNITY_GOAL_HALL_OF_FAME = 3005; public static COMMUNITY_GOAL_HALL_OF_FAME = 3005;
public static EPIC_POPUP = 3945; public static EPIC_POPUP = 3945;
public static SEASONAL_QUESTS = 1122; public static SEASONAL_QUESTS = 1122;
public static QUESTS = 3625; public static QUESTS = 3625;
public static QUEST = 230; public static QUEST = 230;
public static BONUS_RARE_INFO = 1533; public static BONUS_RARE_INFO = 1533;
public static CRAFTABLE_PRODUCTS = 1000; public static CRAFTABLE_PRODUCTS = 1000;
public static CRAFTING_RECIPE = 2774; public static CRAFTING_RECIPE = 2774;
public static CRAFTING_RECIPES_AVAILABLE = 2124; public static CRAFTING_RECIPES_AVAILABLE = 2124;
public static CRAFTING_RESULT = 618; public static CRAFTING_RESULT = 618;
public static CAMERA_PUBLISH_STATUS = 2057; public static CAMERA_PUBLISH_STATUS = 2057;
public static CAMERA_PURCHASE_OK = 2783; public static CAMERA_PURCHASE_OK = 2783;
public static CAMERA_STORAGE_URL = 3696; public static CAMERA_STORAGE_URL = 3696;
public static COMPETITION_STATUS = 133; public static COMPETITION_STATUS = 133;
public static INIT_CAMERA = 3878; public static INIT_CAMERA = 3878;
public static THUMBNAIL_STATUS = 3595; public static THUMBNAIL_STATUS = 3595;
public static ACHIEVEMENT_NOTIFICATION = 806; public static ACHIEVEMENT_NOTIFICATION = 806;
public static CLUB_GIFT_NOTIFICATION = 2188; public static CLUB_GIFT_NOTIFICATION = 2188;
public static INTERSTITIAL_MESSAGE = 1808; public static INTERSTITIAL_MESSAGE = 1808;
public static ROOM_AD_ERROR = 1759; public static ROOM_AD_ERROR = 1759;
public static AVAILABILITY_TIME = 600; public static AVAILABILITY_TIME = 600;
public static HOTEL_CLOSED_AND_OPENS = 3728; public static HOTEL_CLOSED_AND_OPENS = 3728;
public static HOTEL_CLOSES_AND_OPENS_AT = 2771; public static HOTEL_CLOSES_AND_OPENS_AT = 2771;
public static HOTEL_WILL_CLOSE_MINUTES = 1050; public static HOTEL_WILL_CLOSE_MINUTES = 1050;
public static HOTEL_MAINTENANCE = 1350; public static HOTEL_MAINTENANCE = 1350;
public static JUKEBOX_PLAYLIST_FULL = 105; public static JUKEBOX_PLAYLIST_FULL = 105;
public static JUKEBOX_SONG_DISKS = 34; public static JUKEBOX_SONG_DISKS = 34;
public static NOW_PLAYING = 469; public static NOW_PLAYING = 469;
public static OFFICIAL_SONG_ID = 1381; public static OFFICIAL_SONG_ID = 1381;
public static PLAYLIST = 1748; public static PLAYLIST = 1748;
public static PLAYLIST_SONG_ADDED = 1140; public static PLAYLIST_SONG_ADDED = 1140;
public static TRAX_SONG_INFO = 3365; public static TRAX_SONG_INFO = 3365;
public static USER_SONG_DISKS_INVENTORY = 2602; public static USER_SONG_DISKS_INVENTORY = 2602;
public static CHECK_USER_NAME = 563; public static CHECK_USER_NAME = 563;
public static CFH_SANCTION = 2782; public static CFH_SANCTION = 2782;
public static CFH_TOPICS = 325; public static CFH_TOPICS = 325;
public static CFH_SANCTION_STATUS = 2221; public static CFH_SANCTION_STATUS = 2221;
public static CAMPAIGN_CALENDAR_DATA = 2531; public static CAMPAIGN_CALENDAR_DATA = 2531;
public static CAMPAIGN_CALENDAR_DOOR_OPENED = 2551; public static CAMPAIGN_CALENDAR_DOOR_OPENED = 2551;
public static BUILDERS_CLUB_FURNI_COUNT = 3828; public static BUILDERS_CLUB_FURNI_COUNT = 3828;
public static BUILDERS_CLUB_SUBSCRIPTION = 1452; public static BUILDERS_CLUB_SUBSCRIPTION = 1452;
public static CATALOG_PAGE_EXPIRATION = 2668; public static CATALOG_PAGE_EXPIRATION = 2668;
public static CATALOG_EARLIEST_EXPIRY = 2515; public static CATALOG_EARLIEST_EXPIRY = 2515;
public static CLUB_GIFT_SELECTED = 659; public static CLUB_GIFT_SELECTED = 659;
public static TARGET_OFFER_NOT_FOUND = 1237; public static TARGET_OFFER_NOT_FOUND = 1237;
public static TARGET_OFFER = 119; public static TARGET_OFFER = 119;
public static DIRECT_SMS_CLUB_BUY = 195; public static DIRECT_SMS_CLUB_BUY = 195;
public static ROOM_AD_PURCHASE = 2468; public static ROOM_AD_PURCHASE = 2468;
public static NOT_ENOUGH_BALANCE = 3914; public static NOT_ENOUGH_BALANCE = 3914;
public static LIMITED_OFFER_APPEARING_NEXT = 44; public static LIMITED_OFFER_APPEARING_NEXT = 44;
public static IS_OFFER_GIFTABLE = 761; public static IS_OFFER_GIFTABLE = 761;
public static CLUB_EXTENDED_OFFER = 3964; public static CLUB_EXTENDED_OFFER = 3964;
public static SEASONAL_CALENDAR_OFFER = 1889; public static SEASONAL_CALENDAR_OFFER = 1889;
public static COMPETITION_ENTRY_SUBMIT = 1177; public static COMPETITION_ENTRY_SUBMIT = 1177;
public static COMPETITION_VOTING_INFO = 3506; public static COMPETITION_VOTING_INFO = 3506;
public static COMPETITION_TIMING_CODE = 1745; public static COMPETITION_TIMING_CODE = 1745;
public static COMPETITION_USER_PART_OF = 3841; public static COMPETITION_USER_PART_OF = 3841;
public static COMPETITION_NO_OWNED_ROOMS = 2064; public static COMPETITION_NO_OWNED_ROOMS = 2064;
public static COMPETITION_SECONDS_UNTIL = 3926; public static COMPETITION_SECONDS_UNTIL = 3926;
public static BADGE_POINT_LIMITS = 2501; public static BADGE_POINT_LIMITS = 2501;
public static BADGE_REQUEST_FULFILLED = 2998; public static BADGE_REQUEST_FULFILLED = 2998;
public static HELPER_TALENT_TRACK = 3406; public static HELPER_TALENT_TRACK = 3406;
public static USER_BANNED = 1683; public static USER_BANNED = 1683;
public static BOT_RECEIVED = 3684; public static BOT_RECEIVED = 3684;
public static PET_LEVEL_NOTIFICATION = 859; public static PET_LEVEL_NOTIFICATION = 859;
public static PET_RECEIVED = 1111; public static PET_RECEIVED = 1111;
public static MODERATION_CAUTION = 1890; public static MODERATION_CAUTION = 1890;
public static YOUTUBE_CONTROL_VIDEO = 1554; public static YOUTUBE_CONTROL_VIDEO = 1554;
public static YOUTUBE_DISPLAY_PLAYLISTS = 1112; public static YOUTUBE_DISPLAY_PLAYLISTS = 1112;
public static YOUTUBE_DISPLAY_VIDEO = 1411; public static YOUTUBE_DISPLAY_VIDEO = 1411;
public static CFH_DISABLED_NOTIFY = 1651; public static CFH_DISABLED_NOTIFY = 1651;
public static QUESTION = 2665; public static QUESTION = 2665;
public static POLL_CONTENTS = 2997; public static POLL_CONTENTS = 2997;
public static POLL_ERROR = 662; public static POLL_ERROR = 662;
public static POLL_OFFER = 3785; public static POLL_OFFER = 3785;
public static QUESTION_ANSWERED = 2589; public static QUESTION_ANSWERED = 2589;
public static QUESTION_FINISHED = 1066; public static QUESTION_FINISHED = 1066;
public static CFH_PENDING_CALLS = 1121; public static CFH_PENDING_CALLS = 1121;
public static GUIDE_ON_DUTY_STATUS = 1548; public static GUIDE_ON_DUTY_STATUS = 1548;
public static GUIDE_SESSION_ATTACHED = 1591; public static GUIDE_SESSION_ATTACHED = 1591;
public static GUIDE_SESSION_DETACHED = 138; public static GUIDE_SESSION_DETACHED = 138;
public static GUIDE_SESSION_ENDED = 1456; public static GUIDE_SESSION_ENDED = 1456;
public static GUIDE_SESSION_ERROR = 673; public static GUIDE_SESSION_ERROR = 673;
public static GUIDE_SESSION_INVITED_TO_GUIDE_ROOM = 219; public static GUIDE_SESSION_INVITED_TO_GUIDE_ROOM = 219;
public static GUIDE_SESSION_MESSAGE = 841; public static GUIDE_SESSION_MESSAGE = 841;
public static GUIDE_SESSION_PARTNER_IS_TYPING = 1016; public static GUIDE_SESSION_PARTNER_IS_TYPING = 1016;
public static GUIDE_SESSION_REQUESTER_ROOM = 1847; public static GUIDE_SESSION_REQUESTER_ROOM = 1847;
public static GUIDE_SESSION_STARTED = 3209; public static GUIDE_SESSION_STARTED = 3209;
public static GUIDE_TICKET_CREATION_RESULT = 3285; public static GUIDE_TICKET_CREATION_RESULT = 3285;
public static GUIDE_TICKET_RESOLUTION = 2674; public static GUIDE_TICKET_RESOLUTION = 2674;
public static GUIDE_REPORTING_STATUS = 3463; public static GUIDE_REPORTING_STATUS = 3463;
public static HOTEL_MERGE_NAME_CHANGE = 1663; public static HOTEL_MERGE_NAME_CHANGE = 1663;
public static ISSUE_CLOSE_NOTIFICATION = 934; public static ISSUE_CLOSE_NOTIFICATION = 934;
public static QUIZ_DATA = 2927; public static QUIZ_DATA = 2927;
public static QUIZ_RESULTS = 2772; public static QUIZ_RESULTS = 2772;
public static CFH_PENDING_CALLS_DELETED = 77; public static CFH_PENDING_CALLS_DELETED = 77;
public static CFH_REPLY = 3796; public static CFH_REPLY = 3796;
public static CHAT_REVIEW_SESSION_DETACHED = 30; public static CHAT_REVIEW_SESSION_DETACHED = 30;
public static CHAT_REVIEW_SESSION_OFFERED_TO_GUIDE = 735; public static CHAT_REVIEW_SESSION_OFFERED_TO_GUIDE = 735;
public static CHAT_REVIEW_SESSION_RESULTS = 3276; public static CHAT_REVIEW_SESSION_RESULTS = 3276;
public static CHAT_REVIEW_SESSION_STARTED = 143; public static CHAT_REVIEW_SESSION_STARTED = 143;
public static CHAT_REVIEW_SESSION_VOTING_STATUS = 1829; public static CHAT_REVIEW_SESSION_VOTING_STATUS = 1829;
public static SCR_SEND_KICKBACK_INFO = 3277; public static SCR_SEND_KICKBACK_INFO = 3277;
public static PET_STATUS = 1907; public static PET_STATUS = 1907;
public static GROUP_DEACTIVATE = 3129; public static GROUP_DEACTIVATE = 3129;
} }

View File

@ -18,13 +18,13 @@ export class CatalogPageMessageOfferData
constructor(wrapper: IMessageDataWrapper) constructor(wrapper: IMessageDataWrapper)
{ {
this._offerId = wrapper.readInt(); this._offerId = wrapper.readInt();
this._localizationId = wrapper.readString(); this._localizationId = wrapper.readString();
this._rent = wrapper.readBoolean(); this._rent = wrapper.readBoolean();
this._priceCredits = wrapper.readInt(); this._priceCredits = wrapper.readInt();
this._priceActivityPoints = wrapper.readInt(); this._priceActivityPoints = wrapper.readInt();
this._priceActivityPointsType = wrapper.readInt(); this._priceActivityPointsType = wrapper.readInt();
this._giftable = wrapper.readBoolean(); this._giftable = wrapper.readBoolean();
this._products = []; this._products = [];
@ -37,10 +37,10 @@ export class CatalogPageMessageOfferData
totalProducts--; totalProducts--;
} }
this._clubLevel = wrapper.readInt(); this._clubLevel = wrapper.readInt();
this._bundlePurchaseAllowed = wrapper.readBoolean(); this._bundlePurchaseAllowed = wrapper.readBoolean();
this._isPet = wrapper.readBoolean(); this._isPet = wrapper.readBoolean();
this._previewImage = wrapper.readString(); this._previewImage = wrapper.readString();
} }
public get offerId(): number public get offerId(): number

View File

@ -25,13 +25,13 @@ export class CatalogPageMessageProductData
public flush(): boolean public flush(): boolean
{ {
this._productType = null; this._productType = null;
this._furniClassId = -1; this._furniClassId = -1;
this._extraParam = null; this._extraParam = null;
this._productCount = 0; this._productCount = 0;
this._uniqueLimitedItem = false; this._uniqueLimitedItem = false;
this._uniqueLimitedItemSeriesSize = 0; this._uniqueLimitedItemSeriesSize = 0;
this._uniqueLimitedItemsLeft = 0; this._uniqueLimitedItemsLeft = 0;
return true; return true;
} }
@ -43,19 +43,19 @@ export class CatalogPageMessageProductData
switch(this._productType) switch(this._productType)
{ {
case CatalogPageMessageProductData.B: case CatalogPageMessageProductData.B:
this._extraParam = wrapper.readString(); this._extraParam = wrapper.readString();
this._productCount = 1; this._productCount = 1;
return true; return true;
default: default:
this._furniClassId = wrapper.readInt(); this._furniClassId = wrapper.readInt();
this._extraParam = wrapper.readString(); this._extraParam = wrapper.readString();
this._productCount = wrapper.readInt(); this._productCount = wrapper.readInt();
this._uniqueLimitedItem = wrapper.readBoolean(); this._uniqueLimitedItem = wrapper.readBoolean();
if(this._uniqueLimitedItem) if(this._uniqueLimitedItem)
{ {
this._uniqueLimitedItemSeriesSize = wrapper.readInt(); this._uniqueLimitedItemSeriesSize = wrapper.readInt();
this._uniqueLimitedItemsLeft = wrapper.readInt(); this._uniqueLimitedItemsLeft = wrapper.readInt();
} }
return true; return true;
} }

View File

@ -20,22 +20,22 @@ export class ClubOfferData
{ {
if(!wrapper) throw new Error('invalid_wrapper'); if(!wrapper) throw new Error('invalid_wrapper');
this._offerId = wrapper.readInt(); this._offerId = wrapper.readInt();
this._productCode = wrapper.readString(); this._productCode = wrapper.readString();
wrapper.readBoolean(); wrapper.readBoolean();
this._priceCredits = wrapper.readInt(); this._priceCredits = wrapper.readInt();
this._priceActivityPoints = wrapper.readInt(); this._priceActivityPoints = wrapper.readInt();
this._priceActivityPointsType = wrapper.readInt(); this._priceActivityPointsType = wrapper.readInt();
this._vip = wrapper.readBoolean(); this._vip = wrapper.readBoolean();
this._months = wrapper.readInt(); this._months = wrapper.readInt();
this._extraDays = wrapper.readInt(); this._extraDays = wrapper.readInt();
this._giftable = wrapper.readBoolean(); this._giftable = wrapper.readBoolean();
this._daysLeftAfterPurchase = wrapper.readInt(); this._daysLeftAfterPurchase = wrapper.readInt();
this._year = wrapper.readInt(); this._year = wrapper.readInt();
this._month = wrapper.readInt(); this._month = wrapper.readInt();
this._day = wrapper.readInt(); this._day = wrapper.readInt();
} }
public get offerId(): number public get offerId(): number

View File

@ -3,9 +3,9 @@ import { Nitro } from '../../../../Nitro';
export class FrontPageItem export class FrontPageItem
{ {
public static ITEM_CATALOGUE_PAGE: number = 0; public static ITEM_CATALOGUE_PAGE: number = 0;
public static ITEM_PRODUCT_OFFER: number = 1; public static ITEM_PRODUCT_OFFER: number = 1;
public static ITEM_IAP: number = 2; public static ITEM_IAP: number = 2;
private _type: number; private _type: number;
private _position: number; private _position: number;
@ -26,14 +26,14 @@ export class FrontPageItem
public flush(): boolean public flush(): boolean
{ {
this._type = -1; this._type = -1;
this._position = null; this._position = null;
this._itemName = null; this._itemName = null;
this._itemPromoImage = null; this._itemPromoImage = null;
this._catalogPageLocation = null; this._catalogPageLocation = null;
this._productCode = null; this._productCode = null;
this._productOfferId = 0; this._productOfferId = 0;
this._expirationTime = 0; this._expirationTime = 0;
return true; return true;
} }
@ -42,10 +42,10 @@ export class FrontPageItem
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._position = wrapper.readInt(); this._position = wrapper.readInt();
this._itemName = wrapper.readString(); this._itemName = wrapper.readString();
this._itemPromoImage = wrapper.readString(); this._itemPromoImage = wrapper.readString();
this._type = wrapper.readInt(); this._type = wrapper.readInt();
switch(this._type) switch(this._type)
{ {

View File

@ -20,13 +20,13 @@ export class NodeData
public flush(): boolean public flush(): boolean
{ {
this._visible = false; this._visible = false;
this._icon = 0; this._icon = 0;
this._pageId = -1; this._pageId = -1;
this._pageName = null; this._pageName = null;
this._localization = null; this._localization = null;
this._children = []; this._children = [];
this._offerIds = []; this._offerIds = [];
return true; return true;
} }
@ -35,11 +35,11 @@ export class NodeData
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._visible = wrapper.readBoolean(); this._visible = wrapper.readBoolean();
this._icon = wrapper.readInt(); this._icon = wrapper.readInt();
this._pageId = wrapper.readInt(); this._pageId = wrapper.readInt();
this._pageName = wrapper.readString(); this._pageName = wrapper.readString();
this._localization = wrapper.readString(); this._localization = wrapper.readString();
let totalOffers = wrapper.readInt(); let totalOffers = wrapper.readInt();

View File

@ -24,16 +24,16 @@ export class PurchaseOKMessageOfferData
public flush(): boolean public flush(): boolean
{ {
this._offerId = -1; this._offerId = -1;
this._localizationId = null; this._localizationId = null;
this._rent = false; this._rent = false;
this._priceCredits = 0; this._priceCredits = 0;
this._priceActivityPoints = 0; this._priceActivityPoints = 0;
this._priceActivityPointsType = 0; this._priceActivityPointsType = 0;
this._clubLevel = 0; this._clubLevel = 0;
this._giftable = false; this._giftable = false;
this._bundlePurchaseAllowed = false; this._bundlePurchaseAllowed = false;
this._products = []; this._products = [];
return true; return true;
} }
@ -42,13 +42,13 @@ export class PurchaseOKMessageOfferData
{ {
if(!wrapper) return false; if(!wrapper) return false;
this._offerId = wrapper.readInt(); this._offerId = wrapper.readInt();
this._localizationId = wrapper.readString(); this._localizationId = wrapper.readString();
this._rent = wrapper.readBoolean(); this._rent = wrapper.readBoolean();
this._priceCredits = wrapper.readInt(); this._priceCredits = wrapper.readInt();
this._priceActivityPoints = wrapper.readInt(); this._priceActivityPoints = wrapper.readInt();
this._priceActivityPointsType = wrapper.readInt(); this._priceActivityPointsType = wrapper.readInt();
this._giftable = wrapper.readBoolean(); this._giftable = wrapper.readBoolean();
let totalProducts = wrapper.readInt(); let totalProducts = wrapper.readInt();
@ -59,7 +59,7 @@ export class PurchaseOKMessageOfferData
totalProducts--; totalProducts--;
} }
this._clubLevel = wrapper.readInt(); this._clubLevel = wrapper.readInt();
this._bundlePurchaseAllowed = wrapper.readBoolean(); this._bundlePurchaseAllowed = wrapper.readBoolean();
return true; return true;

View File

@ -9,7 +9,7 @@ export class AcceptFriendFailerData
{ {
if(!wrapper) throw new Error('invalid_wrapper'); if(!wrapper) throw new Error('invalid_wrapper');
this._senderId = wrapper.readInt(); this._senderId = wrapper.readInt();
this._errorCode = wrapper.readInt(); this._errorCode = wrapper.readInt();
} }

View File

@ -9,8 +9,8 @@ export class FriendCategoryData
{ {
if(!wrapper) throw new Error('invalid_wrapper'); if(!wrapper) throw new Error('invalid_wrapper');
this._id = wrapper.readInt(); this._id = wrapper.readInt();
this._name = wrapper.readString(); this._name = wrapper.readString();
} }
public get id(): number public get id(): number

View File

@ -21,20 +21,20 @@ export class FriendParser
{ {
if(!wrapper) throw new Error('invalid_wrapper'); if(!wrapper) throw new Error('invalid_wrapper');
this._id = wrapper.readInt(); this._id = wrapper.readInt();
this._name = wrapper.readString(); this._name = wrapper.readString();
this._gender = wrapper.readInt(); this._gender = wrapper.readInt();
this._online = wrapper.readBoolean(); this._online = wrapper.readBoolean();
this._followingAllowed = wrapper.readBoolean(); this._followingAllowed = wrapper.readBoolean();
this._figure = wrapper.readString(); this._figure = wrapper.readString();
this._categoryId = wrapper.readInt(); this._categoryId = wrapper.readInt();
this._motto = wrapper.readString(); this._motto = wrapper.readString();
this._realName = wrapper.readString(); this._realName = wrapper.readString();
this._lastAccess = wrapper.readString(); this._lastAccess = wrapper.readString();
this._persistedMessageUser = wrapper.readBoolean(); this._persistedMessageUser = wrapper.readBoolean();
this._vipMember = wrapper.readBoolean(); this._vipMember = wrapper.readBoolean();
this._pocketHabboUser = wrapper.readBoolean(); this._pocketHabboUser = wrapper.readBoolean();
this._relationshipStatus = wrapper.readShort(); this._relationshipStatus = wrapper.readShort();
} }
public get id(): number public get id(): number

View File

@ -11,10 +11,10 @@ export class FriendRequestData
{ {
if(!wrapper) throw new Error('invalid_wrapper'); if(!wrapper) throw new Error('invalid_wrapper');
this._requestId = wrapper.readInt(); this._requestId = wrapper.readInt();
this._requesterName = wrapper.readString(); this._requesterName = wrapper.readString();
this._figureString = wrapper.readString(); this._figureString = wrapper.readString();
this._requesterUserId = this._requestId; this._requesterUserId = this._requestId;
} }
public get requestId(): number public get requestId(): number

View File

@ -16,17 +16,17 @@ export class HabboSearchResultData
{ {
if(!wrapper) throw new Error('invalid_wrapper'); if(!wrapper) throw new Error('invalid_wrapper');
this._avatarId = wrapper.readInt(); this._avatarId = wrapper.readInt();
this._avatarName = wrapper.readString(); this._avatarName = wrapper.readString();
this._avatarMotto = wrapper.readString(); this._avatarMotto = wrapper.readString();
this._isAvatarOnline = wrapper.readBoolean(); this._isAvatarOnline = wrapper.readBoolean();
this._canFollow = wrapper.readBoolean(); this._canFollow = wrapper.readBoolean();
this._lastOnlineData = wrapper.readString(); // this was not assigned to anything on original packet this._lastOnlineData = wrapper.readString(); // this was not assigned to anything on original packet
this._avatarGender = wrapper.readInt(); this._avatarGender = wrapper.readInt();
this._avatarFigure = wrapper.readString(); this._avatarFigure = wrapper.readString();
this._realName = wrapper.readString(); this._realName = wrapper.readString();
} }
public get avatarId(): number public get avatarId(): number

View File

@ -6,7 +6,7 @@ export class CallForHelpPendingCallsMessageEvent extends MessageEvent implements
{ {
constructor(callBack: Function) constructor(callBack: Function)
{ {
super(callBack, CallForHelpPendingCallsMessageParser); super(callBack, CallForHelpPendingCallsMessageParser);
} }
public getParser(): CallForHelpPendingCallsMessageParser public getParser(): CallForHelpPendingCallsMessageParser

View File

@ -6,7 +6,7 @@ export class CallForHelpReplyMessageEvent extends MessageEvent implements IMessa
{ {
constructor(callBack: Function) constructor(callBack: Function)
{ {
super(callBack, CallForHelpReplyMessageParser); super(callBack, CallForHelpReplyMessageParser);
} }
public getParser(): CallForHelpReplyMessageParser public getParser(): CallForHelpReplyMessageParser

View File

@ -28,18 +28,18 @@ export class AchievementData
if(!wrapper) throw new Error('invalid_parser'); if(!wrapper) throw new Error('invalid_parser');
this._achievementId = wrapper.readInt(); this._achievementId = wrapper.readInt();
this._level = wrapper.readInt(); this._level = wrapper.readInt();
this._badgeId = wrapper.readString(); this._badgeId = wrapper.readString();
this._scoreAtStartOfLevel = wrapper.readInt(); this._scoreAtStartOfLevel = wrapper.readInt();
this._scoreLimit = Math.max(1, wrapper.readInt()); this._scoreLimit = Math.max(1, wrapper.readInt());
this._levelRewardPoints = wrapper.readInt(); this._levelRewardPoints = wrapper.readInt();
this._levelRewardPointType = wrapper.readInt(); this._levelRewardPointType = wrapper.readInt();
this._currentPoints = wrapper.readInt(); this._currentPoints = wrapper.readInt();
this._finalLevel = wrapper.readBoolean(); this._finalLevel = wrapper.readBoolean();
this._category = wrapper.readString(); this._category = wrapper.readString();
this._subCategory = wrapper.readString(); this._subCategory = wrapper.readString();
this._levelCount = wrapper.readInt(); this._levelCount = wrapper.readInt();
this._displayMethod = wrapper.readInt(); this._displayMethod = wrapper.readInt();
} }
public get achievementId(): number public get achievementId(): number
@ -140,17 +140,17 @@ export class AchievementData
public reset(badge: AchievementData) public reset(badge: AchievementData)
{ {
this._achievementId = badge._achievementId; this._achievementId = badge._achievementId;
this._level = badge._level; this._level = badge._level;
this._badgeId = badge._badgeId; this._badgeId = badge._badgeId;
this._scoreAtStartOfLevel = badge._scoreAtStartOfLevel; this._scoreAtStartOfLevel = badge._scoreAtStartOfLevel;
this._scoreLimit = badge._scoreLimit; this._scoreLimit = badge._scoreLimit;
this._levelRewardPoints = badge._levelRewardPoints; this._levelRewardPoints = badge._levelRewardPoints;
this._levelRewardPointType = badge._levelRewardPointType; this._levelRewardPointType = badge._levelRewardPointType;
this._currentPoints = badge._currentPoints; this._currentPoints = badge._currentPoints;
this._finalLevel = badge._finalLevel; this._finalLevel = badge._finalLevel;
this._category = badge.category; this._category = badge.category;
this._subCategory = badge._subCategory; this._subCategory = badge._subCategory;
this._levelCount = badge._levelCount; this._levelCount = badge._levelCount;
this._displayMethod = badge._displayMethod; this._displayMethod = badge._displayMethod;
} }
} }

View File

@ -13,18 +13,18 @@ export class AchievementResolutionData
constructor(wrapper: IMessageDataWrapper) constructor(wrapper: IMessageDataWrapper)
{ {
this._achievementId = wrapper.readInt(); this._achievementId = wrapper.readInt();
this._level = wrapper.readInt(); this._level = wrapper.readInt();
this._badgeId = wrapper.readString(); this._badgeId = wrapper.readString();
this._requiredLevel = wrapper.readInt(); this._requiredLevel = wrapper.readInt();
this._state = wrapper.readInt(); this._state = wrapper.readInt();
} }
public dispose(): void public dispose(): void
{ {
this._achievementId = 0; this._achievementId = 0;
this._level = 0; this._level = 0;
this._badgeId = ''; this._badgeId = '';
this._requiredLevel = 0; this._requiredLevel = 0;
} }
public get achievementId(): number public get achievementId(): number

Some files were not shown because too many files have changed in this diff Show More