mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-19 06:46:28 +01:00
Move communication interfaces
This commit is contained in:
parent
d8fca7188f
commit
e24ed2eb3b
@ -1,6 +1,6 @@
|
||||
import { IEventDispatcher } from '../events/IEventDispatcher';
|
||||
import { IDisposable } from './disposable/IDisposable';
|
||||
import { INitroLogger } from './logger/INitroLogger';
|
||||
import { IEventDispatcher } from '../events';
|
||||
import { IDisposable } from './IDisposable';
|
||||
import { INitroLogger } from './INitroLogger';
|
||||
|
||||
export interface INitroManager extends IDisposable
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
import { IDisposable } from './disposable/IDisposable';
|
||||
import { IDisposable } from './IDisposable';
|
||||
|
||||
export interface IUpdateReceiver extends IDisposable
|
||||
{
|
4
src/api/common/index.ts
Normal file
4
src/api/common/index.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export * from './IDisposable';
|
||||
export * from './INitroLogger';
|
||||
export * from './INitroManager';
|
||||
export * from './IUpdateReceiver';
|
12
src/api/communication/IBinaryReader.ts
Normal file
12
src/api/communication/IBinaryReader.ts
Normal file
@ -0,0 +1,12 @@
|
||||
export interface IBinaryReader
|
||||
{
|
||||
readBytes(length: number): IBinaryReader;
|
||||
readByte(): number;
|
||||
readShort(): number;
|
||||
readInt(): number;
|
||||
readFloat(): number;
|
||||
readDouble(): number;
|
||||
remaining(): number;
|
||||
toString(encoding?: string): string;
|
||||
toArrayBuffer(): ArrayBuffer;
|
||||
}
|
11
src/api/communication/IBinaryWriter.ts
Normal file
11
src/api/communication/IBinaryWriter.ts
Normal file
@ -0,0 +1,11 @@
|
||||
export interface IBinaryWriter
|
||||
{
|
||||
writeByte(byte: number): IBinaryWriter;
|
||||
writeBytes(bytes: ArrayBuffer | number[]): IBinaryWriter;
|
||||
writeShort(short: number): IBinaryWriter;
|
||||
writeInt(integer: number): IBinaryWriter;
|
||||
writeString(string: string, includeLength?: boolean): IBinaryWriter;
|
||||
getBuffer(): ArrayBuffer;
|
||||
position: number;
|
||||
toString(encoding?: string): string;
|
||||
}
|
9
src/api/communication/ICodec.ts
Normal file
9
src/api/communication/ICodec.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { IBinaryWriter } from './IBinaryWriter';
|
||||
import { IConnection } from './IConnection';
|
||||
import { IMessageDataWrapper } from './IMessageDataWrapper';
|
||||
|
||||
export interface ICodec
|
||||
{
|
||||
encode(header: number, messages: any[]): IBinaryWriter;
|
||||
decode(connection: IConnection): IMessageDataWrapper[];
|
||||
}
|
8
src/api/communication/ICommunicationManager.ts
Normal file
8
src/api/communication/ICommunicationManager.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { IDisposable } from '../common';
|
||||
import { IConnection } from './IConnection';
|
||||
import { IConnectionStateListener } from './IConnectionStateListener';
|
||||
|
||||
export interface ICommunicationManager extends IDisposable
|
||||
{
|
||||
createConnection(stateListener?: IConnectionStateListener): IConnection;
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import { IEventDispatcher } from '../../events/IEventDispatcher';
|
||||
import { IMessageComposer } from '../messages/IMessageComposer';
|
||||
import { IMessageConfiguration } from '../messages/IMessageConfiguration';
|
||||
import { IMessageEvent } from '../messages/IMessageEvent';
|
||||
import { IEventDispatcher } from '../events';
|
||||
import { IMessageComposer } from './IMessageComposer';
|
||||
import { IMessageConfiguration } from './IMessageConfiguration';
|
||||
import { IMessageEvent } from './IMessageEvent';
|
||||
|
||||
export interface IConnection extends IEventDispatcher
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
import { BinaryReader } from '../codec/BinaryReader';
|
||||
import { IBinaryReader } from './IBinaryReader';
|
||||
|
||||
export interface IMessageDataWrapper
|
||||
{
|
||||
readByte(): number;
|
||||
readBytes(length: number): BinaryReader;
|
||||
readBytes(length: number): IBinaryReader;
|
||||
readBoolean(): boolean;
|
||||
readShort(): number;
|
||||
readInt(): number;
|
@ -1,4 +1,4 @@
|
||||
import { IConnection } from '../connections/IConnection';
|
||||
import { IConnection } from './IConnection';
|
||||
import { IMessageParser } from './IMessageParser';
|
||||
|
||||
export interface IMessageEvent
|
12
src/api/communication/index.ts
Normal file
12
src/api/communication/index.ts
Normal file
@ -0,0 +1,12 @@
|
||||
export * from './enums';
|
||||
export * from './IBinaryReader';
|
||||
export * from './IBinaryWriter';
|
||||
export * from './ICodec';
|
||||
export * from './ICommunicationManager';
|
||||
export * from './IConnection';
|
||||
export * from './IConnectionStateListener';
|
||||
export * from './IMessageComposer';
|
||||
export * from './IMessageConfiguration';
|
||||
export * from './IMessageDataWrapper';
|
||||
export * from './IMessageEvent';
|
||||
export * from './IMessageParser';
|
@ -1,12 +1,11 @@
|
||||
import { INitroLogger } from '../common';
|
||||
import { IDisposable } from '../common/disposable/IDisposable';
|
||||
import { NitroEvent } from './NitroEvent';
|
||||
import { IDisposable, INitroLogger } from '../common';
|
||||
import { INitroEvent } from './INitroEvent';
|
||||
|
||||
export interface IEventDispatcher extends IDisposable
|
||||
{
|
||||
addEventListener(type: string, callback: Function): void
|
||||
removeEventListener(type: string, callback: Function): void;
|
||||
removeAllListeners(): void;
|
||||
dispatchEvent(event: NitroEvent): boolean;
|
||||
dispatchEvent(event: INitroEvent): boolean;
|
||||
logger: INitroLogger;
|
||||
}
|
4
src/api/events/INitroEvent.ts
Normal file
4
src/api/events/INitroEvent.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export interface INitroEvent
|
||||
{
|
||||
type: string;
|
||||
}
|
4
src/api/events/index.ts
Normal file
4
src/api/events/index.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export * from './IEventDispatcher';
|
||||
export * from './ILinkEventTracker';
|
||||
export * from './INitroEvent';
|
||||
export * from './IWorkerEventTracker';
|
@ -9,3 +9,6 @@ export * from './asset/visualization/animation';
|
||||
export * from './asset/visualization/color';
|
||||
export * from './asset/visualization/gestures';
|
||||
export * from './asset/visualization/postures';
|
||||
export * from './common';
|
||||
export * from './communication';
|
||||
export * from './events';
|
||||
|
@ -1,6 +1,4 @@
|
||||
import { IAssetManager } from '../api';
|
||||
import { IDisposable } from './common/disposable/IDisposable';
|
||||
import { ICommunicationManager } from './communication/ICommunicationManager';
|
||||
import { IAssetManager, ICommunicationManager, IDisposable } from '../api';
|
||||
import { IConfigurationManager } from './configuration/IConfigurationManager';
|
||||
|
||||
export interface INitroCore extends IDisposable
|
||||
|
@ -1,8 +1,7 @@
|
||||
import { IAssetManager } from '../api';
|
||||
import { IAssetManager, ICommunicationManager } from '../api';
|
||||
import { AssetManager } from './asset/AssetManager';
|
||||
import { Disposable } from './common/disposable/Disposable';
|
||||
import { Disposable } from './common/Disposable';
|
||||
import { CommunicationManager } from './communication/CommunicationManager';
|
||||
import { ICommunicationManager } from './communication/ICommunicationManager';
|
||||
import { ConfigurationManager } from './configuration/ConfigurationManager';
|
||||
import { IConfigurationManager } from './configuration/IConfigurationManager';
|
||||
import { INitroCore } from './INitroCore';
|
||||
|
@ -1,11 +1,10 @@
|
||||
import { BaseTexture, Resource, Texture } from '@pixi/core';
|
||||
import { Loader, LoaderResource } from '@pixi/loaders';
|
||||
import { Spritesheet } from '@pixi/spritesheet';
|
||||
import { IAssetData, IAssetManager, IGraphicAsset, IGraphicAssetCollection } from '../../api';
|
||||
import { IAssetData, IAssetManager, IGraphicAsset, IGraphicAssetCollection, INitroLogger } from '../../api';
|
||||
import { GraphicAssetCollection } from '../../room/object/visualization/utils/GraphicAssetCollection';
|
||||
import { Disposable } from '../common/disposable/Disposable';
|
||||
import { INitroLogger } from '../common/logger/INitroLogger';
|
||||
import { NitroLogger } from '../common/logger/NitroLogger';
|
||||
import { Disposable } from '../common/Disposable';
|
||||
import { NitroLogger } from '../common/NitroLogger';
|
||||
import { ArrayBufferToBase64 } from '../utils';
|
||||
import { NitroBundle } from './NitroBundle';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IDisposable } from './IDisposable';
|
||||
import { IDisposable } from '../../api';
|
||||
|
||||
export class Disposable implements IDisposable
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
import { INitroLogger } from './INitroLogger';
|
||||
import { INitroLogger } from '../../api';
|
||||
|
||||
export class NitroLogger implements INitroLogger
|
||||
{
|
@ -1,9 +1,7 @@
|
||||
import { IEventDispatcher, INitroLogger, INitroManager } from '../../api';
|
||||
import { EventDispatcher } from '../events/EventDispatcher';
|
||||
import { IEventDispatcher } from '../events/IEventDispatcher';
|
||||
import { Disposable } from './disposable/Disposable';
|
||||
import { INitroManager } from './INitroManager';
|
||||
import { INitroLogger } from './logger/INitroLogger';
|
||||
import { NitroLogger } from './logger/NitroLogger';
|
||||
import { Disposable } from './Disposable';
|
||||
import { NitroLogger } from './NitroLogger';
|
||||
|
||||
export class NitroManager extends Disposable implements INitroManager
|
||||
{
|
||||
|
@ -1,2 +0,0 @@
|
||||
export * from './Disposable';
|
||||
export * from './IDisposable';
|
@ -1,5 +1,3 @@
|
||||
export * from './disposable';
|
||||
export * from './INitroManager';
|
||||
export * from './IUpdateReceiver';
|
||||
export * from './logger';
|
||||
export * from './Disposable';
|
||||
export * from './NitroLogger';
|
||||
export * from './NitroManager';
|
||||
|
@ -1,2 +0,0 @@
|
||||
export * from './INitroLogger';
|
||||
export * from './NitroLogger';
|
@ -1,9 +1,6 @@
|
||||
import { Disposable } from '../common/disposable/Disposable';
|
||||
import { IUpdateReceiver } from '../common/IUpdateReceiver';
|
||||
import { IConnection } from './connections/IConnection';
|
||||
import { IConnectionStateListener } from './connections/IConnectionStateListener';
|
||||
import { ICommunicationManager, IConnection, IConnectionStateListener, IUpdateReceiver } from '../../api';
|
||||
import { Disposable } from '../common/Disposable';
|
||||
import { SocketConnection } from './connections/SocketConnection';
|
||||
import { ICommunicationManager } from './ICommunicationManager';
|
||||
|
||||
export class CommunicationManager extends Disposable implements ICommunicationManager, IUpdateReceiver
|
||||
{
|
||||
|
@ -1,8 +0,0 @@
|
||||
import { IDisposable } from '../common/disposable/IDisposable';
|
||||
import { IConnection } from './connections/IConnection';
|
||||
import { IConnectionStateListener } from './connections/IConnectionStateListener';
|
||||
|
||||
export interface ICommunicationManager extends IDisposable
|
||||
{
|
||||
createConnection(stateListener?: IConnectionStateListener): IConnection;
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
import { BinaryWriter } from './BinaryWriter';
|
||||
import { IConnection } from '../connections/IConnection';
|
||||
import { IMessageDataWrapper } from '../messages/IMessageDataWrapper';
|
||||
|
||||
export interface ICodec
|
||||
{
|
||||
encode(header: number, messages: any[]): BinaryWriter;
|
||||
decode(connection: IConnection): IMessageDataWrapper[];
|
||||
}
|
@ -1,18 +1,17 @@
|
||||
import { IMessageDataWrapper } from '../../messages/IMessageDataWrapper';
|
||||
import { BinaryReader } from '../BinaryReader';
|
||||
import { IBinaryReader, IMessageDataWrapper } from '../../../../api';
|
||||
|
||||
export class EvaWireDataWrapper implements IMessageDataWrapper
|
||||
{
|
||||
private _header: number;
|
||||
private _buffer: BinaryReader;
|
||||
private _buffer: IBinaryReader;
|
||||
|
||||
constructor(header: number, buffer: BinaryReader)
|
||||
constructor(header: number, buffer: IBinaryReader)
|
||||
{
|
||||
this._header = header;
|
||||
this._buffer = buffer;
|
||||
}
|
||||
|
||||
public readBytes(length: number): BinaryReader
|
||||
public readBytes(length: number): IBinaryReader
|
||||
{
|
||||
if (!this._buffer) return null;
|
||||
|
||||
|
@ -1,15 +1,13 @@
|
||||
import { IConnection } from '../../connections/IConnection';
|
||||
import { IMessageDataWrapper } from '../../messages/IMessageDataWrapper';
|
||||
import { IBinaryWriter, ICodec, IConnection, IMessageDataWrapper } from '../../../../api';
|
||||
import { BinaryReader } from '../BinaryReader';
|
||||
import { BinaryWriter } from '../BinaryWriter';
|
||||
import { Byte } from '../Byte';
|
||||
import { ICodec } from '../ICodec';
|
||||
import { Short } from '../Short';
|
||||
import { EvaWireDataWrapper } from './EvaWireDataWrapper';
|
||||
|
||||
export class EvaWireFormat implements ICodec
|
||||
{
|
||||
public encode(header: number, messages: any[]): BinaryWriter
|
||||
public encode(header: number, messages: any[]): IBinaryWriter
|
||||
{
|
||||
const writer = new BinaryWriter();
|
||||
|
||||
|
@ -2,5 +2,4 @@ export * from './BinaryReader';
|
||||
export * from './BinaryWriter';
|
||||
export * from './Byte';
|
||||
export * from './evawire';
|
||||
export * from './ICodec';
|
||||
export * from './Short';
|
||||
|
@ -1,17 +1,9 @@
|
||||
import { ICodec, ICommunicationManager, IConnection, IConnectionStateListener, IMessageComposer, IMessageConfiguration, IMessageDataWrapper, IMessageEvent, WebSocketEventEnum } from '../../../api';
|
||||
import { Nitro } from '../../../nitro/Nitro';
|
||||
import { EventDispatcher } from '../../events/EventDispatcher';
|
||||
import { EvaWireFormat } from '../codec/evawire/EvaWireFormat';
|
||||
import { ICodec } from '../codec/ICodec';
|
||||
import { SocketConnectionEvent } from '../events/SocketConnectionEvent';
|
||||
import { ICommunicationManager } from '../ICommunicationManager';
|
||||
import { IMessageComposer } from '../messages/IMessageComposer';
|
||||
import { IMessageConfiguration } from '../messages/IMessageConfiguration';
|
||||
import { IMessageDataWrapper } from '../messages/IMessageDataWrapper';
|
||||
import { IMessageEvent } from '../messages/IMessageEvent';
|
||||
import { MessageClassManager } from '../messages/MessageClassManager';
|
||||
import { WebSocketEventEnum } from './enums/WebSocketEventEnum';
|
||||
import { IConnection } from './IConnection';
|
||||
import { IConnectionStateListener } from './IConnectionStateListener';
|
||||
|
||||
export class SocketConnection extends EventDispatcher implements IConnection
|
||||
{
|
||||
|
@ -1,4 +1 @@
|
||||
export * from './enums';
|
||||
export * from './IConnection';
|
||||
export * from './IConnectionStateListener';
|
||||
export * from './SocketConnection';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { IConnection } from '../../../api';
|
||||
import { NitroEvent } from '../../events/NitroEvent';
|
||||
import { IConnection } from '../connections/IConnection';
|
||||
|
||||
export class SocketConnectionEvent extends NitroEvent
|
||||
{
|
||||
|
@ -2,5 +2,4 @@ export * from './codec';
|
||||
export * from './CommunicationManager';
|
||||
export * from './connections';
|
||||
export * from './events';
|
||||
export * from './ICommunicationManager';
|
||||
export * from './messages';
|
||||
|
@ -1,6 +1,4 @@
|
||||
import { IMessageComposer } from './IMessageComposer';
|
||||
import { IMessageConfiguration } from './IMessageConfiguration';
|
||||
import { IMessageEvent } from './IMessageEvent';
|
||||
import { IMessageComposer, IMessageConfiguration, IMessageEvent } from '../../../api';
|
||||
import { MessageEvent } from './MessageEvent';
|
||||
|
||||
export class MessageClassManager
|
||||
|
@ -1,6 +1,4 @@
|
||||
import { IConnection } from '../connections/IConnection';
|
||||
import { IMessageEvent } from './IMessageEvent';
|
||||
import { IMessageParser } from './IMessageParser';
|
||||
import { IConnection, IMessageEvent, IMessageParser } from '../../../api';
|
||||
|
||||
export class MessageEvent implements IMessageEvent
|
||||
{
|
||||
|
@ -1,7 +1,2 @@
|
||||
export * from './IMessageComposer';
|
||||
export * from './IMessageConfiguration';
|
||||
export * from './IMessageDataWrapper';
|
||||
export * from './IMessageEvent';
|
||||
export * from './IMessageParser';
|
||||
export * from './MessageClassManager';
|
||||
export * from './MessageEvent';
|
||||
|
@ -5,6 +5,7 @@ import { IConfigurationManager } from './IConfigurationManager';
|
||||
export class ConfigurationManager extends NitroManager implements IConfigurationManager
|
||||
{
|
||||
private _definitions: Map<string, unknown>;
|
||||
private _config: any;
|
||||
private _pendingUrls: string[];
|
||||
private _missingKeys: string[];
|
||||
|
||||
@ -13,6 +14,7 @@ export class ConfigurationManager extends NitroManager implements IConfiguration
|
||||
super();
|
||||
|
||||
this._definitions = new Map();
|
||||
this._config = [];
|
||||
this._pendingUrls = [];
|
||||
this._missingKeys = [];
|
||||
|
||||
@ -161,6 +163,26 @@ export class ConfigurationManager extends NitroManager implements IConfiguration
|
||||
|
||||
public setValue<T>(key: string, value: T): void
|
||||
{
|
||||
const parts = key.split('.');
|
||||
|
||||
let last = this._config;
|
||||
|
||||
for (let i = 0; i < parts.length; i++)
|
||||
{
|
||||
const part = parts[i].toString();
|
||||
|
||||
if (i !== (parts.length - 1))
|
||||
{
|
||||
if (!last[part]) last[part] = {};
|
||||
|
||||
last = last[part];
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
last[part] = value;
|
||||
}
|
||||
|
||||
this._definitions.set(key, value);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { INitroManager } from '../common/INitroManager';
|
||||
import { INitroManager } from '../../api';
|
||||
|
||||
export interface IConfigurationManager extends INitroManager
|
||||
{
|
||||
|
@ -1,9 +1,7 @@
|
||||
import { IDisposable, IEventDispatcher, INitroLogger } from '../../api';
|
||||
import { Nitro } from '../../nitro/Nitro';
|
||||
import { Disposable } from '../common/disposable/Disposable';
|
||||
import { IDisposable } from '../common/disposable/IDisposable';
|
||||
import { INitroLogger } from '../common/logger/INitroLogger';
|
||||
import { NitroLogger } from '../common/logger/NitroLogger';
|
||||
import { IEventDispatcher } from './IEventDispatcher';
|
||||
import { Disposable } from '../common/Disposable';
|
||||
import { NitroLogger } from '../common/NitroLogger';
|
||||
import { NitroEvent } from './NitroEvent';
|
||||
|
||||
export class EventDispatcher extends Disposable implements IEventDispatcher, IDisposable
|
||||
|
@ -1,5 +1,2 @@
|
||||
export * from './EventDispatcher';
|
||||
export * from './IEventDispatcher';
|
||||
export * from './ILinkEventTracker';
|
||||
export * from './IWorkerEventTracker';
|
||||
export * from './NitroEvent';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IDisposable } from '../common/disposable/IDisposable';
|
||||
import { IDisposable } from '../../api';
|
||||
|
||||
export class AdvancedMap<T, U> implements IDisposable
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
import { Application } from '@pixi/app';
|
||||
import { Ticker } from '@pixi/ticker';
|
||||
import { IEventDispatcher } from '../core/events/IEventDispatcher';
|
||||
import { ILinkEventTracker } from '../core/events/ILinkEventTracker';
|
||||
import { IWorkerEventTracker } from '../core/events/IWorkerEventTracker';
|
||||
import { IEventDispatcher, ILinkEventTracker, IWorkerEventTracker } from '../api';
|
||||
import { INitroCore } from '../core/INitroCore';
|
||||
import { NitroTimer } from '../core/utils/NitroTimer';
|
||||
import { IRoomManager } from '../room/IRoomManager';
|
||||
|
@ -2,11 +2,9 @@ import { Application, IApplicationOptions } from '@pixi/app';
|
||||
import { SCALE_MODES } from '@pixi/constants';
|
||||
import { settings } from '@pixi/settings';
|
||||
import { Ticker } from '@pixi/ticker';
|
||||
import { IEventDispatcher, ILinkEventTracker, IWorkerEventTracker } from '../api';
|
||||
import { ConfigurationEvent } from '../core/configuration/ConfigurationEvent';
|
||||
import { EventDispatcher } from '../core/events/EventDispatcher';
|
||||
import { IEventDispatcher } from '../core/events/IEventDispatcher';
|
||||
import { ILinkEventTracker } from '../core/events/ILinkEventTracker';
|
||||
import { IWorkerEventTracker } from '../core/events/IWorkerEventTracker';
|
||||
import { NitroEvent } from '../core/events/NitroEvent';
|
||||
import { INitroCore } from '../core/INitroCore';
|
||||
import { NitroCore } from '../core/NitroCore';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IDisposable } from '../../core/common/disposable/IDisposable';
|
||||
import { IDisposable } from '../../api';
|
||||
|
||||
export interface IAvatarEffectListener extends IDisposable
|
||||
{
|
||||
|
@ -1,7 +1,6 @@
|
||||
import { RenderTexture } from '@pixi/core';
|
||||
import { Sprite } from '@pixi/sprite';
|
||||
import { IGraphicAsset } from '../../api';
|
||||
import { IDisposable } from '../../core/common/disposable/IDisposable';
|
||||
import { IDisposable, IGraphicAsset } from '../../api';
|
||||
import { IAnimationLayerData } from './animation/IAnimationLayerData';
|
||||
import { IAvatarDataContainer } from './animation/IAvatarDataContainer';
|
||||
import { ISpriteDataContainer } from './animation/ISpriteDataContainer';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IDisposable } from '../../core/common/disposable/IDisposable';
|
||||
import { IDisposable } from '../../api';
|
||||
|
||||
export interface IAvatarImageListener extends IDisposable
|
||||
{
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IAssetManager, IGraphicAsset } from '../../api';
|
||||
import { INitroManager } from '../../core/common/INitroManager';
|
||||
import { IAssetManager, IGraphicAsset, INitroManager } from '../../api';
|
||||
import { AvatarAssetDownloadManager } from './AvatarAssetDownloadManager';
|
||||
import { AvatarStructure } from './AvatarStructure';
|
||||
import { IAvatarEffectListener } from './IAvatarEffectListener';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Resource, Texture } from '@pixi/core';
|
||||
import { IEventDispatcher } from '../../core';
|
||||
import { IEventDispatcher } from '../../api';
|
||||
import { IRoomCameraWidgetEffect } from './IRoomCameraWidgetEffect';
|
||||
import { IRoomCameraWidgetSelectedEffect } from './IRoomCameraWidgetSelectedEffect';
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { Texture } from '@pixi/core';
|
||||
import { ColorMatrix, ColorMatrixFilter } from '@pixi/filter-color-matrix';
|
||||
import { EventDispatcher, IEventDispatcher, NitroContainer, NitroSprite } from '../../core';
|
||||
import { IEventDispatcher } from '../../api';
|
||||
import { EventDispatcher, NitroContainer, NitroSprite } from '../../core';
|
||||
import { TextureUtils } from '../../room';
|
||||
import { Nitro } from '../Nitro';
|
||||
import { RoomCameraWidgetManagerEvent } from './events/RoomCameraWidgetManagerEvent';
|
||||
|
@ -1,6 +1,4 @@
|
||||
import { IMessageEvent } from '../../core';
|
||||
import { INitroManager } from '../../core/common/INitroManager';
|
||||
import { IConnection } from '../../core/communication/connections/IConnection';
|
||||
import { IConnection, IMessageEvent, INitroManager } from '../../api';
|
||||
import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo';
|
||||
|
||||
export interface INitroCommunicationManager extends INitroManager
|
||||
|
@ -1,10 +1,6 @@
|
||||
import { IMessageEvent } from '../../core';
|
||||
import { ICommunicationManager, IConnection, IConnectionStateListener, IMessageConfiguration, IMessageEvent } from '../../api';
|
||||
import { NitroManager } from '../../core/common/NitroManager';
|
||||
import { IConnection } from '../../core/communication/connections/IConnection';
|
||||
import { IConnectionStateListener } from '../../core/communication/connections/IConnectionStateListener';
|
||||
import { SocketConnectionEvent } from '../../core/communication/events/SocketConnectionEvent';
|
||||
import { ICommunicationManager } from '../../core/communication/ICommunicationManager';
|
||||
import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration';
|
||||
import { NitroEvent } from '../../core/events/NitroEvent';
|
||||
import { Nitro } from '../Nitro';
|
||||
import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo';
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
import { IConnection } from '../../../api';
|
||||
import { NitroManager } from '../../../core/common/NitroManager';
|
||||
import { IConnection } from '../../../core/communication/connections/IConnection';
|
||||
import { SocketConnectionEvent } from '../../../core/communication/events/SocketConnectionEvent';
|
||||
import { Nitro } from '../../Nitro';
|
||||
import { INitroCommunicationManager } from '../INitroCommunicationManager';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IConnection } from '../../../core/communication/connections/IConnection';
|
||||
import { IConnection } from '../../../api';
|
||||
import { NitroEvent } from '../../../core/events/NitroEvent';
|
||||
|
||||
export class NitroCommunicationDemoEvent extends NitroEvent
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { InterstitialMessageParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { RoomAdErrorMessageParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { AvailabilityStatusMessageParser } from '../../parser/availability/AvailabilityStatusMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { AvailabilityTimeMessageParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { HotelClosedAndOpensMessageParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { HotelClosesAndWillOpenAtMessageParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { HotelWillCloseInMinutesMessageParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { MaintenanceStatusMessageParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { ChangeUserNameResultMessageParser } from '../../parser/avatar/ChangeUserNameResultMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CheckUserNameResultMessageParser } from '../../parser/avatar/CheckUserNameResultMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { FigureUpdateParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
import { IMessageDataWrapper } from '../../../../../api';
|
||||
|
||||
export class OutfitData
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { WardrobeMessageParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { BotAddedToInventoryParser } from '../../parser/bots/BotAddedToInventoryParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { BotInventoryMessageParser } from '../../parser/bots/BotInventoryMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { BotReceivedMessageParser } from '../../parser/bots/BotReceivedMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { BotRemovedFromInventoryParser } from '../../parser/bots/BotRemovedFromInventoryParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IDisposable, IMessageDataWrapper } from '../../../../../core';
|
||||
import { IDisposable, IMessageDataWrapper } from '../../../../../api';
|
||||
import { INamed } from '../moderation';
|
||||
import { CallForHelpTopicData } from './CallForHelpTopicData';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
import { IMessageDataWrapper } from '../../../../../api';
|
||||
import { INamed } from '../moderation';
|
||||
|
||||
export class CallForHelpTopicData implements INamed
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CfhSanctionMessageParser } from '../../parser/callforhelp/CfhSanctionMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
import { IMessageDataWrapper } from '../../../../../api';
|
||||
import { INamed } from '../moderation';
|
||||
|
||||
export class CfhSanctionTypeData implements INamed
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CfhTopicsInitMessageParser } from '../../parser/callforhelp/CfhTopicsInitMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { SanctionStatusMessageParser } from '../../parser/callforhelp';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CameraPublishStatusMessageParser } from '../../parser/camera/CameraPublishStatusMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CameraPurchaseOKMessageParser } from '../../parser/camera/CameraPurchaseOKMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CameraStorageUrlMessageParser } from '../../parser/camera/CameraStorageUrlMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CompetitionStatusMessageParser } from '../../parser/camera/CompetitionStatusMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { InitCameraMessageParser } from '../../parser/camera/InitCameraMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { ThumbnailStatusMessageParser } from '../../parser/camera/ThumbnailStatusMessageParser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CampaignCalendarDataMessageParser } from '../../parser/campaign';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CampaignCalendarDoorOpenedMessageParser } from '../../parser/campaign';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { BonusRareInfoMessageParser } from '../../parser';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { IMessageEvent } from '../../../../../api';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { BuildersClubFurniCountMessageParser } from '../../parser';
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user