mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-27 01:40:52 +01:00
Move events
This commit is contained in:
parent
76d1d11af7
commit
175e706b51
8
src/api/nitro/avatar/IAvatarAssetDownloadLibrary.ts
Normal file
8
src/api/nitro/avatar/IAvatarAssetDownloadLibrary.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { IEventDispatcher } from '../../common';
|
||||||
|
|
||||||
|
export interface IAvatarAssetDownloadLibrary extends IEventDispatcher
|
||||||
|
{
|
||||||
|
downloadAsset(): void;
|
||||||
|
readonly libraryName: string;
|
||||||
|
readonly isLoaded: boolean;
|
||||||
|
}
|
10
src/api/nitro/avatar/IEffectAssetDownloadLibrary.ts
Normal file
10
src/api/nitro/avatar/IEffectAssetDownloadLibrary.ts
Normal 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;
|
||||||
|
}
|
@ -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';
|
||||||
|
10
src/api/nitro/room/object/IPetFigureData.ts
Normal file
10
src/api/nitro/room/object/IPetFigureData.ts
Normal 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;
|
||||||
|
}
|
@ -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';
|
||||||
|
6
src/api/nitro/session/IPollChoice.ts
Normal file
6
src/api/nitro/session/IPollChoice.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export interface IPollChoice
|
||||||
|
{
|
||||||
|
value: string;
|
||||||
|
choiceText: string;
|
||||||
|
choiceType: number;
|
||||||
|
}
|
14
src/api/nitro/session/IPollQuestion.ts
Normal file
14
src/api/nitro/session/IPollQuestion.ts
Normal 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[];
|
||||||
|
}
|
12
src/api/nitro/session/IQuestion.ts
Normal file
12
src/api/nitro/session/IQuestion.ts
Normal 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;
|
||||||
|
}
|
30
src/api/nitro/session/IRoomPetData.ts
Normal file
30
src/api/nitro/session/IRoomPetData.ts
Normal 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;
|
||||||
|
}
|
@ -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';
|
||||||
|
10
src/api/room/IPetBreedingResultData.ts
Normal file
10
src/api/room/IPetBreedingResultData.ts
Normal 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;
|
||||||
|
}
|
@ -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';
|
||||||
|
@ -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
|
||||||
@ -59,7 +58,7 @@ export class EventDispatcher extends Disposable implements IEventDispatcher, IDi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public dispatchEvent(event: NitroEvent): boolean
|
public dispatchEvent(event: INitroEvent): boolean
|
||||||
{
|
{
|
||||||
if (!event) return false;
|
if (!event) return false;
|
||||||
|
|
||||||
@ -70,7 +69,7 @@ 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);
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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';
|
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -1,2 +1 @@
|
|||||||
export * from './MessageClassManager';
|
export * from './MessageClassManager';
|
||||||
export * from './MessageEvent';
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { NitroEvent } from '../common';
|
import { NitroEvent } from '../../events';
|
||||||
|
|
||||||
export class ConfigurationEvent extends NitroEvent
|
export class ConfigurationEvent extends NitroEvent
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { NitroEvent } from '../../core';
|
import { NitroEvent } from './core';
|
||||||
|
|
||||||
export class NitroSettingsEvent extends NitroEvent
|
export class NitroSettingsEvent extends NitroEvent
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
import { NitroEvent } from '../../core';
|
import { NitroEvent } from './core';
|
||||||
|
|
||||||
export class NitroSoundEvent extends NitroEvent
|
export class NitroSoundEvent extends NitroEvent
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
import { NitroEvent } from '../../core';
|
import { NitroEvent } from './core';
|
||||||
|
|
||||||
export class NitroToolbarEvent extends NitroEvent
|
export class NitroToolbarEvent extends NitroEvent
|
||||||
{
|
{
|
21
src/events/avatar/AvatarRenderEffectLibraryEvent.ts
Normal file
21
src/events/avatar/AvatarRenderEffectLibraryEvent.ts
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
21
src/events/avatar/AvatarRenderLibraryEvent.ts
Normal file
21
src/events/avatar/AvatarRenderLibraryEvent.ts
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
import { NitroEvent } from '../../core';
|
import { NitroEvent } from '../core';
|
||||||
|
|
||||||
export class RoomCameraWidgetManagerEvent extends NitroEvent
|
export class RoomCameraWidgetManagerEvent extends NitroEvent
|
||||||
{
|
{
|
1
src/events/camera/index.ts
Normal file
1
src/events/camera/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './RoomCameraWidgetManagerEvent';
|
@ -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
|
||||||
{
|
{
|
@ -1,2 +1 @@
|
|||||||
export * from './NitroCommunicationDemo';
|
|
||||||
export * from './NitroCommunicationDemoEvent';
|
export * from './NitroCommunicationDemoEvent';
|
@ -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
|
||||||
{
|
{
|
@ -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
3
src/events/core/index.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export * from './MessageEvent';
|
||||||
|
export * from './NitroEvent';
|
||||||
|
export * from './SocketConnectionEvent';
|
11
src/events/index.ts
Normal file
11
src/events/index.ts
Normal 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';
|
@ -1,4 +1,4 @@
|
|||||||
import { NitroEvent } from '../../core';
|
import { NitroEvent } from '../core';
|
||||||
|
|
||||||
export class NitroLocalizationEvent extends NitroEvent
|
export class NitroLocalizationEvent extends NitroEvent
|
||||||
{
|
{
|
1
src/events/localization/index.ts
Normal file
1
src/events/localization/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './NitroLocalizationEvent';
|
@ -1,4 +1,4 @@
|
|||||||
import { NitroEvent } from '../../../core';
|
import { NitroEvent } from '../core';
|
||||||
|
|
||||||
export class RoomEngineEvent extends NitroEvent
|
export class RoomEngineEvent extends NitroEvent
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
import { RoomObjectEvent } from '../../../room';
|
import { RoomObjectEvent } from '../../room';
|
||||||
|
|
||||||
export class RoomObjectFurnitureActionEvent extends RoomObjectEvent
|
export class RoomObjectFurnitureActionEvent extends RoomObjectEvent
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -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
|
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -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;
|
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -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
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
import { NitroEvent } from '../../../core';
|
import { NitroEvent } from '../core';
|
||||||
|
|
||||||
export class MysteryBoxKeysUpdateEvent extends NitroEvent
|
export class MysteryBoxKeysUpdateEvent extends NitroEvent
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
import { NitroEvent } from '../../../core';
|
import { NitroEvent } from '../core';
|
||||||
|
|
||||||
export class PerksUpdatedEvent extends NitroEvent
|
export class PerksUpdatedEvent extends NitroEvent
|
||||||
{
|
{
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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';
|
||||||
|
|
@ -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
|
@ -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
|
@ -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
|
||||||
{
|
{
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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;
|
||||||
}
|
}
|
@ -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
|
@ -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
|
@ -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;
|
||||||
}
|
}
|
@ -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
|
@ -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;
|
||||||
}
|
}
|
@ -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
|
@ -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;
|
||||||
}
|
}
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
Loading…
Reference in New Issue
Block a user