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

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
{ {

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
{ {

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

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