mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-27 01:40:52 +01:00
More changes
This commit is contained in:
parent
f5bb16c3b3
commit
cad30ee057
6
src/api/nitro/communication/INitroCommunicationDemo.ts
Normal file
6
src/api/nitro/communication/INitroCommunicationDemo.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { INitroManager } from '../../common';
|
||||||
|
|
||||||
|
export interface INitroCommunicationDemo extends INitroManager
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
11
src/api/nitro/communication/INitroCommunicationManager.ts
Normal file
11
src/api/nitro/communication/INitroCommunicationManager.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { INitroManager } from '../../common';
|
||||||
|
import { IConnection, IMessageEvent } from '../../communication';
|
||||||
|
import { INitroCommunicationDemo } from './INitroCommunicationDemo';
|
||||||
|
|
||||||
|
export interface INitroCommunicationManager extends INitroManager
|
||||||
|
{
|
||||||
|
registerMessageEvent(event: IMessageEvent): IMessageEvent;
|
||||||
|
removeMessageEvent(event: IMessageEvent): void;
|
||||||
|
demo: INitroCommunicationDemo;
|
||||||
|
connection: IConnection;
|
||||||
|
}
|
2
src/api/nitro/communication/index.ts
Normal file
2
src/api/nitro/communication/index.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export * from './INitroCommunicationDemo';
|
||||||
|
export * from './INitroCommunicationManager';
|
@ -1 +1,3 @@
|
|||||||
|
export * from './communication';
|
||||||
export * from './IRoomContentLoader';
|
export * from './IRoomContentLoader';
|
||||||
|
export * from './session';
|
||||||
|
7
src/api/nitro/session/IGroupInformationManager.ts
Normal file
7
src/api/nitro/session/IGroupInformationManager.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import { IDisposable } from '../../common';
|
||||||
|
|
||||||
|
export interface IGroupInformationManager extends IDisposable
|
||||||
|
{
|
||||||
|
init(): void;
|
||||||
|
getGroupBadge(groupId: number): string;
|
||||||
|
}
|
9
src/api/nitro/session/IIgnoredUsersManager.ts
Normal file
9
src/api/nitro/session/IIgnoredUsersManager.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface IIgnoredUsersManager
|
||||||
|
{
|
||||||
|
init(): void;
|
||||||
|
requestIgnoredUsers(): void;
|
||||||
|
ignoreUserId(id: number): void;
|
||||||
|
ignoreUser(name: string): void;
|
||||||
|
unignoreUser(name: string): void;
|
||||||
|
isIgnored(name: string): boolean;
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
import { IEventDispatcher } from '../../api';
|
import { IEventDispatcher } from '../../common';
|
||||||
import { IRoomSession } from './IRoomSession';
|
import { IRoomSession } from './IRoomSession';
|
||||||
|
|
||||||
export interface IRoomHandlerListener
|
export interface IRoomHandlerListener
|
6
src/api/nitro/session/IRoomModerationSettings.ts
Normal file
6
src/api/nitro/session/IRoomModerationSettings.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export interface IRoomModerationSettings
|
||||||
|
{
|
||||||
|
readonly allowMute: number;
|
||||||
|
readonly allowKick: number;
|
||||||
|
readonly allowBan: number;
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
import { IConnection, IDisposable } from '../../api';
|
import { IDisposable } from '../../common';
|
||||||
import { RoomModerationSettings } from '../communication/messages/incoming/roomsettings/RoomModerationSettings';
|
import { IConnection } from '../../communication';
|
||||||
import { UserDataManager } from './UserDataManager';
|
import { IRoomModerationSettings } from './IRoomModerationSettings';
|
||||||
|
import { IUserDataManager } from './IUserDataManager';
|
||||||
|
|
||||||
export interface IRoomSession extends IDisposable
|
export interface IRoomSession extends IDisposable
|
||||||
{
|
{
|
||||||
@ -45,7 +46,7 @@ export interface IRoomSession extends IDisposable
|
|||||||
harvestPet(id: number): void;
|
harvestPet(id: number): void;
|
||||||
compostPlant(id: number): void;
|
compostPlant(id: number): void;
|
||||||
connection: IConnection;
|
connection: IConnection;
|
||||||
userDataManager: UserDataManager;
|
userDataManager: IUserDataManager;
|
||||||
roomId: number;
|
roomId: number;
|
||||||
state: string;
|
state: string;
|
||||||
tradeMode: number;
|
tradeMode: number;
|
||||||
@ -58,5 +59,5 @@ export interface IRoomSession extends IDisposable
|
|||||||
isRoomOwner: boolean;
|
isRoomOwner: boolean;
|
||||||
isDecorating: boolean;
|
isDecorating: boolean;
|
||||||
isSpectator: boolean;
|
isSpectator: boolean;
|
||||||
moderationSettings: RoomModerationSettings;
|
moderationSettings: IRoomModerationSettings;
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
import { INitroManager } from '../../api';
|
import { INitroManager } from '../../common';
|
||||||
import { INitroCommunicationManager } from '../communication/INitroCommunicationManager';
|
import { INitroCommunicationManager } from '../communication';
|
||||||
import { IRoomSession } from './IRoomSession';
|
import { IRoomSession } from './IRoomSession';
|
||||||
|
|
||||||
export interface IRoomSessionManager extends INitroManager
|
export interface IRoomSessionManager extends INitroManager
|
26
src/api/nitro/session/IRoomUserData.ts
Normal file
26
src/api/nitro/session/IRoomUserData.ts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
export interface IRoomUserData
|
||||||
|
{
|
||||||
|
readonly roomIndex: number;
|
||||||
|
activityPoints: number;
|
||||||
|
name: string;
|
||||||
|
type: number;
|
||||||
|
sex: string;
|
||||||
|
figure: string;
|
||||||
|
custom: string;
|
||||||
|
webID: number;
|
||||||
|
groupId: number;
|
||||||
|
groupName: string;
|
||||||
|
groupStatus: number;
|
||||||
|
ownerId: number;
|
||||||
|
ownerName: string;
|
||||||
|
rarityLevel: number;
|
||||||
|
hasSaddle: boolean;
|
||||||
|
isRiding: boolean;
|
||||||
|
canBreed: boolean;
|
||||||
|
canHarvest: boolean;
|
||||||
|
canRevive: boolean;
|
||||||
|
hasBreedingPermission: boolean;
|
||||||
|
petLevel: number;
|
||||||
|
botSkills: number[];
|
||||||
|
isModerator: boolean;
|
||||||
|
}
|
@ -1,11 +1,11 @@
|
|||||||
import { Resource, Texture } from '@pixi/core';
|
import { Resource, Texture } from '@pixi/core';
|
||||||
import { INitroManager } from '../../api';
|
import { INitroManager } from '../../common';
|
||||||
import { INitroCommunicationManager } from '../communication/INitroCommunicationManager';
|
import { INitroCommunicationManager } from '../communication';
|
||||||
import { IFurnitureData } from './furniture/IFurnitureData';
|
import { IFurnitureData } from './IFurnitureData';
|
||||||
import { IFurnitureDataListener } from './furniture/IFurnitureDataListener';
|
import { IFurnitureDataListener } from './IFurnitureDataListener';
|
||||||
import { GroupInformationManager } from './GroupInformationManager';
|
import { IGroupInformationManager } from './IGroupInformationManager';
|
||||||
import { IgnoredUsersManager } from './IgnoredUsersManager';
|
import { IIgnoredUsersManager } from './IIgnoredUsersManager';
|
||||||
import { IProductData } from './product/IProductData';
|
import { IProductData } from './IProductData';
|
||||||
|
|
||||||
export interface ISessionDataManager extends INitroManager
|
export interface ISessionDataManager extends INitroManager
|
||||||
{
|
{
|
||||||
@ -36,8 +36,8 @@ export interface ISessionDataManager extends INitroManager
|
|||||||
figure: string;
|
figure: string;
|
||||||
gender: string;
|
gender: string;
|
||||||
realName: string;
|
realName: string;
|
||||||
ignoredUsersManager: IgnoredUsersManager;
|
ignoredUsersManager: IIgnoredUsersManager;
|
||||||
groupInformationManager: GroupInformationManager;
|
groupInformationManager: IGroupInformationManager;
|
||||||
respectsReceived: number;
|
respectsReceived: number;
|
||||||
respectsLeft: number;
|
respectsLeft: number;
|
||||||
respectsPetLeft: number;
|
respectsPetLeft: number;
|
26
src/api/nitro/session/IUserDataManager.ts
Normal file
26
src/api/nitro/session/IUserDataManager.ts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import { IConnection } from '../../communication';
|
||||||
|
import { IRoomUserData } from './IRoomUserData';
|
||||||
|
|
||||||
|
export interface IUserDataManager
|
||||||
|
{
|
||||||
|
setConnection(connection: IConnection): void;
|
||||||
|
getUserData(webID: number): IRoomUserData;
|
||||||
|
getPetData(webID: number): IRoomUserData;
|
||||||
|
getBotData(webID: number): IRoomUserData;
|
||||||
|
getRentableBotData(webID: number): IRoomUserData;
|
||||||
|
getDataByType(webID: number, type: number): IRoomUserData;
|
||||||
|
getUserDataByIndex(roomIndex: number): IRoomUserData;
|
||||||
|
getUserDataByName(name: string): IRoomUserData;
|
||||||
|
updateUserData(data: IRoomUserData): void;
|
||||||
|
removeUserData(roomIndex: number): void;
|
||||||
|
getUserBadges(userId: number): string[];
|
||||||
|
setUserBadges(userId: number, badges: string[]): void;
|
||||||
|
updateFigure(roomIndex: number, figure: string, sex: string, hasSaddle: boolean, isRiding: boolean): void;
|
||||||
|
updateName(roomIndex: number, name: string): void;
|
||||||
|
updateMotto(roomIndex: number, custom: string): void;
|
||||||
|
updateAchievementScore(roomIndex: number, score: number): void;
|
||||||
|
updatePetLevel(roomIndex: number, level: number): void;
|
||||||
|
updatePetBreedingStatus(roomIndex: number, canBreed: boolean, canHarvest: boolean, canRevive: boolean, hasBreedingPermission: boolean): void;
|
||||||
|
requestPetInfo(id: number): void;
|
||||||
|
connection: IConnection;
|
||||||
|
}
|
14
src/api/nitro/session/index.ts
Normal file
14
src/api/nitro/session/index.ts
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
export * from './FurnitureType';
|
||||||
|
export * from './IFurnitureData';
|
||||||
|
export * from './IFurnitureDataListener';
|
||||||
|
export * from './IGroupInformationManager';
|
||||||
|
export * from './IIgnoredUsersManager';
|
||||||
|
export * from './IProductData';
|
||||||
|
export * from './IProductDataListener';
|
||||||
|
export * from './IRoomHandlerListener';
|
||||||
|
export * from './IRoomModerationSettings';
|
||||||
|
export * from './IRoomSession';
|
||||||
|
export * from './IRoomSessionManager';
|
||||||
|
export * from './IRoomUserData';
|
||||||
|
export * from './ISessionDataManager';
|
||||||
|
export * from './IUserDataManager';
|
@ -1,13 +1,10 @@
|
|||||||
import { Application } from '@pixi/app';
|
import { Application } from '@pixi/app';
|
||||||
import { Ticker } from '@pixi/ticker';
|
import { Ticker } from '@pixi/ticker';
|
||||||
import { IEventDispatcher, ILinkEventTracker, INitroCore, IRoomManager, IWorkerEventTracker } from '../api';
|
import { IEventDispatcher, ILinkEventTracker, INitroCommunicationManager, INitroCore, IRoomManager, IRoomSessionManager, ISessionDataManager, IWorkerEventTracker } from '../api';
|
||||||
import { IAvatarRenderManager } from './avatar/IAvatarRenderManager';
|
import { IAvatarRenderManager } from './avatar/IAvatarRenderManager';
|
||||||
import { IRoomCameraWidgetManager } from './camera/IRoomCameraWidgetManager';
|
import { IRoomCameraWidgetManager } from './camera/IRoomCameraWidgetManager';
|
||||||
import { INitroCommunicationManager } from './communication/INitroCommunicationManager';
|
|
||||||
import { INitroLocalizationManager } from './localization/INitroLocalizationManager';
|
import { INitroLocalizationManager } from './localization/INitroLocalizationManager';
|
||||||
import { IRoomEngine } from './room/IRoomEngine';
|
import { IRoomEngine } from './room/IRoomEngine';
|
||||||
import { IRoomSessionManager } from './session/IRoomSessionManager';
|
|
||||||
import { ISessionDataManager } from './session/ISessionDataManager';
|
|
||||||
import { ISoundManager } from './sound/ISoundManager';
|
import { ISoundManager } from './sound/ISoundManager';
|
||||||
|
|
||||||
export interface INitro
|
export interface INitro
|
||||||
|
@ -2,7 +2,8 @@ import { Application, IApplicationOptions } from '@pixi/app';
|
|||||||
import { SCALE_MODES } from '@pixi/constants';
|
import { SCALE_MODES } from '@pixi/constants';
|
||||||
import { settings } from '@pixi/settings';
|
import { settings } from '@pixi/settings';
|
||||||
import { Ticker } from '@pixi/ticker';
|
import { Ticker } from '@pixi/ticker';
|
||||||
import { IEventDispatcher, ILinkEventTracker, INitroCore, IRoomManager, IWorkerEventTracker } from '../api';
|
import { IEventDispatcher, ILinkEventTracker, INitroCore, IRoomManager, IRoomSessionManager, ISessionDataManager, IWorkerEventTracker } from '../api';
|
||||||
|
import { INitroCommunicationManager } from '../api/nitro/communication/INitroCommunicationManager';
|
||||||
import { ConfigurationEvent, EventDispatcher, NitroCore, NitroEvent } from '../core';
|
import { ConfigurationEvent, EventDispatcher, NitroCore, NitroEvent } from '../core';
|
||||||
import { PixiApplicationProxy } from '../pixi-proxy';
|
import { PixiApplicationProxy } from '../pixi-proxy';
|
||||||
import { RoomManager } from '../room/RoomManager';
|
import { RoomManager } from '../room/RoomManager';
|
||||||
@ -10,7 +11,6 @@ import { AvatarRenderManager } from './avatar/AvatarRenderManager';
|
|||||||
import { IAvatarRenderManager } from './avatar/IAvatarRenderManager';
|
import { IAvatarRenderManager } from './avatar/IAvatarRenderManager';
|
||||||
import { IRoomCameraWidgetManager } from './camera/IRoomCameraWidgetManager';
|
import { IRoomCameraWidgetManager } from './camera/IRoomCameraWidgetManager';
|
||||||
import { RoomCameraWidgetManager } from './camera/RoomCameraWidgetManager';
|
import { RoomCameraWidgetManager } from './camera/RoomCameraWidgetManager';
|
||||||
import { INitroCommunicationManager } from './communication/INitroCommunicationManager';
|
|
||||||
import { NitroCommunicationManager } from './communication/NitroCommunicationManager';
|
import { NitroCommunicationManager } from './communication/NitroCommunicationManager';
|
||||||
import { LegacyExternalInterface } from './externalInterface/LegacyExternalInterface';
|
import { LegacyExternalInterface } from './externalInterface/LegacyExternalInterface';
|
||||||
import { GameMessageHandler } from './game/GameMessageHandler';
|
import { GameMessageHandler } from './game/GameMessageHandler';
|
||||||
@ -21,8 +21,6 @@ import './Plugins';
|
|||||||
import { RoomEngineEvent } from './room/events/RoomEngineEvent';
|
import { RoomEngineEvent } from './room/events/RoomEngineEvent';
|
||||||
import { IRoomEngine } from './room/IRoomEngine';
|
import { IRoomEngine } from './room/IRoomEngine';
|
||||||
import { RoomEngine } from './room/RoomEngine';
|
import { RoomEngine } from './room/RoomEngine';
|
||||||
import { IRoomSessionManager } from './session/IRoomSessionManager';
|
|
||||||
import { ISessionDataManager } from './session/ISessionDataManager';
|
|
||||||
import { RoomSessionManager } from './session/RoomSessionManager';
|
import { RoomSessionManager } from './session/RoomSessionManager';
|
||||||
import { SessionDataManager } from './session/SessionDataManager';
|
import { SessionDataManager } from './session/SessionDataManager';
|
||||||
import { ISoundManager } from './sound/ISoundManager';
|
import { ISoundManager } from './sound/ISoundManager';
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
import { IConnection, IMessageEvent, INitroManager } from '../../api';
|
|
||||||
import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo';
|
|
||||||
|
|
||||||
export interface INitroCommunicationManager extends INitroManager
|
|
||||||
{
|
|
||||||
registerMessageEvent(event: IMessageEvent): IMessageEvent;
|
|
||||||
removeMessageEvent(event: IMessageEvent): void;
|
|
||||||
demo: NitroCommunicationDemo;
|
|
||||||
connection: IConnection;
|
|
||||||
}
|
|
@ -1,9 +1,8 @@
|
|||||||
import { ICommunicationManager, IConnection, IConnectionStateListener, IMessageConfiguration, IMessageEvent } from '../../api';
|
import { ICommunicationManager, IConnection, IConnectionStateListener, IMessageConfiguration, IMessageEvent, INitroCommunicationDemo, INitroCommunicationManager } from '../../api';
|
||||||
import { NitroEvent, NitroManager, SocketConnectionEvent } from '../../core';
|
import { NitroEvent, NitroManager, SocketConnectionEvent } from '../../core';
|
||||||
import { Nitro } from '../Nitro';
|
import { Nitro } from '../Nitro';
|
||||||
import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo';
|
import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo';
|
||||||
import { NitroCommunicationDemoEvent } from './demo/NitroCommunicationDemoEvent';
|
import { NitroCommunicationDemoEvent } from './demo/NitroCommunicationDemoEvent';
|
||||||
import { INitroCommunicationManager } from './INitroCommunicationManager';
|
|
||||||
import { NitroMessages } from './NitroMessages';
|
import { NitroMessages } from './NitroMessages';
|
||||||
|
|
||||||
export class NitroCommunicationManager extends NitroManager implements INitroCommunicationManager, IConnectionStateListener
|
export class NitroCommunicationManager extends NitroManager implements INitroCommunicationManager, IConnectionStateListener
|
||||||
@ -12,7 +11,7 @@ export class NitroCommunicationManager extends NitroManager implements INitroCom
|
|||||||
private _connection: IConnection;
|
private _connection: IConnection;
|
||||||
private _messages: IMessageConfiguration;
|
private _messages: IMessageConfiguration;
|
||||||
|
|
||||||
private _demo: NitroCommunicationDemo;
|
private _demo: INitroCommunicationDemo;
|
||||||
|
|
||||||
constructor(communication: ICommunicationManager)
|
constructor(communication: ICommunicationManager)
|
||||||
{
|
{
|
||||||
@ -106,7 +105,7 @@ export class NitroCommunicationManager extends NitroManager implements INitroCom
|
|||||||
this._connection.removeMessageEvent(event);
|
this._connection.removeMessageEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
public get demo(): NitroCommunicationDemo
|
public get demo(): INitroCommunicationDemo
|
||||||
{
|
{
|
||||||
return this._demo;
|
return this._demo;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, INitroCommunicationDemo } from '../../../api';
|
||||||
|
import { INitroCommunicationManager } from '../../../api/nitro/communication/INitroCommunicationManager';
|
||||||
import { NitroManager, SocketConnectionEvent } from '../../../core';
|
import { NitroManager, SocketConnectionEvent } from '../../../core';
|
||||||
import { Nitro } from '../../Nitro';
|
import { Nitro } from '../../Nitro';
|
||||||
import { INitroCommunicationManager } from '../INitroCommunicationManager';
|
|
||||||
import { ClientPingEvent } from '../messages/incoming/client/ClientPingEvent';
|
import { ClientPingEvent } from '../messages/incoming/client/ClientPingEvent';
|
||||||
import { AuthenticatedEvent } from '../messages/incoming/security/AuthenticatedEvent';
|
import { AuthenticatedEvent } from '../messages/incoming/security/AuthenticatedEvent';
|
||||||
import { ClientHelloMessageComposer } from '../messages/outgoing/handshake/ClientHelloMessageComposer';
|
import { ClientHelloMessageComposer } from '../messages/outgoing/handshake/ClientHelloMessageComposer';
|
||||||
@ -10,7 +10,7 @@ import { PongMessageComposer } from '../messages/outgoing/handshake/PongMessageC
|
|||||||
import { SSOTicketMessageComposer } from '../messages/outgoing/handshake/SSOTicketMessageComposer';
|
import { SSOTicketMessageComposer } from '../messages/outgoing/handshake/SSOTicketMessageComposer';
|
||||||
import { NitroCommunicationDemoEvent } from './NitroCommunicationDemoEvent';
|
import { NitroCommunicationDemoEvent } from './NitroCommunicationDemoEvent';
|
||||||
|
|
||||||
export class NitroCommunicationDemo extends NitroManager
|
export class NitroCommunicationDemo extends NitroManager implements INitroCommunicationDemo
|
||||||
{
|
{
|
||||||
private _communication: INitroCommunicationManager;
|
private _communication: INitroCommunicationManager;
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
export * from './demo';
|
export * from './demo';
|
||||||
export * from './INitroCommunicationManager';
|
|
||||||
export * from './messages';
|
export * from './messages';
|
||||||
export * from './NitroCommunicationManager';
|
export * from './NitroCommunicationManager';
|
||||||
export * from './NitroMessages';
|
export * from './NitroMessages';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { IMessageDataWrapper } from '../../../../../api';
|
import { IMessageDataWrapper, IRoomModerationSettings } from '../../../../../api';
|
||||||
|
|
||||||
export class RoomModerationSettings
|
export class RoomModerationSettings implements IRoomModerationSettings
|
||||||
{
|
{
|
||||||
public static MODERATION_LEVEL_NONE: number = 0;
|
public static MODERATION_LEVEL_NONE: number = 0;
|
||||||
public static MODERATION_LEVEL_USER_WITH_RIGHTS: number = 1;
|
public static MODERATION_LEVEL_USER_WITH_RIGHTS: number = 1;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { NitroManager } from '../../core';
|
import { INitroCommunicationManager } from '../../api/nitro/communication/INitroCommunicationManager';
|
||||||
import { INitroCommunicationManager } from '../communication/INitroCommunicationManager';
|
import { NitroManager } from '../../core';
|
||||||
import { BadgePointLimitsEvent } from '../communication/messages/incoming/inventory/badges/BadgePointLimitsEvent';
|
import { BadgePointLimitsEvent } from '../communication/messages/incoming/inventory/badges/BadgePointLimitsEvent';
|
||||||
import { Nitro } from '../Nitro';
|
import { Nitro } from '../Nitro';
|
||||||
import { BadgeBaseAndLevel } from './BadgeBaseAndLevel';
|
import { BadgeBaseAndLevel } from './BadgeBaseAndLevel';
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import { IRoomInstance, IRoomObjectController, IVector3D } from '../../api';
|
import { IRoomInstance, IRoomObjectController, IRoomSessionManager, ISessionDataManager, IVector3D } from '../../api';
|
||||||
import { IRoomSessionManager } from '../session/IRoomSessionManager';
|
|
||||||
import { ISessionDataManager } from '../session/ISessionDataManager';
|
|
||||||
import { IObjectData } from './object/data/IObjectData';
|
import { IObjectData } from './object/data/IObjectData';
|
||||||
import { RoomMapData } from './object/RoomMapData';
|
import { RoomMapData } from './object/RoomMapData';
|
||||||
import { FurnitureStackingHeightMap } from './utils/FurnitureStackingHeightMap';
|
import { FurnitureStackingHeightMap } from './utils/FurnitureStackingHeightMap';
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
import { RenderTexture } from '@pixi/core';
|
import { RenderTexture } from '@pixi/core';
|
||||||
import { DisplayObject } from '@pixi/display';
|
import { DisplayObject } from '@pixi/display';
|
||||||
import { Point, Rectangle } from '@pixi/math';
|
import { Point, Rectangle } from '@pixi/math';
|
||||||
import { INitroManager, IRoomGeometry, IRoomManager, IRoomObject, IRoomObjectController, IRoomObjectLogicFactory, IRoomObjectVisualizationFactory, IRoomRendererFactory, IRoomRenderingCanvas } from '../../api';
|
import { INitroManager, IRoomGeometry, IRoomManager, IRoomObject, IRoomObjectController, IRoomObjectLogicFactory, IRoomObjectVisualizationFactory, IRoomRendererFactory, IRoomRenderingCanvas, IRoomSessionManager, ISessionDataManager, IVector3D } from '../../api';
|
||||||
import { IVector3D } from '../../api/room/IVector3D';
|
|
||||||
import { PetCustomPart } from '../avatar/pets/PetCustomPart';
|
import { PetCustomPart } from '../avatar/pets/PetCustomPart';
|
||||||
import { IRoomSessionManager } from '../session/IRoomSessionManager';
|
|
||||||
import { ISessionDataManager } from '../session/ISessionDataManager';
|
|
||||||
import { IGetImageListener } from './IGetImageListener';
|
import { IGetImageListener } from './IGetImageListener';
|
||||||
import { ImageResult } from './ImageResult';
|
import { ImageResult } from './ImageResult';
|
||||||
import { IObjectData } from './object/data/IObjectData';
|
import { IObjectData } from './object/data/IObjectData';
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
import { IConnection, IEventDispatcher, IRoomInstance, IRoomObjectController, IRoomRenderingCanvas, IVector3D } from '../../api';
|
import { IConnection, IEventDispatcher, IRoomInstance, IRoomObjectController, IRoomRenderingCanvas, IRoomSessionManager, ISessionDataManager, IVector3D } from '../../api';
|
||||||
import { IRoomSessionManager } from '../session/IRoomSessionManager';
|
|
||||||
import { ISessionDataManager } from '../session/ISessionDataManager';
|
|
||||||
import { IObjectData } from './object/data/IObjectData';
|
import { IObjectData } from './object/data/IObjectData';
|
||||||
import { FurnitureStackingHeightMap } from './utils/FurnitureStackingHeightMap';
|
import { FurnitureStackingHeightMap } from './utils/FurnitureStackingHeightMap';
|
||||||
import { LegacyWallGeometry } from './utils/LegacyWallGeometry';
|
import { LegacyWallGeometry } from './utils/LegacyWallGeometry';
|
||||||
|
@ -1,15 +1,10 @@
|
|||||||
import { BaseTexture, Resource, Texture } from '@pixi/core';
|
import { BaseTexture, Resource, Texture } from '@pixi/core';
|
||||||
import { Loader, LoaderResource } from '@pixi/loaders';
|
import { Loader, LoaderResource } from '@pixi/loaders';
|
||||||
import { Spritesheet } from '@pixi/spritesheet';
|
import { Spritesheet } from '@pixi/spritesheet';
|
||||||
import { IAssetData, IEventDispatcher, IGraphicAssetCollection, INitroLogger, IRoomContentLoader } from '../../api';
|
import { FurnitureType, IAssetData, IEventDispatcher, IFurnitureData, IFurnitureDataListener, IGraphicAssetCollection, INitroLogger, IRoomContentLoader, IRoomObject, ISessionDataManager } from '../../api';
|
||||||
import { IRoomObject } from '../../api/room/object/IRoomObject';
|
|
||||||
import { GraphicAssetCollection, GraphicAssetGifCollection, NitroBundle, NitroEvent, NitroLogger } from '../../core';
|
import { GraphicAssetCollection, GraphicAssetGifCollection, NitroBundle, NitroEvent, NitroLogger } from '../../core';
|
||||||
import { RoomContentLoadedEvent } from '../../room/events/RoomContentLoadedEvent';
|
import { RoomContentLoadedEvent } from '../../room/events/RoomContentLoadedEvent';
|
||||||
import { Nitro } from '../Nitro';
|
import { Nitro } from '../Nitro';
|
||||||
import { FurnitureType } from '../session/furniture/FurnitureType';
|
|
||||||
import { IFurnitureData } from '../session/furniture/IFurnitureData';
|
|
||||||
import { IFurnitureDataListener } from '../session/furniture/IFurnitureDataListener';
|
|
||||||
import { ISessionDataManager } from '../session/ISessionDataManager';
|
|
||||||
import { IRoomContentListener } from './IRoomContentListener';
|
import { IRoomContentListener } from './IRoomContentListener';
|
||||||
import { RoomObjectCategory } from './object/RoomObjectCategory';
|
import { RoomObjectCategory } from './object/RoomObjectCategory';
|
||||||
import { RoomObjectUserType } from './object/RoomObjectUserType';
|
import { RoomObjectUserType } from './object/RoomObjectUserType';
|
||||||
|
@ -1,22 +1,19 @@
|
|||||||
import { RenderTexture, Resource, Texture } from '@pixi/core';
|
import { RenderTexture, Resource, Texture } from '@pixi/core';
|
||||||
import { Container, DisplayObject } from '@pixi/display';
|
import { Container, DisplayObject } from '@pixi/display';
|
||||||
import { Matrix, Point, Rectangle } from '@pixi/math';
|
import { Matrix, Point, Rectangle } from '@pixi/math';
|
||||||
import { IConnection, IDisposable, IMessageComposer, IRoomGeometry, IRoomInstance, IRoomManager, IRoomManagerListener, IRoomObject, IRoomObjectController, IRoomObjectLogicFactory, IRoomObjectVisualizationFactory, IRoomRenderer, IRoomRendererFactory, IRoomRenderingCanvas, IUpdateReceiver, IVector3D } from '../../api';
|
import { IConnection, IDisposable, IMessageComposer, INitroCommunicationManager, IRoomGeometry, IRoomInstance, IRoomManager, IRoomManagerListener, IRoomObject, IRoomObjectController, IRoomObjectLogicFactory, IRoomObjectVisualizationFactory, IRoomRenderer, IRoomRendererFactory, IRoomRenderingCanvas, IRoomSessionManager, ISessionDataManager, IUpdateReceiver, IVector3D } from '../../api';
|
||||||
import { NitroEvent, NitroManager } from '../../core';
|
import { NitroEvent, NitroManager } from '../../core';
|
||||||
import { NitroSprite, TextureUtils } from '../../pixi-proxy';
|
import { NitroSprite, TextureUtils } from '../../pixi-proxy';
|
||||||
import { NumberBank, RoomEnterEffect, RoomGeometry, RoomInstance, RoomObjectEvent, RoomObjectMouseEvent, RoomObjectUpdateMessage, RoomRendererFactory, Vector3d } from '../../room';
|
import { NumberBank, RoomEnterEffect, RoomGeometry, RoomInstance, RoomObjectEvent, RoomObjectMouseEvent, RoomObjectUpdateMessage, RoomRendererFactory, Vector3d } from '../../room';
|
||||||
import { PetCustomPart } from '../avatar/pets/PetCustomPart';
|
import { PetCustomPart } from '../avatar/pets/PetCustomPart';
|
||||||
import { PetFigureData } from '../avatar/pets/PetFigureData';
|
import { PetFigureData } from '../avatar/pets/PetFigureData';
|
||||||
import { RenderRoomMessageComposer, RenderRoomThumbnailMessageComposer } from '../communication';
|
import { RenderRoomMessageComposer, RenderRoomThumbnailMessageComposer } from '../communication';
|
||||||
import { INitroCommunicationManager } from '../communication/INitroCommunicationManager';
|
|
||||||
import { ToolbarIconEnum } from '../enums/ToolbarIconEnum';
|
import { ToolbarIconEnum } from '../enums/ToolbarIconEnum';
|
||||||
import { NitroToolbarAnimateIconEvent } from '../events/NitroToolbarAnimateIconEvent';
|
import { NitroToolbarAnimateIconEvent } from '../events/NitroToolbarAnimateIconEvent';
|
||||||
import { Nitro } from '../Nitro';
|
import { Nitro } from '../Nitro';
|
||||||
import { RoomControllerLevel } from '../session/enum/RoomControllerLevel';
|
import { RoomControllerLevel } from '../session/enum/RoomControllerLevel';
|
||||||
import { BadgeImageReadyEvent } from '../session/events/BadgeImageReadyEvent';
|
import { BadgeImageReadyEvent } from '../session/events/BadgeImageReadyEvent';
|
||||||
import { RoomSessionEvent } from '../session/events/RoomSessionEvent';
|
import { RoomSessionEvent } from '../session/events/RoomSessionEvent';
|
||||||
import { IRoomSessionManager } from '../session/IRoomSessionManager';
|
|
||||||
import { ISessionDataManager } from '../session/ISessionDataManager';
|
|
||||||
import { MouseEventType } from '../ui/MouseEventType';
|
import { MouseEventType } from '../ui/MouseEventType';
|
||||||
import { FurniId } from '../utils/FurniId';
|
import { FurniId } from '../utils/FurniId';
|
||||||
import { RoomDragEvent } from './events';
|
import { RoomDragEvent } from './events';
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import { IDisposable, IMessageEvent } from '../../api';
|
import { IDisposable, IGroupInformationManager, IMessageEvent } from '../../api';
|
||||||
import { RoomReadyMessageEvent } from '../communication';
|
import { RoomReadyMessageEvent } from '../communication';
|
||||||
import { HabboGroupBadgesMessageEvent } from '../communication/messages/incoming/user/HabboGroupBadgesMessageEvent';
|
import { HabboGroupBadgesMessageEvent } from '../communication/messages/incoming/user/HabboGroupBadgesMessageEvent';
|
||||||
import { GetHabboGroupBadgesMessageComposer } from '../communication/messages/outgoing/user/GetHabboGroupBadgesMessageComposer';
|
import { GetHabboGroupBadgesMessageComposer } from '../communication/messages/outgoing/user/GetHabboGroupBadgesMessageComposer';
|
||||||
import { SessionDataManager } from './SessionDataManager';
|
import { SessionDataManager } from './SessionDataManager';
|
||||||
|
|
||||||
export class GroupInformationManager implements IDisposable
|
export class GroupInformationManager implements IDisposable, IGroupInformationManager
|
||||||
{
|
{
|
||||||
private _sessionDataManager: SessionDataManager;
|
private _sessionDataManager: SessionDataManager;
|
||||||
private _groupBadges: Map<number, string>;
|
private _groupBadges: Map<number, string>;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IDisposable, IMessageEvent } from '../../api';
|
import { IDisposable, IIgnoredUsersManager, IMessageEvent } from '../../api';
|
||||||
import { IgnoredUsersEvent } from '../communication/messages/incoming/user/IgnoredUsersEvent';
|
import { IgnoredUsersEvent } from '../communication/messages/incoming/user/IgnoredUsersEvent';
|
||||||
import { IgnoreResultEvent } from '../communication/messages/incoming/user/IgnoreResultEvent';
|
import { IgnoreResultEvent } from '../communication/messages/incoming/user/IgnoreResultEvent';
|
||||||
import { GetIgnoredUsersComposer } from '../communication/messages/outgoing/user/data/GetIgnoredUsersComposer';
|
import { GetIgnoredUsersComposer } from '../communication/messages/outgoing/user/data/GetIgnoredUsersComposer';
|
||||||
@ -7,7 +7,7 @@ import { IgnoreUserIdComposer } from '../communication/messages/outgoing/user/da
|
|||||||
import { UnignoreUserComposer } from '../communication/messages/outgoing/user/data/UnignoreUserComposer';
|
import { UnignoreUserComposer } from '../communication/messages/outgoing/user/data/UnignoreUserComposer';
|
||||||
import { SessionDataManager } from './SessionDataManager';
|
import { SessionDataManager } from './SessionDataManager';
|
||||||
|
|
||||||
export class IgnoredUsersManager implements IDisposable
|
export class IgnoredUsersManager implements IDisposable, IIgnoredUsersManager
|
||||||
{
|
{
|
||||||
private _sessionDataManager: SessionDataManager;
|
private _sessionDataManager: SessionDataManager;
|
||||||
private _ignoredUsers: string[];
|
private _ignoredUsers: string[];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IConnection } from '../../api';
|
import { IConnection, IRoomSession } from '../../api';
|
||||||
import { Disposable } from '../../core';
|
import { Disposable } from '../../core';
|
||||||
import { CompostPlantMessageComposer, FurnitureMultiStateComposer, HarvestPetMessageComposer, PetMountComposer, PollAnswerComposer, PollRejectComposer, PollStartComposer, RemovePetSaddleComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer } from '../communication';
|
import { CompostPlantMessageComposer, FurnitureMultiStateComposer, HarvestPetMessageComposer, PetMountComposer, PollAnswerComposer, PollRejectComposer, PollStartComposer, RemovePetSaddleComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer } from '../communication';
|
||||||
import { RoomModerationSettings } from '../communication/messages/incoming/roomsettings/RoomModerationSettings';
|
import { RoomModerationSettings } from '../communication/messages/incoming/roomsettings/RoomModerationSettings';
|
||||||
@ -29,7 +29,6 @@ import { UserMottoComposer } from '../communication/messages/outgoing/user/data/
|
|||||||
import { RoomControllerLevel } from './enum/RoomControllerLevel';
|
import { RoomControllerLevel } from './enum/RoomControllerLevel';
|
||||||
import { RoomTradingLevelEnum } from './enum/RoomTradingLevelEnum';
|
import { RoomTradingLevelEnum } from './enum/RoomTradingLevelEnum';
|
||||||
import { RoomSessionEvent } from './events/RoomSessionEvent';
|
import { RoomSessionEvent } from './events/RoomSessionEvent';
|
||||||
import { IRoomSession } from './IRoomSession';
|
|
||||||
import { UserDataManager } from './UserDataManager';
|
import { UserDataManager } from './UserDataManager';
|
||||||
|
|
||||||
export class RoomSession extends Disposable implements IRoomSession
|
export class RoomSession extends Disposable implements IRoomSession
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import { INitroCommunicationManager, IRoomHandlerListener, IRoomSession, IRoomSessionManager } from '../../api';
|
||||||
import { NitroManager } from '../../core';
|
import { NitroManager } from '../../core';
|
||||||
import { INitroCommunicationManager } from '../communication/INitroCommunicationManager';
|
|
||||||
import { RoomEngineEvent } from '../room/events/RoomEngineEvent';
|
import { RoomEngineEvent } from '../room/events/RoomEngineEvent';
|
||||||
import { IRoomEngine } from '../room/IRoomEngine';
|
import { IRoomEngine } from '../room/IRoomEngine';
|
||||||
import { RoomSessionEvent } from './events/RoomSessionEvent';
|
import { RoomSessionEvent } from './events/RoomSessionEvent';
|
||||||
@ -14,9 +14,6 @@ import { RoomPresentHandler } from './handler/RoomPresentHandler';
|
|||||||
import { RoomSessionHandler } from './handler/RoomSessionHandler';
|
import { RoomSessionHandler } from './handler/RoomSessionHandler';
|
||||||
import { RoomUsersHandler } from './handler/RoomUsersHandler';
|
import { RoomUsersHandler } from './handler/RoomUsersHandler';
|
||||||
import { WordQuizHandler } from './handler/WordQuizHandler';
|
import { WordQuizHandler } from './handler/WordQuizHandler';
|
||||||
import { IRoomHandlerListener } from './IRoomHandlerListener';
|
|
||||||
import { IRoomSession } from './IRoomSession';
|
|
||||||
import { IRoomSessionManager } from './IRoomSessionManager';
|
|
||||||
import { RoomSession } from './RoomSession';
|
import { RoomSession } from './RoomSession';
|
||||||
|
|
||||||
export class RoomSessionManager extends NitroManager implements IRoomSessionManager, IRoomHandlerListener
|
export class RoomSessionManager extends NitroManager implements IRoomSessionManager, IRoomHandlerListener
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
export class RoomUserData
|
import { IRoomUserData } from '../../api';
|
||||||
|
|
||||||
|
export class RoomUserData implements IRoomUserData
|
||||||
{
|
{
|
||||||
private _roomIndex: number = -1;
|
private _roomIndex: number = -1;
|
||||||
private _name: string = '';
|
private _name: string = '';
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { Resource, Texture } from '@pixi/core';
|
import { Resource, Texture } from '@pixi/core';
|
||||||
import { IMessageComposer } from '../../api';
|
import { IFurnitureData, IFurnitureDataListener, IGroupInformationManager, IMessageComposer, INitroCommunicationManager, IProductData, IProductDataListener, ISessionDataManager } from '../../api';
|
||||||
import { NitroEvent, NitroManager } from '../../core';
|
import { NitroEvent, NitroManager } from '../../core';
|
||||||
import { FigureUpdateEvent, MysteryBoxKeysEvent } from '../communication';
|
import { FigureUpdateEvent, MysteryBoxKeysEvent } from '../communication';
|
||||||
import { INitroCommunicationManager } from '../communication/INitroCommunicationManager';
|
|
||||||
import { AvailabilityStatusMessageEvent } from '../communication/messages/incoming/availability/AvailabilityStatusMessageEvent';
|
import { AvailabilityStatusMessageEvent } from '../communication/messages/incoming/availability/AvailabilityStatusMessageEvent';
|
||||||
import { ChangeUserNameResultMessageEvent } from '../communication/messages/incoming/avatar/ChangeUserNameResultMessageEvent';
|
import { ChangeUserNameResultMessageEvent } from '../communication/messages/incoming/avatar/ChangeUserNameResultMessageEvent';
|
||||||
import { NoobnessLevelMessageEvent } from '../communication/messages/incoming/handshake/NoobnessLevelMessageEvent';
|
import { NoobnessLevelMessageEvent } from '../communication/messages/incoming/handshake/NoobnessLevelMessageEvent';
|
||||||
@ -24,13 +23,8 @@ import { MysteryBoxKeysUpdateEvent } from './events';
|
|||||||
import { SessionDataPreferencesEvent } from './events/SessionDataPreferencesEvent';
|
import { SessionDataPreferencesEvent } from './events/SessionDataPreferencesEvent';
|
||||||
import { UserNameUpdateEvent } from './events/UserNameUpdateEvent';
|
import { UserNameUpdateEvent } from './events/UserNameUpdateEvent';
|
||||||
import { FurnitureDataLoader } from './furniture/FurnitureDataLoader';
|
import { FurnitureDataLoader } from './furniture/FurnitureDataLoader';
|
||||||
import { IFurnitureData } from './furniture/IFurnitureData';
|
|
||||||
import { IFurnitureDataListener } from './furniture/IFurnitureDataListener';
|
|
||||||
import { GroupInformationManager } from './GroupInformationManager';
|
import { GroupInformationManager } from './GroupInformationManager';
|
||||||
import { IgnoredUsersManager } from './IgnoredUsersManager';
|
import { IgnoredUsersManager } from './IgnoredUsersManager';
|
||||||
import { ISessionDataManager } from './ISessionDataManager';
|
|
||||||
import { IProductData } from './product/IProductData';
|
|
||||||
import { IProductDataListener } from './product/IProductDataListener';
|
|
||||||
import { ProductDataLoader } from './product/ProductDataLoader';
|
import { ProductDataLoader } from './product/ProductDataLoader';
|
||||||
|
|
||||||
export class SessionDataManager extends NitroManager implements ISessionDataManager
|
export class SessionDataManager extends NitroManager implements ISessionDataManager
|
||||||
@ -48,7 +42,7 @@ export class SessionDataManager extends NitroManager implements ISessionDataMana
|
|||||||
private _canChangeName: boolean;
|
private _canChangeName: boolean;
|
||||||
|
|
||||||
private _ignoredUsersManager: IgnoredUsersManager;
|
private _ignoredUsersManager: IgnoredUsersManager;
|
||||||
private _groupInformationManager: GroupInformationManager;
|
private _groupInformationManager: IGroupInformationManager;
|
||||||
|
|
||||||
private _clubLevel: number;
|
private _clubLevel: number;
|
||||||
private _securityLevel: number;
|
private _securityLevel: number;
|
||||||
@ -601,7 +595,7 @@ export class SessionDataManager extends NitroManager implements ISessionDataMana
|
|||||||
return this._ignoredUsersManager;
|
return this._ignoredUsersManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get groupInformationManager(): GroupInformationManager
|
public get groupInformationManager(): IGroupInformationManager
|
||||||
{
|
{
|
||||||
return this._groupInformationManager;
|
return this._groupInformationManager;
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { IConnection } from '../../api';
|
import { IConnection, IRoomUserData } from '../../api';
|
||||||
import { Disposable } from '../../core';
|
import { Disposable } from '../../core';
|
||||||
import { RequestPetInfoComposer } from '../communication/messages/outgoing/pet/RequestPetInfoComposer';
|
import { RequestPetInfoComposer } from '../communication/messages/outgoing/pet/RequestPetInfoComposer';
|
||||||
import { UserCurrentBadgesComposer } from '../communication/messages/outgoing/user/data/UserCurrentBadgesComposer';
|
import { UserCurrentBadgesComposer } from '../communication/messages/outgoing/user/data/UserCurrentBadgesComposer';
|
||||||
import { RoomUserData } from './RoomUserData';
|
|
||||||
|
|
||||||
export class UserDataManager extends Disposable
|
export class UserDataManager extends Disposable
|
||||||
{
|
{
|
||||||
@ -13,8 +12,8 @@ export class UserDataManager extends Disposable
|
|||||||
|
|
||||||
private _connection: IConnection;
|
private _connection: IConnection;
|
||||||
|
|
||||||
private _userDataByType: Map<number, Map<number, RoomUserData>>;
|
private _userDataByType: Map<number, Map<number, IRoomUserData>>;
|
||||||
private _userDataByRoomIndex: Map<number, RoomUserData>;
|
private _userDataByRoomIndex: Map<number, IRoomUserData>;
|
||||||
private _userBadges: Map<number, string[]>;
|
private _userBadges: Map<number, string[]>;
|
||||||
|
|
||||||
constructor()
|
constructor()
|
||||||
@ -38,27 +37,27 @@ export class UserDataManager extends Disposable
|
|||||||
this._connection = connection;
|
this._connection = connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
public getUserData(webID: number): RoomUserData
|
public getUserData(webID: number): IRoomUserData
|
||||||
{
|
{
|
||||||
return this.getDataByType(webID, UserDataManager.TYPE_USER);
|
return this.getDataByType(webID, UserDataManager.TYPE_USER);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getPetData(webID: number): RoomUserData
|
public getPetData(webID: number): IRoomUserData
|
||||||
{
|
{
|
||||||
return this.getDataByType(webID, UserDataManager.TYPE_PET);
|
return this.getDataByType(webID, UserDataManager.TYPE_PET);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getBotData(webID: number): RoomUserData
|
public getBotData(webID: number): IRoomUserData
|
||||||
{
|
{
|
||||||
return this.getDataByType(webID, UserDataManager.TYPE_BOT);
|
return this.getDataByType(webID, UserDataManager.TYPE_BOT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getRentableBotData(webID: number): RoomUserData
|
public getRentableBotData(webID: number): IRoomUserData
|
||||||
{
|
{
|
||||||
return this.getDataByType(webID, UserDataManager.TYPE_RENTABLE_BOT);
|
return this.getDataByType(webID, UserDataManager.TYPE_RENTABLE_BOT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getDataByType(webID: number, type: number): RoomUserData
|
public getDataByType(webID: number, type: number): IRoomUserData
|
||||||
{
|
{
|
||||||
const existing = this._userDataByType.get(type);
|
const existing = this._userDataByType.get(type);
|
||||||
|
|
||||||
@ -71,7 +70,7 @@ export class UserDataManager extends Disposable
|
|||||||
return userData;
|
return userData;
|
||||||
}
|
}
|
||||||
|
|
||||||
public getUserDataByIndex(roomIndex: number): RoomUserData
|
public getUserDataByIndex(roomIndex: number): IRoomUserData
|
||||||
{
|
{
|
||||||
const existing = this._userDataByRoomIndex.get(roomIndex);
|
const existing = this._userDataByRoomIndex.get(roomIndex);
|
||||||
|
|
||||||
@ -80,7 +79,7 @@ export class UserDataManager extends Disposable
|
|||||||
return existing;
|
return existing;
|
||||||
}
|
}
|
||||||
|
|
||||||
public getUserDataByName(name: string): RoomUserData
|
public getUserDataByName(name: string): IRoomUserData
|
||||||
{
|
{
|
||||||
for (const userData of this._userDataByRoomIndex.values())
|
for (const userData of this._userDataByRoomIndex.values())
|
||||||
{
|
{
|
||||||
@ -92,7 +91,7 @@ export class UserDataManager extends Disposable
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public updateUserData(data: RoomUserData): void
|
public updateUserData(data: IRoomUserData): void
|
||||||
{
|
{
|
||||||
if (!data) return;
|
if (!data) return;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
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 { NitroEvent } from '../../../core';
|
import { NitroEvent } from '../../../core';
|
||||||
import { IRoomSession } from '../IRoomSession';
|
|
||||||
|
|
||||||
export class RoomSessionEvent extends NitroEvent
|
export class RoomSessionEvent extends NitroEvent
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
import { IRoomSession } from '../../../api';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionPetBreedingEvent extends RoomSessionEvent
|
export class RoomSessionPetBreedingEvent extends RoomSessionEvent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { PetBreedingResultData } from '../../communication/messages/incoming/room/pet/PetBreedingResultData';
|
import { IRoomSession } from '../../../api';
|
||||||
import { IRoomSession } from '../IRoomSession';
|
import { PetBreedingResultData } from '../../communication/messages/incoming/room/pet/PetBreedingResultData';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionPetBreedingResultEvent extends RoomSessionEvent
|
export class RoomSessionPetBreedingResultEvent extends RoomSessionEvent
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
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 '../IRoomSession';
|
import { IRoomSession } from '../../../api';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionPetFigureUpdateEvent extends RoomSessionEvent
|
export class RoomSessionPetFigureUpdateEvent extends RoomSessionEvent
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
import { IRoomSession } from '../../../api';
|
||||||
import { RoomPetData } from '../RoomPetData';
|
import { RoomPetData } from '../RoomPetData';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
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,5 @@
|
|||||||
import { PetFigureDataParser } from '../../communication/messages/parser/inventory/pets/PetFigureDataParser';
|
import { IRoomSession } from '../../../api';
|
||||||
import { IRoomSession } from '../IRoomSession';
|
import { PetFigureDataParser } from '../../communication/messages/parser/inventory/pets/PetFigureDataParser';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionPetPackageEvent extends RoomSessionEvent
|
export class RoomSessionPetPackageEvent extends RoomSessionEvent
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
import { IRoomSession } from '../../../api';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionPetStatusUpdateEvent extends RoomSessionEvent
|
export class RoomSessionPetStatusUpdateEvent extends RoomSessionEvent
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { PollQuestion } from '../../communication/messages/parser/poll/PollQuestion';
|
import { IRoomSession } from '../../../api';
|
||||||
import { IRoomSession } from '../IRoomSession';
|
import { PollQuestion } from '../../communication/messages/parser/poll/PollQuestion';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
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 '../IRoomSession';
|
import { IRoomSession } from '../../../api';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionUserBadgesEvent extends RoomSessionEvent
|
export class RoomSessionUserBadgesEvent extends RoomSessionEvent
|
||||||
|
@ -1,21 +1,20 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
import { IRoomSession, IRoomUserData } from '../../../api';
|
||||||
import { RoomUserData } from '../RoomUserData';
|
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionUserDataUpdateEvent extends RoomSessionEvent
|
export class RoomSessionUserDataUpdateEvent extends RoomSessionEvent
|
||||||
{
|
{
|
||||||
public static USER_DATA_UPDATED: string = 'RMUDUE_USER_DATA_UPDATED';
|
public static USER_DATA_UPDATED: string = 'RMUDUE_USER_DATA_UPDATED';
|
||||||
|
|
||||||
private _addedUsers: RoomUserData[];
|
private _addedUsers: IRoomUserData[];
|
||||||
|
|
||||||
constructor(session: IRoomSession, addedUsers: RoomUserData[])
|
constructor(session: IRoomSession, addedUsers: IRoomUserData[])
|
||||||
{
|
{
|
||||||
super(RoomSessionUserDataUpdateEvent.USER_DATA_UPDATED, session);
|
super(RoomSessionUserDataUpdateEvent.USER_DATA_UPDATED, session);
|
||||||
|
|
||||||
this._addedUsers = addedUsers;
|
this._addedUsers = addedUsers;
|
||||||
}
|
}
|
||||||
|
|
||||||
public get addedUsers(): RoomUserData[]
|
public get addedUsers(): IRoomUserData[]
|
||||||
{
|
{
|
||||||
return this._addedUsers;
|
return this._addedUsers;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
import { IRoomSession } from '../../../api';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionUserFigureUpdateEvent extends RoomSessionEvent
|
export class RoomSessionUserFigureUpdateEvent extends RoomSessionEvent
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IRoomSession } from '../IRoomSession';
|
import { IRoomSession } from '../../../api';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { IQuestion } from '../../communication/messages/parser/poll/QuestionParser';
|
import { IRoomSession } from '../../../api';
|
||||||
import { IRoomSession } from '../IRoomSession';
|
import { IQuestion } from '../../communication/messages/parser/poll/QuestionParser';
|
||||||
import { RoomSessionEvent } from './RoomSessionEvent';
|
import { RoomSessionEvent } from './RoomSessionEvent';
|
||||||
|
|
||||||
export class RoomSessionWordQuizEvent extends RoomSessionEvent
|
export class RoomSessionWordQuizEvent extends RoomSessionEvent
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IFurnitureData } from './IFurnitureData';
|
import { IFurnitureData } from '../../../api';
|
||||||
|
|
||||||
export class FurnitureData implements IFurnitureData
|
export class FurnitureData implements IFurnitureData
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
|
import { FurnitureType, IFurnitureData } from '../../../api';
|
||||||
import { EventDispatcher, NitroEvent, NitroLogger } from '../../../core';
|
import { EventDispatcher, NitroEvent, NitroLogger } from '../../../core';
|
||||||
import { INitroLocalizationManager } from '../../localization/INitroLocalizationManager';
|
import { INitroLocalizationManager } from '../../localization/INitroLocalizationManager';
|
||||||
import { FurnitureData } from './FurnitureData';
|
import { FurnitureData } from './FurnitureData';
|
||||||
import { FurnitureType } from './FurnitureType';
|
|
||||||
import { IFurnitureData } from './IFurnitureData';
|
|
||||||
|
|
||||||
export class FurnitureDataLoader extends EventDispatcher
|
export class FurnitureDataLoader extends EventDispatcher
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,2 @@
|
|||||||
export * from './FurnitureData';
|
export * from './FurnitureData';
|
||||||
export * from './FurnitureDataLoader';
|
export * from './FurnitureDataLoader';
|
||||||
export * from './FurnitureType';
|
|
||||||
export * from './IFurnitureData';
|
|
||||||
export * from './IFurnitureDataListener';
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { Disposable } from '../../../core';
|
import { Disposable } from '../../../core';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
|
|
||||||
export class BaseHandler extends Disposable
|
export class BaseHandler extends Disposable
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { GenericErrorEvent } from '../../communication/messages/incoming/generic/GenericErrorEvent';
|
import { GenericErrorEvent } from '../../communication/messages/incoming/generic/GenericErrorEvent';
|
||||||
import { GenericErrorEnum } from '../enum/GenericErrorEnum';
|
import { GenericErrorEnum } from '../enum/GenericErrorEnum';
|
||||||
import { RoomSessionErrorMessageEvent } from '../events/RoomSessionErrorMessageEvent';
|
import { RoomSessionErrorMessageEvent } from '../events/RoomSessionErrorMessageEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
|
|
||||||
export class GenericErrorHandler extends BaseHandler
|
export class GenericErrorHandler extends BaseHandler
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { PollContentsEvent } from '../../communication/messages/incoming/poll/PollContentsEvent';
|
import { PollContentsEvent } from '../../communication/messages/incoming/poll/PollContentsEvent';
|
||||||
import { PollErrorEvent } from '../../communication/messages/incoming/poll/PollErrorEvent';
|
import { PollErrorEvent } from '../../communication/messages/incoming/poll/PollErrorEvent';
|
||||||
import { PollOfferEvent } from '../../communication/messages/incoming/poll/PollOfferEvent';
|
import { PollOfferEvent } from '../../communication/messages/incoming/poll/PollOfferEvent';
|
||||||
import { RoomSessionPollEvent } from '../events/RoomSessionPollEvent';
|
import { RoomSessionPollEvent } from '../events/RoomSessionPollEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
|
|
||||||
export class PollHandler extends BaseHandler
|
export class PollHandler extends BaseHandler
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { FloodControlEvent } from '../../communication/messages/incoming/room/unit/chat/FloodControlEvent';
|
import { FloodControlEvent } from '../../communication/messages/incoming/room/unit/chat/FloodControlEvent';
|
||||||
import { RemainingMuteEvent } from '../../communication/messages/incoming/room/unit/chat/RemainingMuteEvent';
|
import { RemainingMuteEvent } from '../../communication/messages/incoming/room/unit/chat/RemainingMuteEvent';
|
||||||
import { RoomUnitChatEvent } from '../../communication/messages/incoming/room/unit/chat/RoomUnitChatEvent';
|
import { RoomUnitChatEvent } from '../../communication/messages/incoming/room/unit/chat/RoomUnitChatEvent';
|
||||||
@ -11,7 +11,6 @@ import { PetSupplementTypeEnum } from '../../communication/messages/incoming/use
|
|||||||
import { RespectReceivedEvent } from '../../communication/messages/incoming/user/RespectReceivedEvent';
|
import { RespectReceivedEvent } from '../../communication/messages/incoming/user/RespectReceivedEvent';
|
||||||
import { SystemChatStyleEnum } from '../../ui/widget/enums/SystemChatStyleEnum';
|
import { SystemChatStyleEnum } from '../../ui/widget/enums/SystemChatStyleEnum';
|
||||||
import { RoomSessionChatEvent } from '../events/RoomSessionChatEvent';
|
import { RoomSessionChatEvent } from '../events/RoomSessionChatEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
|
|
||||||
export class RoomChatHandler extends BaseHandler
|
export class RoomChatHandler extends BaseHandler
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { GetGuestRoomResultEvent } from '../../communication/messages/incoming/navigator/GetGuestRoomResultEvent';
|
import { GetGuestRoomResultEvent } from '../../communication/messages/incoming/navigator/GetGuestRoomResultEvent';
|
||||||
import { RoomSessionEvent } from '../events/RoomSessionEvent';
|
import { RoomSessionEvent } from '../events/RoomSessionEvent';
|
||||||
import { RoomSessionPropertyUpdateEvent } from '../events/RoomSessionPropertyUpdateEvent';
|
import { RoomSessionPropertyUpdateEvent } from '../events/RoomSessionPropertyUpdateEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
|
|
||||||
export class RoomDataHandler extends BaseHandler
|
export class RoomDataHandler extends BaseHandler
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { RoomDimmerPresetsEvent } from '../../communication/messages/incoming/room/furniture/RoomDimmerPresetsMessageEvent';
|
import { RoomDimmerPresetsEvent } from '../../communication/messages/incoming/room/furniture/RoomDimmerPresetsMessageEvent';
|
||||||
import { RoomSessionDimmerPresetsEvent } from '../events/RoomSessionDimmerPresetsEvent';
|
import { RoomSessionDimmerPresetsEvent } from '../events/RoomSessionDimmerPresetsEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
|
|
||||||
export class RoomDimmerPresetsHandler extends BaseHandler
|
export class RoomDimmerPresetsHandler extends BaseHandler
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { RoomRightsClearEvent } from '../../communication/messages/incoming/room/access/rights/RoomRightsClearEvent';
|
import { RoomRightsClearEvent } from '../../communication/messages/incoming/room/access/rights/RoomRightsClearEvent';
|
||||||
import { RoomRightsEvent } from '../../communication/messages/incoming/room/access/rights/RoomRightsEvent';
|
import { RoomRightsEvent } from '../../communication/messages/incoming/room/access/rights/RoomRightsEvent';
|
||||||
import { RoomRightsOwnerEvent } from '../../communication/messages/incoming/room/access/rights/RoomRightsOwnerEvent';
|
import { RoomRightsOwnerEvent } from '../../communication/messages/incoming/room/access/rights/RoomRightsOwnerEvent';
|
||||||
import { RoomControllerLevel } from '../enum/RoomControllerLevel';
|
import { RoomControllerLevel } from '../enum/RoomControllerLevel';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
|
|
||||||
export class RoomPermissionsHandler extends BaseHandler
|
export class RoomPermissionsHandler extends BaseHandler
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { PresentOpenedMessageEvent } from '../../communication/messages/incoming/inventory/furni/gifts/PresentOpenedMessageEvent';
|
import { PresentOpenedMessageEvent } from '../../communication/messages/incoming/inventory/furni/gifts/PresentOpenedMessageEvent';
|
||||||
import { RoomSessionPresentEvent } from '../events/RoomSessionPresentEvent';
|
import { RoomSessionPresentEvent } from '../events/RoomSessionPresentEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
|
|
||||||
export class RoomPresentHandler extends BaseHandler
|
export class RoomPresentHandler extends BaseHandler
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { DesktopViewEvent } from '../../communication/messages/incoming/desktop/DesktopViewEvent';
|
import { DesktopViewEvent } from '../../communication/messages/incoming/desktop/DesktopViewEvent';
|
||||||
import { FlatAccessDeniedMessageEvent } from '../../communication/messages/incoming/navigator/FlatAccessDeniedMessageEvent';
|
import { FlatAccessDeniedMessageEvent } from '../../communication/messages/incoming/navigator/FlatAccessDeniedMessageEvent';
|
||||||
import { RoomDoorbellAcceptedEvent } from '../../communication/messages/incoming/room/access/doorbell/RoomDoorbellAcceptedEvent';
|
import { RoomDoorbellAcceptedEvent } from '../../communication/messages/incoming/room/access/doorbell/RoomDoorbellAcceptedEvent';
|
||||||
@ -7,7 +7,6 @@ import { RoomReadyMessageEvent } from '../../communication/messages/incoming/roo
|
|||||||
import { YouAreSpectatorMessageEvent } from '../../communication/messages/incoming/room/session/YouAreSpectatorMessageEvent';
|
import { YouAreSpectatorMessageEvent } from '../../communication/messages/incoming/room/session/YouAreSpectatorMessageEvent';
|
||||||
import { GoToFlatMessageComposer } from '../../communication/messages/outgoing/room/session/GoToFlatMessageComposer';
|
import { GoToFlatMessageComposer } from '../../communication/messages/outgoing/room/session/GoToFlatMessageComposer';
|
||||||
import { RoomSessionDoorbellEvent } from '../events/RoomSessionDoorbellEvent';
|
import { RoomSessionDoorbellEvent } from '../events/RoomSessionDoorbellEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { RoomSessionSpectatorModeEvent } from './../events/RoomSessionSpectatorModeEvent';
|
import { RoomSessionSpectatorModeEvent } from './../events/RoomSessionSpectatorModeEvent';
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener, IRoomUserData } from '../../../api';
|
||||||
import { PetFigureUpdateEvent } from '../../communication';
|
import { PetFigureUpdateEvent } from '../../communication';
|
||||||
import { NewFriendRequestEvent } from '../../communication/messages/incoming/friendlist/NewFriendRequestEvent';
|
import { NewFriendRequestEvent } from '../../communication/messages/incoming/friendlist/NewFriendRequestEvent';
|
||||||
import { DoorbellMessageEvent } from '../../communication/messages/incoming/navigator/DoorbellMessageEvent';
|
import { DoorbellMessageEvent } from '../../communication/messages/incoming/navigator/DoorbellMessageEvent';
|
||||||
@ -22,7 +22,6 @@ import { RoomSessionFriendRequestEvent } from '../events/RoomSessionFriendReques
|
|||||||
import { RoomSessionPetInfoUpdateEvent } from '../events/RoomSessionPetInfoUpdateEvent';
|
import { RoomSessionPetInfoUpdateEvent } from '../events/RoomSessionPetInfoUpdateEvent';
|
||||||
import { RoomSessionUserBadgesEvent } from '../events/RoomSessionUserBadgesEvent';
|
import { RoomSessionUserBadgesEvent } from '../events/RoomSessionUserBadgesEvent';
|
||||||
import { RoomSessionUserDataUpdateEvent } from '../events/RoomSessionUserDataUpdateEvent';
|
import { RoomSessionUserDataUpdateEvent } from '../events/RoomSessionUserDataUpdateEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { RoomPetData } from '../RoomPetData';
|
import { RoomPetData } from '../RoomPetData';
|
||||||
import { RoomUserData } from '../RoomUserData';
|
import { RoomUserData } from '../RoomUserData';
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
@ -59,7 +58,7 @@ export class RoomUsersHandler extends BaseHandler
|
|||||||
|
|
||||||
const users = event.getParser().users;
|
const users = event.getParser().users;
|
||||||
|
|
||||||
const usersToAdd: RoomUserData[] = [];
|
const usersToAdd: IRoomUserData[] = [];
|
||||||
|
|
||||||
if (users && users.length)
|
if (users && users.length)
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
import { IConnection } from '../../../api';
|
import { IConnection, IRoomHandlerListener } from '../../../api';
|
||||||
import { QuestionAnsweredEvent } from '../../communication/messages/incoming/poll/QuestionAnsweredEvent';
|
import { QuestionAnsweredEvent } from '../../communication/messages/incoming/poll/QuestionAnsweredEvent';
|
||||||
import { QuestionEvent } from '../../communication/messages/incoming/poll/QuestionEvent';
|
import { QuestionEvent } from '../../communication/messages/incoming/poll/QuestionEvent';
|
||||||
import { QuestionFinishedEvent } from '../../communication/messages/incoming/poll/QuestionFinishedEvent';
|
import { QuestionFinishedEvent } from '../../communication/messages/incoming/poll/QuestionFinishedEvent';
|
||||||
import { RoomSessionWordQuizEvent } from '../events/RoomSessionWordQuizEvent';
|
import { RoomSessionWordQuizEvent } from '../events/RoomSessionWordQuizEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
|
||||||
import { BaseHandler } from './BaseHandler';
|
import { BaseHandler } from './BaseHandler';
|
||||||
|
|
||||||
export class WordQuizHandler extends BaseHandler
|
export class WordQuizHandler extends BaseHandler
|
||||||
|
@ -5,10 +5,6 @@ export * from './furniture';
|
|||||||
export * from './HabboClubLevelEnum';
|
export * from './HabboClubLevelEnum';
|
||||||
export * from './handler';
|
export * from './handler';
|
||||||
export * from './IgnoredUsersManager';
|
export * from './IgnoredUsersManager';
|
||||||
export * from './IRoomHandlerListener';
|
|
||||||
export * from './IRoomSession';
|
|
||||||
export * from './IRoomSessionManager';
|
|
||||||
export * from './ISessionDataManager';
|
|
||||||
export * from './product';
|
export * from './product';
|
||||||
export * from './RoomPetData';
|
export * from './RoomPetData';
|
||||||
export * from './RoomSession';
|
export * from './RoomSession';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { IProductData } from './IProductData';
|
import { IProductData } from '../../../api';
|
||||||
|
|
||||||
export class ProductData implements IProductData
|
export class ProductData implements IProductData
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { EventDispatcher, NitroEvent } from '../../../core';
|
import { IProductData } from '../../../api';
|
||||||
import { IProductData } from './IProductData';
|
import { EventDispatcher, NitroEvent } from '../../../core';
|
||||||
import { ProductData } from './ProductData';
|
import { ProductData } from './ProductData';
|
||||||
|
|
||||||
export class ProductDataLoader extends EventDispatcher
|
export class ProductDataLoader extends EventDispatcher
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
export * from './IProductData';
|
|
||||||
export * from './IProductDataListener';
|
|
||||||
export * from './ProductData';
|
export * from './ProductData';
|
||||||
export * from './ProductDataLoader';
|
export * from './ProductDataLoader';
|
||||||
|
Loading…
Reference in New Issue
Block a user