Move events

This commit is contained in:
Bill 2022-11-03 14:40:24 -04:00
parent 76d1d11af7
commit 175e706b51
593 changed files with 1988 additions and 1889 deletions

View File

@ -0,0 +1,8 @@
import { IEventDispatcher } from '../../common';
export interface IAvatarAssetDownloadLibrary extends IEventDispatcher
{
downloadAsset(): void;
readonly libraryName: string;
readonly isLoaded: boolean;
}

View File

@ -0,0 +1,10 @@
import { IAssetAnimation } from '../../asset';
import { IEventDispatcher } from '../../common';
export interface IEffectAssetDownloadLibrary extends IEventDispatcher
{
downloadAsset(): void;
readonly libraryName: string;
readonly animation: { [index: string]: IAssetAnimation };
readonly isLoaded: boolean;
}

View File

@ -2,11 +2,13 @@ export * from './actions';
export * from './animation'; export * from './animation';
export * from './enum'; export * from './enum';
export * from './figuredata'; export * from './figuredata';
export * from './IAvatarAssetDownloadLibrary';
export * from './IAvatarEffectListener'; export * from './IAvatarEffectListener';
export * from './IAvatarFigureContainer'; export * from './IAvatarFigureContainer';
export * from './IAvatarImage'; export * from './IAvatarImage';
export * from './IAvatarImageListener'; export * from './IAvatarImageListener';
export * from './IAvatarRenderManager'; export * from './IAvatarRenderManager';
export * from './IEffectAssetDownloadLibrary';
export * from './IOutfit'; export * from './IOutfit';
export * from './pet'; export * from './pet';
export * from './structure'; export * from './structure';

View File

@ -0,0 +1,10 @@
export interface IPetFigureData
{
readonly typeId: number;
readonly paletteId: number;
readonly color: string;
readonly breedId: number;
readonly figuredata: string;
readonly customParts: number[];
readonly custompartCount: number;
}

View File

@ -1,5 +1,6 @@
export * from './data'; export * from './data';
export * from './data/type'; export * from './data/type';
export * from './IPetFigureData';
export * from './IRoomMapData'; export * from './IRoomMapData';
export * from './RoomObjectCategory'; export * from './RoomObjectCategory';
export * from './RoomObjectLogicType'; export * from './RoomObjectLogicType';

View File

@ -0,0 +1,6 @@
export interface IPollChoice
{
value: string;
choiceText: string;
choiceType: number;
}

View File

@ -0,0 +1,14 @@
import { IPollChoice } from './IPollChoice';
export interface IPollQuestion
{
questionId: number;
questionType: number;
sortOrder: number;
questionText: string;
questionCategory: number;
questionAnswerType: number;
questionAnswerCount: number;
children: IPollQuestion[];
questionChoices: IPollChoice[];
}

View File

@ -0,0 +1,12 @@
export interface IQuestion
{
id: number;
number: number;
type: number;
content: string;
selection_min?: number;
selections?: string[];
selection_values?: string[];
selection_count?: number;
selection_max?: number;
}

View File

@ -0,0 +1,30 @@
export interface IRoomPetData
{
id: number;
level: number;
maximumLevel: number;
experience: number;
levelExperienceGoal: number;
energy: number;
maximumEnergy: number;
happyness: number;
maximumHappyness: number;
ownerId: number;
ownerName: string;
respect: number;
age: number;
unknownRarity: number;
saddle: boolean;
rider: boolean;
skillTresholds: number[];
publiclyRideable: number;
breedable: boolean;
fullyGrown: boolean;
dead: boolean;
rarityLevel: number;
maximumTimeToLive: number;
remainingTimeToLive: number;
remainingGrowTime: number;
publiclyBreedable: boolean;
readonly adultLevel: number;
}

View File

@ -4,10 +4,14 @@ export * from './IFurnitureData';
export * from './IFurnitureDataListener'; export * from './IFurnitureDataListener';
export * from './IGroupInformationManager'; export * from './IGroupInformationManager';
export * from './IIgnoredUsersManager'; export * from './IIgnoredUsersManager';
export * from './IPollChoice';
export * from './IPollQuestion';
export * from './IProductData'; export * from './IProductData';
export * from './IProductDataListener'; export * from './IProductDataListener';
export * from './IQuestion';
export * from './IRoomHandlerListener'; export * from './IRoomHandlerListener';
export * from './IRoomModerationSettings'; export * from './IRoomModerationSettings';
export * from './IRoomPetData';
export * from './IRoomSession'; export * from './IRoomSession';
export * from './IRoomSessionManager'; export * from './IRoomSessionManager';
export * from './IRoomUserData'; export * from './IRoomUserData';

View File

@ -0,0 +1,10 @@
export interface IPetBreedingResultData
{
readonly stuffId: number;
readonly classId: number;
readonly productCode: string;
readonly userId: number;
readonly userName: string;
readonly rarityLevel: number;
readonly hasMutation: boolean;
}

View File

@ -1,3 +1,4 @@
export * from './IPetBreedingResultData';
export * from './IRoomGeometry'; export * from './IRoomGeometry';
export * from './IRoomInstance'; export * from './IRoomInstance';
export * from './IRoomInstanceContainer'; export * from './IRoomInstanceContainer';

View File

@ -1,6 +1,5 @@
import { IDisposable, IEventDispatcher, INitroLogger } from '../../api'; import { IDisposable, IEventDispatcher, INitroEvent, INitroLogger } from '../../api';
import { Disposable } from './Disposable'; import { Disposable } from './Disposable';
import { NitroEvent } from './NitroEvent';
import { NitroLogger } from './NitroLogger'; import { NitroLogger } from './NitroLogger';
export class EventDispatcher extends Disposable implements IEventDispatcher, IDisposable export class EventDispatcher extends Disposable implements IEventDispatcher, IDisposable
@ -25,11 +24,11 @@ export class EventDispatcher extends Disposable implements IEventDispatcher, IDi
public addEventListener(type: string, callback: Function): void public addEventListener(type: string, callback: Function): void
{ {
if(!type || !callback) return; if (!type || !callback) return;
const existing = this._listeners.get(type); const existing = this._listeners.get(type);
if(!existing) if (!existing)
{ {
this._listeners.set(type, [callback]); this._listeners.set(type, [callback]);
@ -41,27 +40,27 @@ export class EventDispatcher extends Disposable implements IEventDispatcher, IDi
public removeEventListener(type: string, callback: any): void public removeEventListener(type: string, callback: any): void
{ {
if(!type || !callback) return; if (!type || !callback) return;
const existing = this._listeners.get(type); const existing = this._listeners.get(type);
if(!existing || !existing.length) return; if (!existing || !existing.length) return;
for(const [i, cb] of existing.entries()) for (const [i, cb] of existing.entries())
{ {
if(!cb || (cb !== callback)) continue; if (!cb || (cb !== callback)) continue;
existing.splice(i, 1); existing.splice(i, 1);
if(!existing.length) this._listeners.delete(type); if (!existing.length) this._listeners.delete(type);
return; return;
} }
} }
public dispatchEvent(event: NitroEvent): boolean public dispatchEvent(event: INitroEvent): boolean
{ {
if(!event) return false; if (!event) return false;
//if (Nitro.instance.getConfiguration<boolean>('system.dispatcher.log')) this._logger.log('Dispatched Event', event.type); //if (Nitro.instance.getConfiguration<boolean>('system.dispatcher.log')) this._logger.log('Dispatched Event', event.type);
@ -70,22 +69,22 @@ export class EventDispatcher extends Disposable implements IEventDispatcher, IDi
return true; return true;
} }
private processEvent(event: NitroEvent): void private processEvent(event: INitroEvent): void
{ {
const existing = this._listeners.get(event.type); const existing = this._listeners.get(event.type);
if(!existing || !existing.length) return; if (!existing || !existing.length) return;
const callbacks = []; const callbacks = [];
for(const callback of existing) for (const callback of existing)
{ {
if(!callback) continue; if (!callback) continue;
callbacks.push(callback); callbacks.push(callback);
} }
while(callbacks.length) while (callbacks.length)
{ {
const callback = callbacks.shift(); const callback = callbacks.shift();

View File

@ -1,5 +1,4 @@
export * from './Disposable'; export * from './Disposable';
export * from './EventDispatcher'; export * from './EventDispatcher';
export * from './NitroEvent';
export * from './NitroLogger'; export * from './NitroLogger';
export * from './NitroManager'; export * from './NitroManager';

View File

@ -1,8 +1,8 @@
import { ICodec, ICommunicationManager, IConnection, IConnectionStateListener, IMessageComposer, IMessageConfiguration, IMessageDataWrapper, IMessageEvent, WebSocketEventEnum } from '../../api'; import { ICodec, ICommunicationManager, IConnection, IConnectionStateListener, IMessageComposer, IMessageConfiguration, IMessageDataWrapper, IMessageEvent, WebSocketEventEnum } from '../../api';
import { SocketConnectionEvent } from '../../events';
import { EventDispatcher } from '../common'; import { EventDispatcher } from '../common';
import { EvaWireFormat } from './codec'; import { EvaWireFormat } from './codec';
import { MessageClassManager } from './messages'; import { MessageClassManager } from './messages';
import { SocketConnectionEvent } from './SocketConnectionEvent';
export class SocketConnection extends EventDispatcher implements IConnection export class SocketConnection extends EventDispatcher implements IConnection
{ {
@ -44,7 +44,7 @@ export class SocketConnection extends EventDispatcher implements IConnection
public init(socketUrl: string): void public init(socketUrl: string): void
{ {
if(this._stateListener) if (this._stateListener)
{ {
this._stateListener.connectionInit(socketUrl); this._stateListener.connectionInit(socketUrl);
} }
@ -67,13 +67,13 @@ export class SocketConnection extends EventDispatcher implements IConnection
public onReady(): void public onReady(): void
{ {
if(this._isReady) return; if (this._isReady) return;
this._isReady = true; this._isReady = true;
if(this._pendingServerMessages && this._pendingServerMessages.length) this.processWrappers(...this._pendingServerMessages); if (this._pendingServerMessages && this._pendingServerMessages.length) this.processWrappers(...this._pendingServerMessages);
if(this._pendingClientMessages && this._pendingClientMessages.length) this.send(...this._pendingClientMessages); if (this._pendingClientMessages && this._pendingClientMessages.length) this.send(...this._pendingClientMessages);
this._pendingServerMessages = []; this._pendingServerMessages = [];
this._pendingClientMessages = []; this._pendingClientMessages = [];
@ -81,7 +81,7 @@ export class SocketConnection extends EventDispatcher implements IConnection
private createSocket(socketUrl: string): void private createSocket(socketUrl: string): void
{ {
if(!socketUrl) return; if (!socketUrl) return;
this.destroySocket(); this.destroySocket();
@ -96,14 +96,14 @@ export class SocketConnection extends EventDispatcher implements IConnection
private destroySocket(): void private destroySocket(): void
{ {
if(!this._socket) return; if (!this._socket) return;
this._socket.removeEventListener(WebSocketEventEnum.CONNECTION_OPENED, this.onOpen); this._socket.removeEventListener(WebSocketEventEnum.CONNECTION_OPENED, this.onOpen);
this._socket.removeEventListener(WebSocketEventEnum.CONNECTION_CLOSED, this.onClose); this._socket.removeEventListener(WebSocketEventEnum.CONNECTION_CLOSED, this.onClose);
this._socket.removeEventListener(WebSocketEventEnum.CONNECTION_ERROR, this.onError); this._socket.removeEventListener(WebSocketEventEnum.CONNECTION_ERROR, this.onError);
this._socket.removeEventListener(WebSocketEventEnum.CONNECTION_MESSAGE, this.onMessage); this._socket.removeEventListener(WebSocketEventEnum.CONNECTION_MESSAGE, this.onMessage);
if(this._socket.readyState === WebSocket.OPEN) this._socket.close(); if (this._socket.readyState === WebSocket.OPEN) this._socket.close();
this._socket = null; this._socket = null;
} }
@ -125,7 +125,7 @@ export class SocketConnection extends EventDispatcher implements IConnection
private onMessage(event: MessageEvent): void private onMessage(event: MessageEvent): void
{ {
if(!event) return; if (!event) return;
//this.dispatchConnectionEvent(SocketConnectionEvent.CONNECTION_MESSAGE, event); //this.dispatchConnectionEvent(SocketConnectionEvent.CONNECTION_MESSAGE, event);
@ -153,26 +153,26 @@ export class SocketConnection extends EventDispatcher implements IConnection
public send(...composers: IMessageComposer<unknown[]>[]): boolean public send(...composers: IMessageComposer<unknown[]>[]): boolean
{ {
if(this.disposed || !composers) return false; if (this.disposed || !composers) return false;
composers = [...composers]; composers = [...composers];
if(this._isAuthenticated && !this._isReady) if (this._isAuthenticated && !this._isReady)
{ {
if(!this._pendingClientMessages) this._pendingClientMessages = []; if (!this._pendingClientMessages) this._pendingClientMessages = [];
this._pendingClientMessages.push(...composers); this._pendingClientMessages.push(...composers);
return false; return false;
} }
for(const composer of composers) for (const composer of composers)
{ {
if(!composer) continue; if (!composer) continue;
const header = this._messages.getComposerId(composer); const header = this._messages.getComposerId(composer);
if(header === -1) if (header === -1)
{ {
//if (Nitro.instance.getConfiguration<boolean>('system.packet.log')) this.logger.log(`Unknown Composer: ${composer.constructor.name}`); //if (Nitro.instance.getConfiguration<boolean>('system.packet.log')) this.logger.log(`Unknown Composer: ${composer.constructor.name}`);
@ -182,7 +182,7 @@ export class SocketConnection extends EventDispatcher implements IConnection
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)
{ {
//if (Nitro.instance.getConfiguration<boolean>('system.packet.log')) this.logger.log('Encoding Failed', composer.constructor.name); //if (Nitro.instance.getConfiguration<boolean>('system.packet.log')) this.logger.log('Encoding Failed', composer.constructor.name);
@ -199,7 +199,7 @@ export class SocketConnection extends EventDispatcher implements IConnection
private write(buffer: ArrayBuffer): void private write(buffer: ArrayBuffer): void
{ {
if(this._socket.readyState !== WebSocket.OPEN) return; if (this._socket.readyState !== WebSocket.OPEN) return;
this._socket.send(buffer); this._socket.send(buffer);
} }
@ -221,11 +221,11 @@ export class SocketConnection extends EventDispatcher implements IConnection
{ {
const wrappers = this.splitReceivedMessages(); const wrappers = this.splitReceivedMessages();
if(!wrappers || !wrappers.length) return; if (!wrappers || !wrappers.length) return;
if(this._isAuthenticated && !this._isReady) if (this._isAuthenticated && !this._isReady)
{ {
if(!this._pendingServerMessages) this._pendingServerMessages = []; if (!this._pendingServerMessages) this._pendingServerMessages = [];
this._pendingServerMessages.push(...wrappers); this._pendingServerMessages.push(...wrappers);
@ -237,15 +237,15 @@ export class SocketConnection extends EventDispatcher implements IConnection
private processWrappers(...wrappers: IMessageDataWrapper[]): void private processWrappers(...wrappers: IMessageDataWrapper[]): void
{ {
if(!wrappers || !wrappers.length) return; if (!wrappers || !wrappers.length) return;
for(const wrapper of wrappers) for (const wrapper of wrappers)
{ {
if(!wrapper) continue; if (!wrapper) continue;
const messages = this.getMessagesForWrapper(wrapper); const messages = this.getMessagesForWrapper(wrapper);
if(!messages || !messages.length) continue; if (!messages || !messages.length) continue;
//if (Nitro.instance.getConfiguration<boolean>('system.packet.log')) this.logger.log('IncomingMessage', wrapper.header, messages[0].constructor.name, messages[0].parser); //if (Nitro.instance.getConfiguration<boolean>('system.packet.log')) this.logger.log('IncomingMessage', wrapper.header, messages[0].constructor.name, messages[0].parser);
@ -255,7 +255,7 @@ export class SocketConnection extends EventDispatcher implements IConnection
private splitReceivedMessages(): IMessageDataWrapper[] private splitReceivedMessages(): IMessageDataWrapper[]
{ {
if(!this._dataBuffer || !this._dataBuffer.byteLength) return null; if (!this._dataBuffer || !this._dataBuffer.byteLength) return null;
return this._codec.decode(this); return this._codec.decode(this);
} }
@ -272,11 +272,11 @@ export class SocketConnection extends EventDispatcher implements IConnection
private getMessagesForWrapper(wrapper: IMessageDataWrapper): IMessageEvent[] private getMessagesForWrapper(wrapper: IMessageDataWrapper): IMessageEvent[]
{ {
if(!wrapper) return null; if (!wrapper) return null;
const events = this._messages.getEvents(wrapper.header); const events = this._messages.getEvents(wrapper.header);
if(!events || !events.length) if (!events || !events.length)
{ {
//if (Nitro.instance.getConfiguration<boolean>('system.packet.log')) this.logger.log('IncomingMessage', wrapper.header, 'UNREGISTERED', wrapper); //if (Nitro.instance.getConfiguration<boolean>('system.packet.log')) this.logger.log('IncomingMessage', wrapper.header, 'UNREGISTERED', wrapper);
@ -288,9 +288,9 @@ export class SocketConnection extends EventDispatcher implements IConnection
//@ts-ignore //@ts-ignore
const parser = new events[0].parserClass(); const parser = new events[0].parserClass();
if(!parser || !parser.flush() || !parser.parse(wrapper)) return null; if (!parser || !parser.flush() || !parser.parse(wrapper)) return null;
for(const event of events) (event.parser = parser); for (const event of events) (event.parser = parser);
} }
catch (e) catch (e)
@ -307,33 +307,33 @@ export class SocketConnection extends EventDispatcher implements IConnection
{ {
messages = [...messages]; messages = [...messages];
for(const message of messages) for (const message of messages)
{ {
if(!message) continue; if (!message) continue;
message.connection = this; message.connection = this;
if(message.callBack) message.callBack(message); if (message.callBack) message.callBack(message);
} }
} }
public registerMessages(configuration: IMessageConfiguration): void public registerMessages(configuration: IMessageConfiguration): void
{ {
if(!configuration) return; if (!configuration) return;
this._messages.registerMessages(configuration); this._messages.registerMessages(configuration);
} }
public addMessageEvent(event: IMessageEvent): void public addMessageEvent(event: IMessageEvent): void
{ {
if(!event || !this._messages) return; if (!event || !this._messages) return;
this._messages.registerMessageEvent(event); this._messages.registerMessageEvent(event);
} }
public removeMessageEvent(event: IMessageEvent): void public removeMessageEvent(event: IMessageEvent): void
{ {
if(!event || !this._messages) return; if (!event || !this._messages) return;
this._messages.removeMessageEvent(event); this._messages.removeMessageEvent(event);
} }

View File

@ -3,4 +3,3 @@ export * from './codec/evawire';
export * from './CommunicationManager'; export * from './CommunicationManager';
export * from './messages'; export * from './messages';
export * from './SocketConnection'; export * from './SocketConnection';
export * from './SocketConnectionEvent';

View File

@ -1,5 +1,5 @@
import { IMessageComposer, IMessageConfiguration, IMessageEvent } from '../../../api'; import { IMessageComposer, IMessageConfiguration, IMessageEvent } from '../../../api';
import { MessageEvent } from './MessageEvent'; import { MessageEvent } from '../../../events';
export class MessageClassManager export class MessageClassManager
{ {
@ -23,36 +23,36 @@ export class MessageClassManager
public registerMessages(configuration: IMessageConfiguration): void public registerMessages(configuration: IMessageConfiguration): void
{ {
for(const [header, handler] of configuration.events) this.registerMessageEventClass(header, handler); for (const [header, handler] of configuration.events) this.registerMessageEventClass(header, handler);
for(const [header, handler] of configuration.composers) this.registerMessageComposerClass(header, handler); for (const [header, handler] of configuration.composers) this.registerMessageComposerClass(header, handler);
} }
private registerMessageEventClass(header: number, handler: Function): void private registerMessageEventClass(header: number, handler: Function): void
{ {
if(!header || !handler) return; if (!header || !handler) return;
this._messageIdByEvent.set(handler, header); this._messageIdByEvent.set(handler, header);
} }
private registerMessageComposerClass(header: number, handler: Function): void private registerMessageComposerClass(header: number, handler: Function): void
{ {
if(!header || !handler) return; if (!header || !handler) return;
this._messageIdByComposer.set(handler, header); this._messageIdByComposer.set(handler, header);
} }
public registerMessageEvent(event: IMessageEvent): void public registerMessageEvent(event: IMessageEvent): void
{ {
if(!event) return; if (!event) return;
const header = this.getEventId(event); const header = this.getEventId(event);
if(!header) return; if (!header) return;
let existing = this._messageInstancesById.get(header); let existing = this._messageInstancesById.get(header);
if(!existing || !existing.length) if (!existing || !existing.length)
{ {
existing = []; existing = [];
@ -64,25 +64,25 @@ export class MessageClassManager
public removeMessageEvent(event: IMessageEvent): void public removeMessageEvent(event: IMessageEvent): void
{ {
if(!event) return; if (!event) return;
const header = this.getEventId(event); const header = this.getEventId(event);
if(!header) return; if (!header) return;
const existing = this._messageInstancesById.get(header); const existing = this._messageInstancesById.get(header);
if(!existing) return; if (!existing) return;
for(const [index, message] of existing.entries()) for (const [index, message] of existing.entries())
{ {
if(!message) continue; if (!message) continue;
if(message !== event) continue; if (message !== event) continue;
existing.splice(index, 1); existing.splice(index, 1);
if(existing.length === 0) this._messageInstancesById.delete(header); if (existing.length === 0) this._messageInstancesById.delete(header);
message.dispose(); message.dispose();
@ -92,36 +92,36 @@ export class MessageClassManager
public getEvents(header: number): IMessageEvent[] public getEvents(header: number): IMessageEvent[]
{ {
if(!header) return; if (!header) return;
const existing = this._messageInstancesById.get(header); const existing = this._messageInstancesById.get(header);
if(!existing) return; if (!existing) return;
return existing; return existing;
} }
public getEventId(event: IMessageEvent): number public getEventId(event: IMessageEvent): number
{ {
if(!event) return -1; if (!event) return -1;
//@ts-ignore //@ts-ignore
const name = (event instanceof MessageEvent ? event.constructor : event) as Function; const name = (event instanceof MessageEvent ? event.constructor : event) as Function;
const existing = this._messageIdByEvent.get(name); const existing = this._messageIdByEvent.get(name);
if(!existing) return -1; if (!existing) return -1;
return existing; return existing;
} }
public getComposerId(composer: IMessageComposer<unknown[]>): number public getComposerId(composer: IMessageComposer<unknown[]>): number
{ {
if(!composer) return -1; if (!composer) return -1;
const existing = this._messageIdByComposer.get(composer.constructor); const existing = this._messageIdByComposer.get(composer.constructor);
if(!existing) return -1; if (!existing) return -1;
return existing; return existing;
} }

View File

@ -1,2 +1 @@
export * from './MessageClassManager'; export * from './MessageClassManager';
export * from './MessageEvent';

View File

@ -1,4 +1,4 @@
import { NitroEvent } from '../common'; import { NitroEvent } from '../../events';
export class ConfigurationEvent extends NitroEvent export class ConfigurationEvent extends NitroEvent
{ {

View File

@ -1,4 +1,4 @@
import { NitroEvent } from '../../core'; import { NitroEvent } from './core';
export class NitroSettingsEvent extends NitroEvent export class NitroSettingsEvent extends NitroEvent
{ {

View File

@ -1,4 +1,4 @@
import { NitroEvent } from '../../core'; import { NitroEvent } from './core';
export class NitroSoundEvent extends NitroEvent export class NitroSoundEvent extends NitroEvent
{ {

View File

@ -1,4 +1,4 @@
import { NitroEvent } from '../../core'; import { NitroEvent } from './core';
export class NitroToolbarEvent extends NitroEvent export class NitroToolbarEvent extends NitroEvent
{ {

View File

@ -0,0 +1,21 @@
import { IEffectAssetDownloadLibrary } from '../../api';
import { NitroEvent } from '../core';
export class AvatarRenderEffectLibraryEvent extends NitroEvent
{
public static DOWNLOAD_COMPLETE: string = 'ARELE_DOWNLOAD_COMPLETE';
private _library: IEffectAssetDownloadLibrary;
constructor(type: string, library: IEffectAssetDownloadLibrary)
{
super(type);
this._library = library;
}
public get library(): IEffectAssetDownloadLibrary
{
return this._library;
}
}

View File

@ -0,0 +1,21 @@
import { IAvatarAssetDownloadLibrary } from '../../api';
import { NitroEvent } from '../core';
export class AvatarRenderLibraryEvent extends NitroEvent
{
public static DOWNLOAD_COMPLETE: string = 'ARLE_DOWNLOAD_COMPLETE';
private _library: IAvatarAssetDownloadLibrary;
constructor(type: string, library: IAvatarAssetDownloadLibrary)
{
super(type);
this._library = library;
}
public get library(): IAvatarAssetDownloadLibrary
{
return this._library;
}
}

View File

@ -1,4 +1,4 @@
import { NitroEvent } from '../../core'; import { NitroEvent } from '../core';
export class RoomCameraWidgetManagerEvent extends NitroEvent export class RoomCameraWidgetManagerEvent extends NitroEvent
{ {

View File

@ -0,0 +1 @@
export * from './RoomCameraWidgetManagerEvent';

View File

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

View File

@ -1,2 +1 @@
export * from './NitroCommunicationDemo';
export * from './NitroCommunicationDemoEvent'; export * from './NitroCommunicationDemoEvent';

View File

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

View File

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

3
src/events/core/index.ts Normal file
View File

@ -0,0 +1,3 @@
export * from './MessageEvent';
export * from './NitroEvent';
export * from './SocketConnectionEvent';

11
src/events/index.ts Normal file
View File

@ -0,0 +1,11 @@
export * from './avatar';
export * from './camera';
export * from './communication';
export * from './core';
export * from './localization';
export * from './NitroSettingsEvent';
export * from './NitroSoundEvent';
export * from './NitroToolbarAnimateIconEvent';
export * from './NitroToolbarEvent';
export * from './room';
export * from './session';

View File

@ -1,4 +1,4 @@
import { NitroEvent } from '../../core'; import { NitroEvent } from '../core';
export class NitroLocalizationEvent extends NitroEvent export class NitroLocalizationEvent extends NitroEvent
{ {

View File

@ -0,0 +1 @@
export * from './NitroLocalizationEvent';

View File

@ -1,4 +1,4 @@
import { NitroEvent } from '../../../core'; import { NitroEvent } from '../core';
export class RoomEngineEvent extends NitroEvent export class RoomEngineEvent extends NitroEvent
{ {

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectBadgeAssetEvent extends RoomObjectEvent export class RoomObjectBadgeAssetEvent extends RoomObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectDataRequestEvent extends RoomObjectEvent export class RoomObjectDataRequestEvent extends RoomObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectDimmerStateUpdateEvent extends RoomObjectEvent export class RoomObjectDimmerStateUpdateEvent extends RoomObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectFloorHoleEvent extends RoomObjectEvent export class RoomObjectFloorHoleEvent extends RoomObjectEvent
{ {

View File

@ -1,4 +1,4 @@
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectFurnitureActionEvent extends RoomObjectEvent export class RoomObjectFurnitureActionEvent extends RoomObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectHSLColorEnableEvent extends RoomObjectEvent export class RoomObjectHSLColorEnableEvent extends RoomObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectMoveEvent extends RoomObjectEvent export class RoomObjectMoveEvent extends RoomObjectEvent
{ {

View File

@ -1,4 +1,4 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectFurnitureActionEvent } from './RoomObjectFurnitureActionEvent'; import { RoomObjectFurnitureActionEvent } from './RoomObjectFurnitureActionEvent';
export class RoomObjectPlaySoundIdEvent extends RoomObjectFurnitureActionEvent export class RoomObjectPlaySoundIdEvent extends RoomObjectFurnitureActionEvent

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectRoomAdEvent extends RoomObjectEvent export class RoomObjectRoomAdEvent extends RoomObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectSamplePlaybackEvent extends RoomObjectEvent export class RoomObjectSamplePlaybackEvent extends RoomObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectStateChangedEvent extends RoomObjectEvent export class RoomObjectStateChangedEvent extends RoomObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectMouseEvent } from '../../../room'; import { RoomObjectMouseEvent } from '../../room';
export class RoomObjectTileMouseEvent extends RoomObjectMouseEvent export class RoomObjectTileMouseEvent extends RoomObjectMouseEvent
{ {

View File

@ -1,11 +1,11 @@
import { IRoomObject, IVector3D, Vector3d } from '../../../api'; import { IRoomObject, IVector3D, Vector3d } from '../../api';
import { RoomObjectMouseEvent } from '../../../room'; import { RoomObjectMouseEvent } from '../../room';
export class RoomObjectWallMouseEvent extends RoomObjectMouseEvent export class RoomObjectWallMouseEvent extends RoomObjectMouseEvent
{ {
private _wallLocation: Vector3d; private _wallLocation: IVector3D;
private _wallWd: Vector3d; private _wallWd: IVector3D;
private _wallHt: Vector3d; private _wallHt: IVector3D;
private _x: number; private _x: number;
private _y: number; private _y: number;
private _direction: number; private _direction: number;

View File

@ -1,5 +1,5 @@
import { IRoomObject } from '../../../api'; import { IRoomObject } from '../../api';
import { RoomObjectEvent } from '../../../room'; import { RoomObjectEvent } from '../../room';
export class RoomObjectWidgetRequestEvent extends RoomObjectEvent export class RoomObjectWidgetRequestEvent extends RoomObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { IVector3D } from '../../../api'; import { IVector3D } from '../../api';
import { RoomToObjectEvent } from '../../../room'; import { RoomToObjectEvent } from '../../room';
export class RoomToObjectOwnAvatarMoveEvent extends RoomToObjectEvent export class RoomToObjectOwnAvatarMoveEvent extends RoomToObjectEvent
{ {

View File

@ -1,5 +1,5 @@
import { Resource, Texture } from '@pixi/core'; import { Resource, Texture } from '@pixi/core';
import { NitroEvent } from '../../../core'; import { NitroEvent } from '../core';
export class BadgeImageReadyEvent extends NitroEvent export class BadgeImageReadyEvent extends NitroEvent
{ {

View File

@ -1,4 +1,4 @@
import { NitroEvent } from '../../../core'; import { NitroEvent } from '../core';
export class MysteryBoxKeysUpdateEvent extends NitroEvent export class MysteryBoxKeysUpdateEvent extends NitroEvent
{ {

View File

@ -1,4 +1,4 @@
import { NitroEvent } from '../../../core'; import { NitroEvent } from '../core';
export class PerksUpdatedEvent extends NitroEvent export class PerksUpdatedEvent extends NitroEvent
{ {

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionChatEvent extends RoomSessionEvent export class RoomSessionChatEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionConfirmPetBreedingEvent extends RoomSessionEvent export class RoomSessionConfirmPetBreedingEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionConfirmPetBreedingResultEvent extends RoomSessionEvent export class RoomSessionConfirmPetBreedingResultEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionDanceEvent extends RoomSessionEvent export class RoomSessionDanceEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionDimmerPresetsEventPresetItem } from './RoomSessionDimmerPresetsEventPresetItem'; import { RoomSessionDimmerPresetsEventPresetItem } from './RoomSessionDimmerPresetsEventPresetItem';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
@ -23,7 +23,7 @@ export class RoomSessionDimmerPresetsEvent extends RoomSessionEvent
public getPreset(id: number): RoomSessionDimmerPresetsEventPresetItem public getPreset(id: number): RoomSessionDimmerPresetsEventPresetItem
{ {
if((id < 0) || (id >= this._presets.length)) return null; if ((id < 0) || (id >= this._presets.length)) return null;
return this._presets[id]; return this._presets[id];
} }

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionDoorbellEvent extends RoomSessionEvent export class RoomSessionDoorbellEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionErrorMessageEvent extends RoomSessionEvent export class RoomSessionErrorMessageEvent extends RoomSessionEvent

View File

@ -1,5 +1,5 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { NitroEvent } from '../../../core'; import { NitroEvent } from '../core';
export class RoomSessionEvent extends NitroEvent export class RoomSessionEvent extends NitroEvent
{ {

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionFavoriteGroupUpdateEvent extends RoomSessionEvent export class RoomSessionFavoriteGroupUpdateEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionFriendRequestEvent extends RoomSessionEvent export class RoomSessionFriendRequestEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionNestBreedingSuccessEvent extends RoomSessionEvent export class RoomSessionNestBreedingSuccessEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPetBreedingEvent extends RoomSessionEvent export class RoomSessionPetBreedingEvent extends RoomSessionEvent

View File

@ -1,15 +1,14 @@
import { IRoomSession } from '../../../api'; import { IPetBreedingResultData, IRoomSession } from '../../api';
import { PetBreedingResultData } from '../../communication';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPetBreedingResultEvent extends RoomSessionEvent export class RoomSessionPetBreedingResultEvent extends RoomSessionEvent
{ {
public static PET_BREEDING_RESULT: string = 'RSPFUE_PET_BREEDING_RESULT'; public static PET_BREEDING_RESULT: string = 'RSPFUE_PET_BREEDING_RESULT';
private _resultData: PetBreedingResultData; private _resultData: IPetBreedingResultData;
private _otherResultData: PetBreedingResultData; private _otherResultData: IPetBreedingResultData;
constructor(k: IRoomSession, _arg_2: PetBreedingResultData, _arg_3: PetBreedingResultData) constructor(k: IRoomSession, _arg_2: IPetBreedingResultData, _arg_3: IPetBreedingResultData)
{ {
super(RoomSessionPetBreedingResultEvent.PET_BREEDING_RESULT, k); super(RoomSessionPetBreedingResultEvent.PET_BREEDING_RESULT, k);
@ -17,12 +16,12 @@ export class RoomSessionPetBreedingResultEvent extends RoomSessionEvent
this._otherResultData = _arg_3; this._otherResultData = _arg_3;
} }
public get resultData(): PetBreedingResultData public get resultData(): IPetBreedingResultData
{ {
return this._resultData; return this._resultData;
} }
public get otherResultData(): PetBreedingResultData public get otherResultData(): IPetBreedingResultData
{ {
return this._otherResultData; return this._otherResultData;
} }

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPetCommandsUpdateEvent extends RoomSessionEvent export class RoomSessionPetCommandsUpdateEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPetFigureUpdateEvent extends RoomSessionEvent export class RoomSessionPetFigureUpdateEvent extends RoomSessionEvent

View File

@ -1,21 +1,20 @@
import { IRoomSession } from '../../../api'; import { IRoomPetData, IRoomSession } from '../../api';
import { RoomPetData } from '../RoomPetData';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPetInfoUpdateEvent extends RoomSessionEvent export class RoomSessionPetInfoUpdateEvent extends RoomSessionEvent
{ {
public static PET_INFO: string = 'RSPIUE_PET_INFO'; public static PET_INFO: string = 'RSPIUE_PET_INFO';
private _petInfo: RoomPetData; private _petInfo: IRoomPetData;
constructor(k: IRoomSession, _arg_2: RoomPetData) constructor(k: IRoomSession, _arg_2: IRoomPetData)
{ {
super(RoomSessionPetInfoUpdateEvent.PET_INFO, k); super(RoomSessionPetInfoUpdateEvent.PET_INFO, k);
this._petInfo = _arg_2; this._petInfo = _arg_2;
} }
public get petInfo(): RoomPetData public get petInfo(): IRoomPetData
{ {
return this._petInfo; return this._petInfo;
} }

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPetLevelUpdateEvent extends RoomSessionEvent export class RoomSessionPetLevelUpdateEvent extends RoomSessionEvent

View File

@ -1,5 +1,4 @@
import { IRoomSession } from '../../../api'; import { IPetFigureData, IRoomSession } from '../../api';
import { PetFigureDataParser } from '../../communication';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPetPackageEvent extends RoomSessionEvent export class RoomSessionPetPackageEvent extends RoomSessionEvent
@ -8,11 +7,11 @@ export class RoomSessionPetPackageEvent extends RoomSessionEvent
public static RSOPPE_OPEN_PET_PACKAGE_RESULT: string = 'RSOPPE_OPEN_PET_PACKAGE_RESULT'; public static RSOPPE_OPEN_PET_PACKAGE_RESULT: string = 'RSOPPE_OPEN_PET_PACKAGE_RESULT';
private _objectId: number = -1; private _objectId: number = -1;
private _figureData: PetFigureDataParser; private _figureData: IPetFigureData;
private _nameValidationStatus: number = 0; private _nameValidationStatus: number = 0;
private _nameValidationInfo: string = null; private _nameValidationInfo: string = null;
constructor(k: string, _arg_2: IRoomSession, _arg_3: number, _arg_4: PetFigureDataParser, _arg_5: number, _arg_6: string) constructor(k: string, _arg_2: IRoomSession, _arg_3: number, _arg_4: IPetFigureData, _arg_5: number, _arg_6: string)
{ {
super(k, _arg_2); super(k, _arg_2);
this._objectId = _arg_3; this._objectId = _arg_3;
@ -26,7 +25,7 @@ export class RoomSessionPetPackageEvent extends RoomSessionEvent
return this._objectId; return this._objectId;
} }
public get figureData(): PetFigureDataParser public get figureData(): IPetFigureData
{ {
return this._figureData; return this._figureData;
} }

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPetStatusUpdateEvent extends RoomSessionEvent export class RoomSessionPetStatusUpdateEvent extends RoomSessionEvent

View File

@ -1,8 +1,6 @@
import { IRoomSession } from '../../../api'; import { IPollQuestion, IRoomSession } from '../../api';
import { PollQuestion } from '../../communication';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPollEvent extends RoomSessionEvent export class RoomSessionPollEvent extends RoomSessionEvent
{ {
public static OFFER: string = 'RSPE_POLL_OFFER'; public static OFFER: string = 'RSPE_POLL_OFFER';
@ -15,7 +13,7 @@ export class RoomSessionPollEvent extends RoomSessionEvent
private _numQuestions: number = 0; private _numQuestions: number = 0;
private _startMessage: string = ''; private _startMessage: string = '';
private _endMessage: string = ''; private _endMessage: string = '';
private _questionArray: PollQuestion[] = null; private _questionArray: IPollQuestion[] = null;
private _npsPoll: boolean = false; private _npsPoll: boolean = false;
constructor(k: string, _arg_2: IRoomSession, _arg_3: number) constructor(k: string, _arg_2: IRoomSession, _arg_3: number)
@ -80,12 +78,12 @@ export class RoomSessionPollEvent extends RoomSessionEvent
this._endMessage = k; this._endMessage = k;
} }
public get questionArray(): PollQuestion[] public get questionArray(): IPollQuestion[]
{ {
return this._questionArray; return this._questionArray;
} }
public set questionArray(k: PollQuestion[]) public set questionArray(k: IPollQuestion[])
{ {
this._questionArray = k; this._questionArray = k;
} }

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPresentEvent extends RoomSessionEvent export class RoomSessionPresentEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionPropertyUpdateEvent extends RoomSessionEvent export class RoomSessionPropertyUpdateEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionQueueEvent extends RoomSessionEvent export class RoomSessionQueueEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionSpectatorModeEvent extends RoomSessionEvent export class RoomSessionSpectatorModeEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionUserBadgesEvent extends RoomSessionEvent export class RoomSessionUserBadgesEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession, IRoomUserData } from '../../../api'; import { IRoomSession, IRoomUserData } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionUserDataUpdateEvent extends RoomSessionEvent export class RoomSessionUserDataUpdateEvent extends RoomSessionEvent

View File

@ -1,4 +1,4 @@
import { IRoomSession } from '../../../api'; import { IRoomSession } from '../../api';
import { RoomSessionEvent } from './RoomSessionEvent'; import { RoomSessionEvent } from './RoomSessionEvent';
export class RoomSessionUserFigureUpdateEvent extends RoomSessionEvent export class RoomSessionUserFigureUpdateEvent extends RoomSessionEvent

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