Move communication interfaces

This commit is contained in:
Bill 2022-10-29 22:59:33 -04:00
parent d8fca7188f
commit e24ed2eb3b
1329 changed files with 4230 additions and 4283 deletions

View File

@ -1,6 +1,6 @@
import { IEventDispatcher } from '../events/IEventDispatcher'; import { IEventDispatcher } from '../events';
import { IDisposable } from './disposable/IDisposable'; import { IDisposable } from './IDisposable';
import { INitroLogger } from './logger/INitroLogger'; import { INitroLogger } from './INitroLogger';
export interface INitroManager extends IDisposable export interface INitroManager extends IDisposable
{ {

View File

@ -1,4 +1,4 @@
import { IDisposable } from './disposable/IDisposable'; import { IDisposable } from './IDisposable';
export interface IUpdateReceiver extends IDisposable export interface IUpdateReceiver extends IDisposable
{ {

4
src/api/common/index.ts Normal file
View File

@ -0,0 +1,4 @@
export * from './IDisposable';
export * from './INitroLogger';
export * from './INitroManager';
export * from './IUpdateReceiver';

View 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;
}

View 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;
}

View 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[];
}

View 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;
}

View File

@ -1,7 +1,7 @@
import { IEventDispatcher } from '../../events/IEventDispatcher'; import { IEventDispatcher } from '../events';
import { IMessageComposer } from '../messages/IMessageComposer'; import { IMessageComposer } from './IMessageComposer';
import { IMessageConfiguration } from '../messages/IMessageConfiguration'; import { IMessageConfiguration } from './IMessageConfiguration';
import { IMessageEvent } from '../messages/IMessageEvent'; import { IMessageEvent } from './IMessageEvent';
export interface IConnection extends IEventDispatcher export interface IConnection extends IEventDispatcher
{ {

View File

@ -1,9 +1,9 @@
import { BinaryReader } from '../codec/BinaryReader'; import { IBinaryReader } from './IBinaryReader';
export interface IMessageDataWrapper export interface IMessageDataWrapper
{ {
readByte(): number; readByte(): number;
readBytes(length: number): BinaryReader; readBytes(length: number): IBinaryReader;
readBoolean(): boolean; readBoolean(): boolean;
readShort(): number; readShort(): number;
readInt(): number; readInt(): number;

View File

@ -1,4 +1,4 @@
import { IConnection } from '../connections/IConnection'; import { IConnection } from './IConnection';
import { IMessageParser } from './IMessageParser'; import { IMessageParser } from './IMessageParser';
export interface IMessageEvent export interface IMessageEvent

View 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';

View File

@ -1,12 +1,11 @@
import { INitroLogger } from '../common'; import { IDisposable, INitroLogger } from '../common';
import { IDisposable } from '../common/disposable/IDisposable'; import { INitroEvent } from './INitroEvent';
import { NitroEvent } from './NitroEvent';
export interface IEventDispatcher extends IDisposable export interface IEventDispatcher extends IDisposable
{ {
addEventListener(type: string, callback: Function): void addEventListener(type: string, callback: Function): void
removeEventListener(type: string, callback: Function): void; removeEventListener(type: string, callback: Function): void;
removeAllListeners(): void; removeAllListeners(): void;
dispatchEvent(event: NitroEvent): boolean; dispatchEvent(event: INitroEvent): boolean;
logger: INitroLogger; logger: INitroLogger;
} }

View File

@ -0,0 +1,4 @@
export interface INitroEvent
{
type: string;
}

4
src/api/events/index.ts Normal file
View File

@ -0,0 +1,4 @@
export * from './IEventDispatcher';
export * from './ILinkEventTracker';
export * from './INitroEvent';
export * from './IWorkerEventTracker';

View File

@ -9,3 +9,6 @@ export * from './asset/visualization/animation';
export * from './asset/visualization/color'; export * from './asset/visualization/color';
export * from './asset/visualization/gestures'; export * from './asset/visualization/gestures';
export * from './asset/visualization/postures'; export * from './asset/visualization/postures';
export * from './common';
export * from './communication';
export * from './events';

View File

@ -1,6 +1,4 @@
import { IAssetManager } from '../api'; import { IAssetManager, ICommunicationManager, IDisposable } from '../api';
import { IDisposable } from './common/disposable/IDisposable';
import { ICommunicationManager } from './communication/ICommunicationManager';
import { IConfigurationManager } from './configuration/IConfigurationManager'; import { IConfigurationManager } from './configuration/IConfigurationManager';
export interface INitroCore extends IDisposable export interface INitroCore extends IDisposable

View File

@ -1,8 +1,7 @@
import { IAssetManager } from '../api'; import { IAssetManager, ICommunicationManager } from '../api';
import { AssetManager } from './asset/AssetManager'; import { AssetManager } from './asset/AssetManager';
import { Disposable } from './common/disposable/Disposable'; import { Disposable } from './common/Disposable';
import { CommunicationManager } from './communication/CommunicationManager'; import { CommunicationManager } from './communication/CommunicationManager';
import { ICommunicationManager } from './communication/ICommunicationManager';
import { ConfigurationManager } from './configuration/ConfigurationManager'; import { ConfigurationManager } from './configuration/ConfigurationManager';
import { IConfigurationManager } from './configuration/IConfigurationManager'; import { IConfigurationManager } from './configuration/IConfigurationManager';
import { INitroCore } from './INitroCore'; import { INitroCore } from './INitroCore';

View File

@ -1,11 +1,10 @@
import { BaseTexture, Resource, Texture } from '@pixi/core'; import { BaseTexture, Resource, Texture } from '@pixi/core';
import { Loader, LoaderResource } from '@pixi/loaders'; import { Loader, LoaderResource } from '@pixi/loaders';
import { Spritesheet } from '@pixi/spritesheet'; 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 { GraphicAssetCollection } from '../../room/object/visualization/utils/GraphicAssetCollection';
import { Disposable } from '../common/disposable/Disposable'; import { Disposable } from '../common/Disposable';
import { INitroLogger } from '../common/logger/INitroLogger'; import { NitroLogger } from '../common/NitroLogger';
import { NitroLogger } from '../common/logger/NitroLogger';
import { ArrayBufferToBase64 } from '../utils'; import { ArrayBufferToBase64 } from '../utils';
import { NitroBundle } from './NitroBundle'; import { NitroBundle } from './NitroBundle';

View File

@ -1,4 +1,4 @@
import { IDisposable } from './IDisposable'; import { IDisposable } from '../../api';
export class Disposable implements IDisposable export class Disposable implements IDisposable
{ {

View File

@ -1,4 +1,4 @@
import { INitroLogger } from './INitroLogger'; import { INitroLogger } from '../../api';
export class NitroLogger implements INitroLogger export class NitroLogger implements INitroLogger
{ {

View File

@ -1,9 +1,7 @@
import { IEventDispatcher, INitroLogger, INitroManager } from '../../api';
import { EventDispatcher } from '../events/EventDispatcher'; import { EventDispatcher } from '../events/EventDispatcher';
import { IEventDispatcher } from '../events/IEventDispatcher'; import { Disposable } from './Disposable';
import { Disposable } from './disposable/Disposable'; import { NitroLogger } from './NitroLogger';
import { INitroManager } from './INitroManager';
import { INitroLogger } from './logger/INitroLogger';
import { NitroLogger } from './logger/NitroLogger';
export class NitroManager extends Disposable implements INitroManager export class NitroManager extends Disposable implements INitroManager
{ {

View File

@ -1,2 +0,0 @@
export * from './Disposable';
export * from './IDisposable';

View File

@ -1,5 +1,3 @@
export * from './disposable'; export * from './Disposable';
export * from './INitroManager'; export * from './NitroLogger';
export * from './IUpdateReceiver';
export * from './logger';
export * from './NitroManager'; export * from './NitroManager';

View File

@ -1,2 +0,0 @@
export * from './INitroLogger';
export * from './NitroLogger';

View File

@ -1,9 +1,6 @@
import { Disposable } from '../common/disposable/Disposable'; import { ICommunicationManager, IConnection, IConnectionStateListener, IUpdateReceiver } from '../../api';
import { IUpdateReceiver } from '../common/IUpdateReceiver'; import { Disposable } from '../common/Disposable';
import { IConnection } from './connections/IConnection';
import { IConnectionStateListener } from './connections/IConnectionStateListener';
import { SocketConnection } from './connections/SocketConnection'; import { SocketConnection } from './connections/SocketConnection';
import { ICommunicationManager } from './ICommunicationManager';
export class CommunicationManager extends Disposable implements ICommunicationManager, IUpdateReceiver export class CommunicationManager extends Disposable implements ICommunicationManager, IUpdateReceiver
{ {

View File

@ -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;
}

View File

@ -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[];
}

View File

@ -1,18 +1,17 @@
import { IMessageDataWrapper } from '../../messages/IMessageDataWrapper'; import { IBinaryReader, IMessageDataWrapper } from '../../../../api';
import { BinaryReader } from '../BinaryReader';
export class EvaWireDataWrapper implements IMessageDataWrapper export class EvaWireDataWrapper implements IMessageDataWrapper
{ {
private _header: number; private _header: number;
private _buffer: BinaryReader; private _buffer: IBinaryReader;
constructor(header: number, buffer: BinaryReader) constructor(header: number, buffer: IBinaryReader)
{ {
this._header = header; this._header = header;
this._buffer = buffer; this._buffer = buffer;
} }
public readBytes(length: number): BinaryReader public readBytes(length: number): IBinaryReader
{ {
if (!this._buffer) return null; if (!this._buffer) return null;

View File

@ -1,15 +1,13 @@
import { IConnection } from '../../connections/IConnection'; import { IBinaryWriter, ICodec, IConnection, IMessageDataWrapper } from '../../../../api';
import { IMessageDataWrapper } from '../../messages/IMessageDataWrapper';
import { BinaryReader } from '../BinaryReader'; import { BinaryReader } from '../BinaryReader';
import { BinaryWriter } from '../BinaryWriter'; import { BinaryWriter } from '../BinaryWriter';
import { Byte } from '../Byte'; import { Byte } from '../Byte';
import { ICodec } from '../ICodec';
import { Short } from '../Short'; import { Short } from '../Short';
import { EvaWireDataWrapper } from './EvaWireDataWrapper'; import { EvaWireDataWrapper } from './EvaWireDataWrapper';
export class EvaWireFormat implements ICodec export class EvaWireFormat implements ICodec
{ {
public encode(header: number, messages: any[]): BinaryWriter public encode(header: number, messages: any[]): IBinaryWriter
{ {
const writer = new BinaryWriter(); const writer = new BinaryWriter();

View File

@ -2,5 +2,4 @@ export * from './BinaryReader';
export * from './BinaryWriter'; export * from './BinaryWriter';
export * from './Byte'; export * from './Byte';
export * from './evawire'; export * from './evawire';
export * from './ICodec';
export * from './Short'; export * from './Short';

View File

@ -1,17 +1,9 @@
import { ICodec, ICommunicationManager, IConnection, IConnectionStateListener, IMessageComposer, IMessageConfiguration, IMessageDataWrapper, IMessageEvent, WebSocketEventEnum } from '../../../api';
import { Nitro } from '../../../nitro/Nitro'; import { Nitro } from '../../../nitro/Nitro';
import { EventDispatcher } from '../../events/EventDispatcher'; import { EventDispatcher } from '../../events/EventDispatcher';
import { EvaWireFormat } from '../codec/evawire/EvaWireFormat'; import { EvaWireFormat } from '../codec/evawire/EvaWireFormat';
import { ICodec } from '../codec/ICodec';
import { SocketConnectionEvent } from '../events/SocketConnectionEvent'; 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 { MessageClassManager } from '../messages/MessageClassManager';
import { WebSocketEventEnum } from './enums/WebSocketEventEnum';
import { IConnection } from './IConnection';
import { IConnectionStateListener } from './IConnectionStateListener';
export class SocketConnection extends EventDispatcher implements IConnection export class SocketConnection extends EventDispatcher implements IConnection
{ {

View File

@ -1,4 +1 @@
export * from './enums';
export * from './IConnection';
export * from './IConnectionStateListener';
export * from './SocketConnection'; export * from './SocketConnection';

View File

@ -1,5 +1,5 @@
import { IConnection } from '../../../api';
import { NitroEvent } from '../../events/NitroEvent'; import { NitroEvent } from '../../events/NitroEvent';
import { IConnection } from '../connections/IConnection';
export class SocketConnectionEvent extends NitroEvent export class SocketConnectionEvent extends NitroEvent
{ {

View File

@ -2,5 +2,4 @@ export * from './codec';
export * from './CommunicationManager'; export * from './CommunicationManager';
export * from './connections'; export * from './connections';
export * from './events'; export * from './events';
export * from './ICommunicationManager';
export * from './messages'; export * from './messages';

View File

@ -1,6 +1,4 @@
import { IMessageComposer } from './IMessageComposer'; import { IMessageComposer, IMessageConfiguration, IMessageEvent } from '../../../api';
import { IMessageConfiguration } from './IMessageConfiguration';
import { IMessageEvent } from './IMessageEvent';
import { MessageEvent } from './MessageEvent'; import { MessageEvent } from './MessageEvent';
export class MessageClassManager export class MessageClassManager

View File

@ -1,6 +1,4 @@
import { IConnection } from '../connections/IConnection'; import { IConnection, IMessageEvent, IMessageParser } from '../../../api';
import { IMessageEvent } from './IMessageEvent';
import { IMessageParser } from './IMessageParser';
export class MessageEvent implements IMessageEvent export class MessageEvent implements IMessageEvent
{ {

View File

@ -1,7 +1,2 @@
export * from './IMessageComposer';
export * from './IMessageConfiguration';
export * from './IMessageDataWrapper';
export * from './IMessageEvent';
export * from './IMessageParser';
export * from './MessageClassManager'; export * from './MessageClassManager';
export * from './MessageEvent'; export * from './MessageEvent';

View File

@ -5,6 +5,7 @@ import { IConfigurationManager } from './IConfigurationManager';
export class ConfigurationManager extends NitroManager implements IConfigurationManager export class ConfigurationManager extends NitroManager implements IConfigurationManager
{ {
private _definitions: Map<string, unknown>; private _definitions: Map<string, unknown>;
private _config: any;
private _pendingUrls: string[]; private _pendingUrls: string[];
private _missingKeys: string[]; private _missingKeys: string[];
@ -13,6 +14,7 @@ export class ConfigurationManager extends NitroManager implements IConfiguration
super(); super();
this._definitions = new Map(); this._definitions = new Map();
this._config = [];
this._pendingUrls = []; this._pendingUrls = [];
this._missingKeys = []; this._missingKeys = [];
@ -161,6 +163,26 @@ export class ConfigurationManager extends NitroManager implements IConfiguration
public setValue<T>(key: string, value: T): void 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); this._definitions.set(key, value);
} }

View File

@ -1,4 +1,4 @@
import { INitroManager } from '../common/INitroManager'; import { INitroManager } from '../../api';
export interface IConfigurationManager extends INitroManager export interface IConfigurationManager extends INitroManager
{ {

View File

@ -1,9 +1,7 @@
import { IDisposable, IEventDispatcher, INitroLogger } from '../../api';
import { Nitro } from '../../nitro/Nitro'; import { Nitro } from '../../nitro/Nitro';
import { Disposable } from '../common/disposable/Disposable'; import { Disposable } from '../common/Disposable';
import { IDisposable } from '../common/disposable/IDisposable'; import { NitroLogger } from '../common/NitroLogger';
import { INitroLogger } from '../common/logger/INitroLogger';
import { NitroLogger } from '../common/logger/NitroLogger';
import { IEventDispatcher } from './IEventDispatcher';
import { NitroEvent } from './NitroEvent'; import { NitroEvent } from './NitroEvent';
export class EventDispatcher extends Disposable implements IEventDispatcher, IDisposable export class EventDispatcher extends Disposable implements IEventDispatcher, IDisposable

View File

@ -1,5 +1,2 @@
export * from './EventDispatcher'; export * from './EventDispatcher';
export * from './IEventDispatcher';
export * from './ILinkEventTracker';
export * from './IWorkerEventTracker';
export * from './NitroEvent'; export * from './NitroEvent';

View File

@ -1,4 +1,4 @@
import { IDisposable } from '../common/disposable/IDisposable'; import { IDisposable } from '../../api';
export class AdvancedMap<T, U> implements IDisposable export class AdvancedMap<T, U> implements IDisposable
{ {

View File

@ -1,8 +1,6 @@
import { Application } from '@pixi/app'; import { Application } from '@pixi/app';
import { Ticker } from '@pixi/ticker'; import { Ticker } from '@pixi/ticker';
import { IEventDispatcher } from '../core/events/IEventDispatcher'; import { IEventDispatcher, ILinkEventTracker, IWorkerEventTracker } from '../api';
import { ILinkEventTracker } from '../core/events/ILinkEventTracker';
import { IWorkerEventTracker } from '../core/events/IWorkerEventTracker';
import { INitroCore } from '../core/INitroCore'; import { INitroCore } from '../core/INitroCore';
import { NitroTimer } from '../core/utils/NitroTimer'; import { NitroTimer } from '../core/utils/NitroTimer';
import { IRoomManager } from '../room/IRoomManager'; import { IRoomManager } from '../room/IRoomManager';

View File

@ -2,11 +2,9 @@ import { Application, IApplicationOptions } from '@pixi/app';
import { SCALE_MODES } from '@pixi/constants'; import { SCALE_MODES } from '@pixi/constants';
import { settings } from '@pixi/settings'; import { settings } from '@pixi/settings';
import { Ticker } from '@pixi/ticker'; import { Ticker } from '@pixi/ticker';
import { IEventDispatcher, ILinkEventTracker, IWorkerEventTracker } from '../api';
import { ConfigurationEvent } from '../core/configuration/ConfigurationEvent'; import { ConfigurationEvent } from '../core/configuration/ConfigurationEvent';
import { EventDispatcher } from '../core/events/EventDispatcher'; 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 { NitroEvent } from '../core/events/NitroEvent';
import { INitroCore } from '../core/INitroCore'; import { INitroCore } from '../core/INitroCore';
import { NitroCore } from '../core/NitroCore'; import { NitroCore } from '../core/NitroCore';

View File

@ -1,4 +1,4 @@
import { IDisposable } from '../../core/common/disposable/IDisposable'; import { IDisposable } from '../../api';
export interface IAvatarEffectListener extends IDisposable export interface IAvatarEffectListener extends IDisposable
{ {

View File

@ -1,7 +1,6 @@
import { RenderTexture } from '@pixi/core'; import { RenderTexture } from '@pixi/core';
import { Sprite } from '@pixi/sprite'; import { Sprite } from '@pixi/sprite';
import { IGraphicAsset } from '../../api'; import { IDisposable, IGraphicAsset } from '../../api';
import { IDisposable } from '../../core/common/disposable/IDisposable';
import { IAnimationLayerData } from './animation/IAnimationLayerData'; import { IAnimationLayerData } from './animation/IAnimationLayerData';
import { IAvatarDataContainer } from './animation/IAvatarDataContainer'; import { IAvatarDataContainer } from './animation/IAvatarDataContainer';
import { ISpriteDataContainer } from './animation/ISpriteDataContainer'; import { ISpriteDataContainer } from './animation/ISpriteDataContainer';

View File

@ -1,4 +1,4 @@
import { IDisposable } from '../../core/common/disposable/IDisposable'; import { IDisposable } from '../../api';
export interface IAvatarImageListener extends IDisposable export interface IAvatarImageListener extends IDisposable
{ {

View File

@ -1,5 +1,4 @@
import { IAssetManager, IGraphicAsset } from '../../api'; import { IAssetManager, IGraphicAsset, INitroManager } from '../../api';
import { INitroManager } from '../../core/common/INitroManager';
import { AvatarAssetDownloadManager } from './AvatarAssetDownloadManager'; import { AvatarAssetDownloadManager } from './AvatarAssetDownloadManager';
import { AvatarStructure } from './AvatarStructure'; import { AvatarStructure } from './AvatarStructure';
import { IAvatarEffectListener } from './IAvatarEffectListener'; import { IAvatarEffectListener } from './IAvatarEffectListener';

View File

@ -1,5 +1,5 @@
import { Resource, Texture } from '@pixi/core'; import { Resource, Texture } from '@pixi/core';
import { IEventDispatcher } from '../../core'; import { IEventDispatcher } from '../../api';
import { IRoomCameraWidgetEffect } from './IRoomCameraWidgetEffect'; import { IRoomCameraWidgetEffect } from './IRoomCameraWidgetEffect';
import { IRoomCameraWidgetSelectedEffect } from './IRoomCameraWidgetSelectedEffect'; import { IRoomCameraWidgetSelectedEffect } from './IRoomCameraWidgetSelectedEffect';

View File

@ -1,6 +1,7 @@
import { Texture } from '@pixi/core'; import { Texture } from '@pixi/core';
import { ColorMatrix, ColorMatrixFilter } from '@pixi/filter-color-matrix'; 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 { TextureUtils } from '../../room';
import { Nitro } from '../Nitro'; import { Nitro } from '../Nitro';
import { RoomCameraWidgetManagerEvent } from './events/RoomCameraWidgetManagerEvent'; import { RoomCameraWidgetManagerEvent } from './events/RoomCameraWidgetManagerEvent';

View File

@ -1,6 +1,4 @@
import { IMessageEvent } from '../../core'; import { IConnection, IMessageEvent, INitroManager } from '../../api';
import { INitroManager } from '../../core/common/INitroManager';
import { IConnection } from '../../core/communication/connections/IConnection';
import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo'; import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo';
export interface INitroCommunicationManager extends INitroManager export interface INitroCommunicationManager extends INitroManager

View File

@ -1,10 +1,6 @@
import { IMessageEvent } from '../../core'; import { ICommunicationManager, IConnection, IConnectionStateListener, IMessageConfiguration, IMessageEvent } from '../../api';
import { NitroManager } from '../../core/common/NitroManager'; 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 { 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 { NitroEvent } from '../../core/events/NitroEvent';
import { Nitro } from '../Nitro'; import { Nitro } from '../Nitro';
import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo'; import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo';

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
import { IConnection } from '../../../api';
import { NitroManager } from '../../../core/common/NitroManager'; import { NitroManager } from '../../../core/common/NitroManager';
import { IConnection } from '../../../core/communication/connections/IConnection';
import { SocketConnectionEvent } from '../../../core/communication/events/SocketConnectionEvent'; import { SocketConnectionEvent } from '../../../core/communication/events/SocketConnectionEvent';
import { Nitro } from '../../Nitro'; import { Nitro } from '../../Nitro';
import { INitroCommunicationManager } from '../INitroCommunicationManager'; import { INitroCommunicationManager } from '../INitroCommunicationManager';

View File

@ -1,4 +1,4 @@
import { IConnection } from '../../../core/communication/connections/IConnection'; import { IConnection } from '../../../api';
import { NitroEvent } from '../../../core/events/NitroEvent'; import { NitroEvent } from '../../../core/events/NitroEvent';
export class NitroCommunicationDemoEvent extends NitroEvent export class NitroCommunicationDemoEvent extends NitroEvent

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { InterstitialMessageParser } from '../../parser'; import { InterstitialMessageParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomAdErrorMessageParser } from '../../parser'; import { RoomAdErrorMessageParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { AvailabilityStatusMessageParser } from '../../parser/availability/AvailabilityStatusMessageParser'; import { AvailabilityStatusMessageParser } from '../../parser/availability/AvailabilityStatusMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { AvailabilityTimeMessageParser } from '../../parser'; import { AvailabilityTimeMessageParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { HotelClosedAndOpensMessageParser } from '../../parser'; import { HotelClosedAndOpensMessageParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { HotelClosesAndWillOpenAtMessageParser } from '../../parser'; import { HotelClosesAndWillOpenAtMessageParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { HotelWillCloseInMinutesMessageParser } from '../../parser'; import { HotelWillCloseInMinutesMessageParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { MaintenanceStatusMessageParser } from '../../parser'; import { MaintenanceStatusMessageParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { ChangeUserNameResultMessageParser } from '../../parser/avatar/ChangeUserNameResultMessageParser'; import { ChangeUserNameResultMessageParser } from '../../parser/avatar/ChangeUserNameResultMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CheckUserNameResultMessageParser } from '../../parser/avatar/CheckUserNameResultMessageParser'; import { CheckUserNameResultMessageParser } from '../../parser/avatar/CheckUserNameResultMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { FigureUpdateParser } from '../../parser'; import { FigureUpdateParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageDataWrapper } from '../../../../../core'; import { IMessageDataWrapper } from '../../../../../api';
export class OutfitData export class OutfitData
{ {

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { WardrobeMessageParser } from '../../parser'; import { WardrobeMessageParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { BotAddedToInventoryParser } from '../../parser/bots/BotAddedToInventoryParser'; import { BotAddedToInventoryParser } from '../../parser/bots/BotAddedToInventoryParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { BotInventoryMessageParser } from '../../parser/bots/BotInventoryMessageParser'; import { BotInventoryMessageParser } from '../../parser/bots/BotInventoryMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { BotReceivedMessageParser } from '../../parser/bots/BotReceivedMessageParser'; import { BotReceivedMessageParser } from '../../parser/bots/BotReceivedMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { BotRemovedFromInventoryParser } from '../../parser/bots/BotRemovedFromInventoryParser'; import { BotRemovedFromInventoryParser } from '../../parser/bots/BotRemovedFromInventoryParser';

View File

@ -1,4 +1,4 @@
import { IDisposable, IMessageDataWrapper } from '../../../../../core'; import { IDisposable, IMessageDataWrapper } from '../../../../../api';
import { INamed } from '../moderation'; import { INamed } from '../moderation';
import { CallForHelpTopicData } from './CallForHelpTopicData'; import { CallForHelpTopicData } from './CallForHelpTopicData';

View File

@ -1,4 +1,4 @@
import { IMessageDataWrapper } from '../../../../../core'; import { IMessageDataWrapper } from '../../../../../api';
import { INamed } from '../moderation'; import { INamed } from '../moderation';
export class CallForHelpTopicData implements INamed export class CallForHelpTopicData implements INamed

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CfhSanctionMessageParser } from '../../parser/callforhelp/CfhSanctionMessageParser'; import { CfhSanctionMessageParser } from '../../parser/callforhelp/CfhSanctionMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageDataWrapper } from '../../../../../core'; import { IMessageDataWrapper } from '../../../../../api';
import { INamed } from '../moderation'; import { INamed } from '../moderation';
export class CfhSanctionTypeData implements INamed export class CfhSanctionTypeData implements INamed

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CfhTopicsInitMessageParser } from '../../parser/callforhelp/CfhTopicsInitMessageParser'; import { CfhTopicsInitMessageParser } from '../../parser/callforhelp/CfhTopicsInitMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { SanctionStatusMessageParser } from '../../parser/callforhelp'; import { SanctionStatusMessageParser } from '../../parser/callforhelp';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CameraPublishStatusMessageParser } from '../../parser/camera/CameraPublishStatusMessageParser'; import { CameraPublishStatusMessageParser } from '../../parser/camera/CameraPublishStatusMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CameraPurchaseOKMessageParser } from '../../parser/camera/CameraPurchaseOKMessageParser'; import { CameraPurchaseOKMessageParser } from '../../parser/camera/CameraPurchaseOKMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CameraStorageUrlMessageParser } from '../../parser/camera/CameraStorageUrlMessageParser'; import { CameraStorageUrlMessageParser } from '../../parser/camera/CameraStorageUrlMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CompetitionStatusMessageParser } from '../../parser/camera/CompetitionStatusMessageParser'; import { CompetitionStatusMessageParser } from '../../parser/camera/CompetitionStatusMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { InitCameraMessageParser } from '../../parser/camera/InitCameraMessageParser'; import { InitCameraMessageParser } from '../../parser/camera/InitCameraMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { ThumbnailStatusMessageParser } from '../../parser/camera/ThumbnailStatusMessageParser'; import { ThumbnailStatusMessageParser } from '../../parser/camera/ThumbnailStatusMessageParser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CampaignCalendarDataMessageParser } from '../../parser/campaign'; import { CampaignCalendarDataMessageParser } from '../../parser/campaign';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CampaignCalendarDoorOpenedMessageParser } from '../../parser/campaign'; import { CampaignCalendarDoorOpenedMessageParser } from '../../parser/campaign';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { BonusRareInfoMessageParser } from '../../parser'; import { BonusRareInfoMessageParser } from '../../parser';

View File

@ -1,4 +1,4 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { IMessageEvent } from '../../../../../api';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { BuildersClubFurniCountMessageParser } from '../../parser'; import { BuildersClubFurniCountMessageParser } from '../../parser';

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