Navigator packets

This commit is contained in:
skeletor 2022-06-18 04:55:42 +00:00 committed by Bill
parent dfce157d80
commit df97afd3f1
145 changed files with 2867 additions and 543 deletions

File diff suppressed because one or more lines are too long

View File

@ -99,6 +99,12 @@ export class IncomingHeader
public static NAVIGATOR_SEARCH = 2690;
public static NAVIGATOR_SEARCHES = 3984;
public static NAVIGATOR_SETTINGS = 518;
public static THUMBNAIL_UPDATE_RESULT = 1927;
public static CAN_CREATE_ROOM = 378;
public static CATEGORIES_WITH_VISITOR_COUNT = 1455;
public static COMPETITION_ROOMS_DATA = 3954;
public static CONVERTED_ROOM_ID = 1331;
public static GUEST_ROOM_SEARCH_RESULT = 52;
public static NOTIFICATION_LIST = 1992;
public static PET_FIGURE_UPDATE = 1924;
public static PET_INFO = 2901;
@ -137,7 +143,7 @@ export class IncomingHeader
public static ROOM_SETTINGS_CHAT = 1191;
public static ROOM_SETTINGS_SAVE = 948;
public static ROOM_SETTINGS_SAVE_ERROR = 1555;
public static ROOM_SETTINGS_UPDATED = 3297;
public static ROOM_INFO_UPDATED = 3297;
public static ROOM_SPECTATOR = 1033;
public static ROOM_THICKNESS = 3547;
public static INFO_FEED_ENABLE = 3284;
@ -190,6 +196,8 @@ export class IncomingHeader
public static USER_FURNITURE_REFRESH = 3151;
public static USER_FURNITURE_REMOVE = 159;
public static USER_HOME_ROOM = 2875;
public static ROOM_EVENT_CANCEL = 3479;
public static ROOM_EVENT = 1840;
public static USER_IGNORED = 126;
public static USER_IGNORED_RESULT = 207;
public static USER_INFO = 2725;
@ -375,4 +383,7 @@ export class IncomingHeader
public static NOOBNESS_LEVEL = 3738;
public static CAN_CREATE_ROOM_EVENT = 2599;
public static FAVORITE_GROUP_UDPATE = 3403;
public static NO_SUCH_FLAT = 84;
public static ROOM_SETTINGS_ERROR = 2897;
public static SHOW_ENFORCE_ROOM_CATEGORY = 3896;
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CanCreateRoomMessageParser } from '../../parser/navigator/CanCreateRoomMessageParser';
export class CanCreateRoomEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, CanCreateRoomMessageParser);
}
public getParser(): CanCreateRoomMessageParser
{
return this.parser as CanCreateRoomMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CategoriesWithVisitorCountParser } from '../../parser/navigator/CategoriesWithVisitorCountParser';
export class CategoriesWithVisitorCountEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, CategoriesWithVisitorCountParser);
}
public getParser(): CategoriesWithVisitorCountParser
{
return this.parser as CategoriesWithVisitorCountParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { CompetitionRoomsDataMessageParser } from '../../parser/navigator/CompetitionRoomsDataMessageParser';
export class CompetitionRoomsDataMessageEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, CompetitionRoomsDataMessageParser);
}
public getParser(): CompetitionRoomsDataMessageParser
{
return this.parser as CompetitionRoomsDataMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { ConvertedRoomIdMessageParser } from '../../parser/navigator/ConvertedRoomIdMessageParser';
export class ConvertedRoomIdEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, ConvertedRoomIdMessageParser);
}
public getParser(): ConvertedRoomIdMessageParser
{
return this.parser as ConvertedRoomIdMessageParser;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { DoorbellMessageParser } from '../../parser/navigator/DoorbellMessageParser';
export class DoorbellMessageEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, DoorbellMessageParser);
}
public getParser(): DoorbellMessageParser
{
return this.parser as DoorbellMessageParser;
}
public get userName(): string
{
return this.getParser().userName;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { FavouriteChangedMessageParser } from '../../parser/navigator/FavouriteChangedMessageParser';
export class FavouriteChangedEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, FavouriteChangedMessageParser);
}
public getParser(): FavouriteChangedMessageParser
{
return this.parser as FavouriteChangedMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { FavouritesMessageParser } from '../../parser/navigator/FavouritesMessageParser';
export class FavouritesEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, FavouritesMessageParser);
}
public getParser(): FavouritesMessageParser
{
return this.parser as FavouritesMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { FlatAccessDeniedMessageParser } from '../../parser/navigator/FlatAccessDeniedMessageParser';
export class FlatAccessDeniedMessageEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, FlatAccessDeniedMessageParser);
}
public getParser(): FlatAccessDeniedMessageParser
{
return this.parser as FlatAccessDeniedMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { FlatCreatedMessageParser } from '../../parser/navigator/FlatCreatedMessageParser';
export class FlatCreatedEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, FlatCreatedMessageParser);
}
public getParser(): FlatCreatedMessageParser
{
return this.parser as FlatCreatedMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { GetGuestRoomResultMessageParser } from '../../parser/navigator/GetGuestRoomResultMessageParser';
export class GetGuestRoomResultEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, GetGuestRoomResultMessageParser);
}
public getParser(): GetGuestRoomResultMessageParser
{
return this.parser as GetGuestRoomResultMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { GuestRoomSearchResultMessageParser } from '../../parser/navigator/GuestRoomSearchResultMessageParser';
export class GuestRoomSearchResultEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, GuestRoomSearchResultMessageParser);
}
public getParser(): GuestRoomSearchResultMessageParser
{
return this.parser as GuestRoomSearchResultMessageParser;
}
}

View File

@ -1,16 +0,0 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { NavigatorCategoriesParser } from '../../parser/navigator/NavigatorCategoriesParser';
export class NavigatorCategoriesEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, NavigatorCategoriesParser);
}
public getParser(): NavigatorCategoriesParser
{
return this.parser as NavigatorCategoriesParser;
}
}

View File

@ -1,16 +0,0 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { NavigatorEventCategoriesParser } from '../../parser/navigator/NavigatorEventCategoriesParser';
export class NavigatorEventCategoriesEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, NavigatorEventCategoriesParser);
}
public getParser(): NavigatorEventCategoriesParser
{
return this.parser as NavigatorEventCategoriesParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomEventCancelMessageParser } from '../../parser/navigator/RoomEventCancelMessageParser';
export class RoomEventCancelEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomEventCancelMessageParser);
}
public getParser(): RoomEventCancelMessageParser
{
return this.parser as RoomEventCancelMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomEventMessageParser } from '../../parser/navigator/RoomEventMessageParser';
export class RoomEventEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomEventMessageParser);
}
public getParser(): RoomEventMessageParser
{
return this.parser as RoomEventMessageParser;
}
}

View File

@ -1,6 +1,6 @@
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
import { RoomSettingsUpdatedParser } from '../../../parser/room/data/RoomSettingsUpdatedParser';
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomSettingsUpdatedParser } from '../../parser/navigator/RoomSettingsUpdatedParser';
export class RoomSettingsUpdatedEvent extends MessageEvent implements IMessageEvent
{

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomThumbnailUpdateResultMessageParser } from '../../parser/navigator/RoomThumbnailUpdateResultMessageParser';
export class RoomThumbnailUpdateResultEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomThumbnailUpdateResultMessageParser);
}
public getParser(): RoomThumbnailUpdateResultMessageParser
{
return this.parser as RoomThumbnailUpdateResultMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { UserEventCatsMessageParser } from '../../parser/navigator/UserEventCatsMessageParser';
export class UserEventCatsEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, UserEventCatsMessageParser);
}
public getParser(): UserEventCatsMessageParser
{
return this.parser as UserEventCatsMessageParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { UserFlatCatsMessageParser } from '../../parser/navigator/UserFlatCatsMessageParser';
export class UserFlatCatsEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, UserFlatCatsMessageParser);
}
public getParser(): UserFlatCatsMessageParser
{
return this.parser as UserFlatCatsMessageParser;
}
}

View File

@ -1,7 +1,16 @@
export * from './CanCreateRoomEvent';
export * from './CanCreateRoomEventEvent';
export * from './NavigatorCategoriesEvent';
export * from './CategoriesWithVisitorCountEvent';
export * from './CompetitionRoomsDataMessageEvent';
export * from './ConvertedRoomIdEvent';
export * from './DoorbellMessageEvent';
export * from './FavouriteChangedEvent';
export * from './FavouritesEvent';
export * from './FlatAccessDeniedMessageEvent';
export * from './FlatCreatedEvent';
export * from './GetGuestRoomResultEvent';
export * from './GuestRoomSearchResultEvent';
export * from './NavigatorCollapsedEvent';
export * from './NavigatorEventCategoriesEvent';
export * from './NavigatorHomeRoomEvent';
export * from './NavigatorLiftedEvent';
export * from './NavigatorMetadataEvent';
@ -9,3 +18,9 @@ export * from './NavigatorOpenRoomCreatorEvent';
export * from './NavigatorSearchesEvent';
export * from './NavigatorSearchEvent';
export * from './NavigatorSettingsEvent';
export * from './RoomEventCancelEvent';
export * from './RoomEventEvent';
export * from './RoomSettingsUpdatedEvent';
export * from './RoomThumbnailUpdateResultEvent';
export * from './UserEventCatsEvent';
export * from './UserFlatCatsEvent';

View File

@ -1,21 +0,0 @@
import { IMessageEvent } from '../../../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../../../core/communication/messages/MessageEvent';
import { RoomDoorbellParser } from '../../../../parser/room/access/doorbell/RoomDoorbellParser';
export class RoomDoorbellEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomDoorbellParser);
}
public getParser(): RoomDoorbellParser
{
return this.parser as RoomDoorbellParser;
}
public get userName(): string
{
return this.getParser().userName;
}
}

View File

@ -1,16 +0,0 @@
import { IMessageEvent } from '../../../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../../../core/communication/messages/MessageEvent';
import { RoomDoorbellRejectedParser } from '../../../../parser/room/access/doorbell/RoomDoorbellRejectedParser';
export class RoomDoorbellRejectedEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomDoorbellRejectedParser);
}
public getParser(): RoomDoorbellRejectedParser
{
return this.parser as RoomDoorbellRejectedParser;
}
}

View File

@ -1,3 +1 @@
export * from './RoomDoorbellAcceptedEvent';
export * from './RoomDoorbellEvent';
export * from './RoomDoorbellRejectedEvent';

View File

@ -1,16 +0,0 @@
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
import { RoomInfoParser } from '../../../parser/room/data/RoomInfoParser';
export class GetGuestRoomResultEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomInfoParser);
}
public getParser(): RoomInfoParser
{
return this.parser as RoomInfoParser;
}
}

View File

@ -1,16 +0,0 @@
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
import { RoomSettingsParser } from '../../../parser/room/data/RoomSettingsParser';
export class RoomSettingsEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomSettingsParser);
}
public getParser(): RoomSettingsParser
{
return this.parser as RoomSettingsParser;
}
}

View File

@ -1,8 +1,3 @@
export * from './GetGuestRoomResultEvent';
export * from './RoomChatSettingsEvent';
export * from './RoomEntryInfoMessageEvent';
export * from './RoomScoreEvent';
export * from './RoomSettingsErrorEvent';
export * from './RoomSettingsEvent';
export * from './RoomSettingsSavedEvent';
export * from './RoomSettingsUpdatedEvent';

View File

@ -1,16 +0,0 @@
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
import { RoomCreatedParser } from '../../../parser/room/engine/RoomCreatedParser';
export class RoomCreatedEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomCreatedParser);
}
public getParser(): RoomCreatedParser
{
return this.parser as RoomCreatedParser;
}
}

View File

@ -1,4 +1,3 @@
export * from './ObjectData';
export * from './ObjectsDataUpdateEvent';
export * from './ObjectsRollingEvent';
export * from './RoomCreatedEvent';

View File

@ -1,16 +0,0 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomMutedParser } from '../../parser/roomevents/RoomMutedParser';
export class RoomMutedEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomMutedParser);
}
public getParser(): RoomMutedParser
{
return this.parser as RoomMutedParser;
}
}

View File

@ -1,5 +1,4 @@
export * from './ConditionDefinition';
export * from './RoomMutedEvent';
export * from './Triggerable';
export * from './TriggerDefinition';
export * from './WiredActionDefinition';

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { MuteAllInRoomParser } from '../../parser/roomsettings/MuteAllInRoomParser';
export class MuteAllInRoomEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, MuteAllInRoomParser);
}
public getParser(): MuteAllInRoomParser
{
return this.parser as MuteAllInRoomParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { NoSuchFlatParser } from '../../parser/roomsettings/NoSuchFlatParser';
export class NoSuchFlatEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, NoSuchFlatParser);
}
public getParser(): NoSuchFlatParser
{
return this.parser as NoSuchFlatParser;
}
}

View File

@ -1,4 +1,4 @@
import { IMessageDataWrapper } from '../../../../../../core';
import { IMessageDataWrapper } from '../../../../../core';
export class RoomChatSettings
{
@ -24,32 +24,11 @@ export class RoomChatSettings
{
if(!wrapper) throw new Error('invalid_wrapper');
this.flush();
this.parse(wrapper);
}
public flush(): boolean
{
this._mode = 0;
this._weight = 0;
this._speed = 0;
this._distance = 0;
this._protection = 0;
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._mode = wrapper.readInt();
this._weight = wrapper.readInt();
this._speed = wrapper.readInt();
this._distance = wrapper.readInt();
this._protection = wrapper.readInt();
return true;
}
public get mode(): number

View File

@ -1,4 +1,4 @@
import { IMessageDataWrapper } from '../../../../../../core';
import { IMessageDataWrapper } from '../../../../../core';
export class RoomModerationSettings
{
@ -11,19 +11,6 @@ export class RoomModerationSettings
private _allowBan: number;
constructor(wrapper: IMessageDataWrapper)
{
this.reset();
this.parse(wrapper);
}
private reset(): void
{
this._allowMute = 0;
this._allowKick = 0;
this._allowBan = 0;
}
public parse(wrapper: IMessageDataWrapper): void
{
this._allowMute = wrapper.readInt();
this._allowKick = wrapper.readInt();

View File

@ -0,0 +1,332 @@
import { BannedUserData } from './BannedUserData';
import { FlatControllerData } from './FlatControllerData';
import { RoomChatSettings } from './RoomChatSettings';
import { RoomModerationSettings } from './RoomModerationSettings';
export class RoomSettingsData
{
public static DOORMODE_OPEN: number = 0;
public static DOORMODE_CLOSED: number = 1;
public static DOORMODE_PASSWORD: number = 2;
public static DOORMODE_INVISIBLE: number = 3;
public static DOORMODE_NOOBS_ONLY: number = 4;
public static TRADEMODE_NOT_ALLOWED: number = 0;
public static TRADEMODE_WITH_CONTROLLER: number = 1;
public static TRADEMODE_ALLOWED: number = 2;
private _roomId: number = -1;
private _name: string = null;
private _description: string = null;
private _doorMode: number = RoomSettingsData.DOORMODE_OPEN;
private _categoryId: number = -1;
private _maximumVisitors: number = 0;
private _maximumVisitorsLimit: number = 0;
private _tags: string[] = [];
private _tradeMode: number = RoomSettingsData.TRADEMODE_NOT_ALLOWED;
private _allowPets: boolean = false;
private _allowFoodConsume: boolean = false;
private _allowWalkThrough: boolean = false;
private _hideWalls: boolean = false;
private _wallThickness: number = 0;
private _floorThickness: number = 0;
private _controllersById: Map<number, FlatControllerData> = new Map();
private _controllerList: FlatControllerData[] = null;
private _highlightedUserId: number = -1;
private _bannedUsersById: Map<number, BannedUserData> = new Map();
private _bannedUsersList: BannedUserData[] = null;
private _roomModerationSettings: RoomModerationSettings = null;
private _chatSettings: RoomChatSettings = null;
private _allowNavigatorDynamicCats: boolean = false;
public static from(settings: RoomSettingsData)
{
const instance = new RoomSettingsData();
instance._roomId = settings._roomId;
instance._name = settings._name;
instance._description = settings._description;
instance._doorMode = settings._doorMode;
instance._categoryId = settings._categoryId;
instance._maximumVisitors = settings._maximumVisitors;
instance._maximumVisitorsLimit = settings._maximumVisitorsLimit;
instance._tags = settings._tags;
instance._tradeMode = settings._tradeMode;
instance._allowPets = settings._allowPets;
instance._allowFoodConsume = settings._allowFoodConsume;
instance._allowWalkThrough = settings._allowWalkThrough;
instance._hideWalls = settings._hideWalls;
instance._wallThickness = settings._wallThickness;
instance._floorThickness = settings._floorThickness;
instance._controllersById = settings._controllersById;
instance._controllerList = settings._controllerList;
instance._highlightedUserId = settings._highlightedUserId;
instance._bannedUsersById = settings._bannedUsersById;
instance._bannedUsersList = settings._bannedUsersList;
instance._roomModerationSettings = settings._roomModerationSettings;
instance._chatSettings = settings._chatSettings;
instance._allowNavigatorDynamicCats = settings._allowNavigatorDynamicCats;
return instance;
}
// public static _Str_26097(k: number): string
// {
// switch (k)
// {
// case RoomSettingsData.DOORMODE_OPEN:
// return "${navigator.door.mode.open}";
// case RoomSettingsData.DOORMODE_CLOSED:
// return "${navigator.door.mode.closed}";
// case RoomSettingsData.DOORMODE_PASSWORD:
// return "${navigator.door.mode.password}";
// case RoomSettingsData.DOORMODE_INVISIBLE:
// return "${navigator.door.mode.invisible}";
// case RoomSettingsData.DOORMODE_NOOBS_ONLY:
// return "${navigator.door.mode.noobs_only}";
// }
// return "";
// }
public get tradeMode(): number
{
return this._tradeMode;
}
public set tradeMode(mode: number)
{
this._tradeMode = mode;
}
public get allowPets(): boolean
{
return this._allowPets;
}
public set allowPets(flag: boolean)
{
this._allowPets = flag;
}
public get allowFoodConsume(): boolean
{
return this._allowFoodConsume;
}
public set allowFoodConsume(flag: boolean)
{
this._allowFoodConsume = flag;
}
public get allowWalkThrough(): boolean
{
return this._allowWalkThrough;
}
public set allowWalkThrough(flag: boolean)
{
this._allowWalkThrough = flag;
}
public get hideWalls(): boolean
{
return this._hideWalls;
}
public set hideWalls(flag: boolean)
{
this._hideWalls = flag;
}
public get wallThickness(): number
{
return this._wallThickness;
}
public set wallThickness(thickness: number)
{
this._wallThickness = thickness;
}
public get floorThickness(): number
{
return this._floorThickness;
}
public set floorThickness(thickness: number)
{
this._floorThickness = thickness;
}
public get roomId(): number
{
return this._roomId;
}
public set roomId(id: number)
{
this._roomId = id;
}
public get name(): string
{
return this._name;
}
public set name(name: string)
{
this._name = name;
}
public get description(): string
{
return this._description;
}
public set description(description: string)
{
this._description = description;
}
public get doorMode(): number
{
return this._doorMode;
}
public set doorMode(mode: number)
{
this._doorMode = mode;
}
public get categoryId(): number
{
return this._categoryId;
}
public set categoryId(id: number)
{
this._categoryId = id;
}
public get maximumVisitors(): number
{
return this._maximumVisitors;
}
public set maximumVisitors(max: number)
{
this._maximumVisitors = max;
}
public get maximumVisitorsLimit(): number
{
return this._maximumVisitorsLimit;
}
public set maximumVisitorsLimit(limit: number)
{
this._maximumVisitorsLimit = limit;
}
public get tags(): string[]
{
return this._tags;
}
public set tags(tags: string[])
{
this._tags = tags;
}
public _Str_17474(id: number, data: FlatControllerData): void
{
this._controllersById.set(id, data);
this._controllerList = null;
this._highlightedUserId = id;
}
public get roomModerationSettings(): RoomModerationSettings
{
return this._roomModerationSettings;
}
public set roomModerationSettings(settings: RoomModerationSettings)
{
this._roomModerationSettings = settings;
}
public get controllersById(): Map<number, FlatControllerData>
{
return this._controllersById;
}
public set controllersById(controllers: Map<number, FlatControllerData>)
{
this._controllersById = controllers;
}
public get controllerList(): FlatControllerData[]
{
if(!this._controllerList)
{
this._controllerList = [];
for(const controllerData of this._controllersById.values()) this._controllerList.push(controllerData);
this._controllerList.sort((a, b) => a.userName.localeCompare(b.userName));
}
return this._controllerList;
}
public get highlightedUserId(): number
{
return this._highlightedUserId;
}
public _Str_22019(id: number, data: BannedUserData): void
{
this._bannedUsersById.set(id, data);
this._bannedUsersList = null;
}
public get bannedUsersById(): Map<number, BannedUserData>
{
return this._bannedUsersById;
}
public get bannedUsersList(): BannedUserData[]
{
if(!this._bannedUsersList)
{
this._bannedUsersList = [];
for(const bannedUserData of this._bannedUsersById.values()) this._bannedUsersList.push(bannedUserData);
this._bannedUsersList.sort((a, b) => a.userName.localeCompare(b.userName));
}
return this._bannedUsersList;
}
public get chatSettings(): RoomChatSettings
{
return this._chatSettings;
}
public set chatSettings(settings: RoomChatSettings)
{
this._chatSettings = settings;
}
public get allowNavigatorDynamicCats(): boolean
{
return this._allowNavigatorDynamicCats;
}
public set allowNavigatorDynamicCats(flag: boolean)
{
this._allowNavigatorDynamicCats = flag;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomSettingsDataParser } from '../../parser/roomsettings/RoomSettingsDataParser';
export class RoomSettingsDataEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomSettingsDataParser);
}
public getParser(): RoomSettingsDataParser
{
return this.parser as RoomSettingsDataParser;
}
}

View File

@ -1,6 +1,6 @@
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
import { RoomSettingsErrorParser } from '../../../parser/room/data/RoomSettingsErrorParser';
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomSettingsErrorParser } from '../../parser/roomsettings/RoomSettingsErrorParser';
export class RoomSettingsErrorEvent extends MessageEvent implements IMessageEvent
{

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomSettingsSaveErrorParser } from '../../parser/roomsettings/RoomSettingsSaveErrorParser';
export class RoomSettingsSaveErrorEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RoomSettingsSaveErrorParser);
}
public getParser(): RoomSettingsSaveErrorParser
{
return this.parser as RoomSettingsSaveErrorParser;
}
}

View File

@ -1,6 +1,6 @@
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
import { RoomSettingsSavedParser } from '../../../parser/room/data/RoomSettingsSavedParser';
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { RoomSettingsSavedParser } from '../../parser/roomsettings/RoomSettingsSavedParser';
export class RoomSettingsSavedEvent extends MessageEvent implements IMessageEvent
{

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { ShowEnforceRoomCategoryDialogParser } from '../../parser/roomsettings/ShowEnforceRoomCategoryDialogParser';
export class ShowEnforceRoomCategoryDialogEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, ShowEnforceRoomCategoryDialogParser);
}
public getParser(): ShowEnforceRoomCategoryDialogParser
{
return this.parser as ShowEnforceRoomCategoryDialogParser;
}
}

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
import { UserUnbannedFromRoomParser } from '../../parser/roomsettings/UserUnbannedFromRoomParser';
export class UserUnbannedFromRoomEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, UserUnbannedFromRoomParser);
}
public getParser(): UserUnbannedFromRoomParser
{
return this.parser as UserUnbannedFromRoomParser;
}
}

View File

@ -5,3 +5,11 @@ export * from './FlatControllerData';
export * from './FlatControllerRemovedEvent';
export * from './FlatControllersEvent';
export * from './IFlatUser';
export * from './MuteAllInRoomEvent';
export * from './NoSuchFlatEvent';
export * from './RoomChatSettings';
export * from './RoomModerationSettings';
export * from './RoomSettingsData';
export * from './RoomSettingsDataEvent';
export * from './RoomSettingsErrorEvent';
export * from './RoomSettingsSaveErrorEvent';

View File

@ -101,13 +101,13 @@ export class OutgoingHeader
public static HABBO_SEARCH = 1210;
public static FRIEND_LIST_UPDATE = 1419;
public static MOD_TOOL_USER_INFO = 3295;
public static NAVIGATOR_CATEGORIES = 3027;
public static GET_USER_FLAT_CATS = 3027;
public static NAVIGATOR_INIT = 2110;
public static NAVIGATOR_SEARCH = 249;
public static NAVIGATOR_SEARCH_CLOSE = 1834;
public static NAVIGATOR_SEARCH_OPEN = 637;
public static NAVIGATOR_SEARCH_SAVE = 2226;
public static NAVIGATOR_SETTINGS = 1782;
public static GET_USER_EVENT_CATS = 1782;
public static NAVIGATOR_SETTINGS_SAVE = 3159;
public static NAVIGATOR_CATEGORY_LIST_MODE = 1202;
public static PET_INFO = 2934;
@ -129,7 +129,34 @@ export class OutgoingHeader
public static ROOM_ENTER = 2312;
public static ROOM_FAVORITE = 3817;
public static ROOM_FAVORITE_REMOVE = 309;
public static ROOM_INFO = 2230;
public static CAN_CREATE_ROOM = 2128;
public static CANCEL_ROOM_EVENT = 2725;
public static EDIT_ROOM_EVENT = 3991;
public static COMPETITION_ROOM_SEARCH = 433;
public static FORWARD_TO_RANDOM_PROMOTED_ROOM = 10;
public static FORWARD_TO_SOME_ROOM = 1703;
public static GET_CATEGORIES_WITH_USER_COUNT = 3782;
public static GET_GUEST_ROOM = 2230;
public static GET_OFFICIAL_ROOMS = 1229;
public static GET_POPULAR_ROOM_TAGS = 826;
public static GUILD_BASE_SEARCH = 2930;
public static MY_FAVOURITE_ROOMS_SEARCH = 2578;
public static MY_FREQUENT_ROOM_HISTORY_SEARCH = 1002;
public static MY_FRIENDS_ROOM_SEARCH = 2266;
public static MY_GUILD_BASES_SEARCH = 39;
public static MY_RECOMMENDED_ROOMS = 2537;
public static MY_ROOM_HISTORY_SEARCH = 2264;
public static MY_ROOM_RIGHTS_SEARCH = 272;
public static MY_ROOMS_SEARCH = 2277;
public static POPULAR_ROOMS_SEARCH = 2758;
public static ROOM_AD_EVENT_TAB_CLICKED = 2412;
public static ROOM_AD_EVENT_TAB_VIEWED = 2668;
public static ROOM_AD_SEARCH = 2809;
public static ROOM_TEXT_SEARCH = 3943;
public static ROOMS_WHERE_MY_FRIENDS_ARE = 1786;
public static ROOMS_WITH_HIGHEST_SCORE_SEARCH = 2939;
public static SET_ROOM_SESSION_TAGS = 3305;
public static UPDATE_ROOM_THUMBNAIL = 2468;
public static ROOM_KICK = 1320;
public static ROOM_LIKE = 3582;
public static ROOM_MODEL = 2300;

View File

@ -9,7 +9,7 @@ export class ClientHelloMessageComposer implements IMessageComposer<ConstructorP
constructor(releaseVersion: string, type: string, platform: number, category: number)
{
this._data = [ NitroVersion.RENDERER_VERSION, 'HTML5', ClientPlatformEnum.HTML5, ClientDeviceCategoryEnum.BROWSER ];
this._data = [ `NITRO-${ NitroVersion.RENDERER_VERSION.replaceAll('.', '-') }`, 'HTML5', ClientPlatformEnum.HTML5, ClientDeviceCategoryEnum.BROWSER ];
}
public getMessageArray()

View File

@ -25,6 +25,7 @@ export * from './poll';
export * from './quest';
export * from './room';
export * from './roomevents';
export * from './roomsettings';
export * from './sound';
export * from './talent';
export * from './user';

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class AddFavouriteRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof AddFavouriteRoomMessageComposer>>
{
private _data: ConstructorParameters<typeof AddFavouriteRoomMessageComposer>;
constructor(roomId: number)
{
this._data = [ roomId ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -1,8 +1,8 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class NavigatorCategoriesComposer implements IMessageComposer<ConstructorParameters<typeof NavigatorCategoriesComposer>>
export class CanCreateRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof CanCreateRoomMessageComposer>>
{
private _data: ConstructorParameters<typeof NavigatorCategoriesComposer>;
private _data: ConstructorParameters<typeof CanCreateRoomMessageComposer>;
constructor()
{

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class CancelEventMessageComposer implements IMessageComposer<ConstructorParameters<typeof CancelEventMessageComposer>>
{
private _data: ConstructorParameters<typeof CancelEventMessageComposer>;
constructor(k: number)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class CompetitionRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof CompetitionRoomsSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof CompetitionRoomsSearchMessageComposer>;
constructor(k:number, _arg_2:number)
{
this._data = [k, _arg_2];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -1,8 +1,8 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class RoomCreateComposer implements IMessageComposer<ConstructorParameters<typeof RoomCreateComposer>>
export class CreateFlatMessageComposer implements IMessageComposer<ConstructorParameters<typeof CreateFlatMessageComposer>>
{
private _data: ConstructorParameters<typeof RoomCreateComposer>;
private _data: ConstructorParameters<typeof CreateFlatMessageComposer>;
constructor(roomName: string, roomDesc: string, modelName: string, categoryId: number, maxVisitors: number, tradeType: number)
{

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class DeleteFavouriteRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof DeleteFavouriteRoomMessageComposer>>
{
private _data: ConstructorParameters<typeof DeleteFavouriteRoomMessageComposer>;
constructor(k: number)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class EditEventMessageComposer implements IMessageComposer<ConstructorParameters<typeof EditEventMessageComposer>>
{
private _data: ConstructorParameters<typeof EditEventMessageComposer>;
constructor(k:number, _arg_2:string, _arg_3:string)
{
this._data = [ k, _arg_2, _arg_3 ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ForwardToARandomPromotedRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof ForwardToARandomPromotedRoomMessageComposer>>
{
private _data: ConstructorParameters<typeof ForwardToARandomPromotedRoomMessageComposer>;
constructor(k:string)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ForwardToSomeRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof ForwardToSomeRoomMessageComposer>>
{
private _data: ConstructorParameters<typeof ForwardToSomeRoomMessageComposer>;
constructor(k:string)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class GetCategoriesWithUserCountMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCategoriesWithUserCountMessageComposer>>
{
private _data: ConstructorParameters<typeof GetCategoriesWithUserCountMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -1,6 +1,6 @@
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class RoomInfoComposer implements IMessageComposer<[ number, number, number ]>
export class GetGuestRoomMessageComposer implements IMessageComposer<[ number, number, number ]>
{
private _data: [ number, number, number ];

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class GetOfficialRoomsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetOfficialRoomsMessageComposer>>
{
private _data: ConstructorParameters<typeof GetOfficialRoomsMessageComposer>;
constructor(k: number = 0)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class GetPopularRoomTagsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetPopularRoomTagsMessageComposer>>
{
private _data: ConstructorParameters<typeof GetPopularRoomTagsMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class GetUserEventCatsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetUserEventCatsMessageComposer>>
{
private _data: ConstructorParameters<typeof GetUserEventCatsMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class GetUserFlatCatsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetUserFlatCatsMessageComposer>>
{
private _data: ConstructorParameters<typeof GetUserFlatCatsMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class GuildBaseSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuildBaseSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof GuildBaseSearchMessageComposer>;
constructor(k: number)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class MyFavouriteRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyFavouriteRoomsSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof MyFavouriteRoomsSearchMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class MyFrequentRoomHistorySearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyFrequentRoomHistorySearchMessageComposer>>
{
private _data: ConstructorParameters<typeof MyFrequentRoomHistorySearchMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class MyFriendsRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyFriendsRoomsSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof MyFriendsRoomsSearchMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class MyGuildBasesSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyGuildBasesSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof MyGuildBasesSearchMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class MyRecommendedRoomsMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyRecommendedRoomsMessageComposer>>
{
private _data: ConstructorParameters<typeof MyRecommendedRoomsMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class MyRoomHistorySearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyRoomHistorySearchMessageComposer>>
{
private _data: ConstructorParameters<typeof MyRoomHistorySearchMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class MyRoomRightsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyRoomRightsSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof MyRoomRightsSearchMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -1,8 +1,8 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class NavigatorSettingsComposer implements IMessageComposer<ConstructorParameters<typeof NavigatorSettingsComposer>>
export class MyRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyRoomsSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof NavigatorSettingsComposer>;
private _data: ConstructorParameters<typeof MyRoomsSearchMessageComposer>;
constructor()
{

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class PopularRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof PopularRoomsSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof PopularRoomsSearchMessageComposer>;
constructor(k:string, _arg_2:number)
{
this._data = [ k, _arg_2 ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class RateFlatMessageComposer implements IMessageComposer<ConstructorParameters<typeof RateFlatMessageComposer>>
{
private _data: ConstructorParameters<typeof RateFlatMessageComposer>;
constructor(k: number)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class RoomAdEventTabAdClickedComposer implements IMessageComposer<ConstructorParameters<typeof RoomAdEventTabAdClickedComposer>>
{
private _data: ConstructorParameters<typeof RoomAdEventTabAdClickedComposer>;
constructor(k:number, _arg_2:string, _arg_3:number)
{
this._data = [ k, _arg_2, _arg_3 ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class RoomAdEventTabViewedComposer implements IMessageComposer<ConstructorParameters<typeof RoomAdEventTabViewedComposer>>
{
private _data: ConstructorParameters<typeof RoomAdEventTabViewedComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class RoomAdSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomAdSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof RoomAdSearchMessageComposer>;
constructor(k: number, _arg_2: number)
{
this._data = [ k, _arg_2 ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class RoomTextSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomTextSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof RoomTextSearchMessageComposer>;
constructor(k: string)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class RoomsWhereMyFriendsAreSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomsWhereMyFriendsAreSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof RoomsWhereMyFriendsAreSearchMessageComposer>;
constructor()
{
this._data = [];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class RoomsWithHighestScoreSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomsWithHighestScoreSearchMessageComposer>>
{
private _data: ConstructorParameters<typeof RoomsWithHighestScoreSearchMessageComposer>;
constructor(k: number)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class SetRoomSessionTagsMessageComposer implements IMessageComposer<ConstructorParameters<typeof SetRoomSessionTagsMessageComposer>>
{
private _data: ConstructorParameters<typeof SetRoomSessionTagsMessageComposer>;
constructor(k: string, _arg_2: string)
{
this._data = [ k, _arg_2 ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class ToggleStaffPickMessageComposer implements IMessageComposer<ConstructorParameters<typeof ToggleStaffPickMessageComposer>>
{
private _data: ConstructorParameters<typeof ToggleStaffPickMessageComposer>;
constructor(roomId: number)
{
this._data = [ roomId ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class UpdateHomeRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof UpdateHomeRoomMessageComposer>>
{
private _data: ConstructorParameters<typeof UpdateHomeRoomMessageComposer>;
constructor(roomId: number)
{
this._data = [ roomId ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -0,0 +1,21 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class UpdateRoomThumbnailMessageComposer implements IMessageComposer<ConstructorParameters<typeof UpdateRoomThumbnailMessageComposer>>
{
private _data: ConstructorParameters<typeof UpdateRoomThumbnailMessageComposer>;
constructor(flatId:number, bgImgId:number, frontImgId:number, objCount:number)
{
this._data = [ flatId, bgImgId, frontImgId, objCount ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -1,11 +1,45 @@
export * from './AddFavouriteRoomMessageComposer';
export * from './CancelEventMessageComposer';
export * from './CanCreateRoomMessageComposer';
export * from './CompetitionRoomsSearchMessageComposer';
export * from './ConvertGlobalRoomIdComposer';
export * from './NavigatorCategoriesComposer';
export * from './CreateFlatMessageComposer';
export * from './DeleteFavouriteRoomMessageComposer';
export * from './EditEventMessageComposer';
export * from './ForwardToARandomPromotedRoomMessageComposer';
export * from './ForwardToSomeRoomMessageComposer';
export * from './GetCategoriesWithUserCountMessageComposer';
export * from './GetGuestRoomMessageComposer';
export * from './GetOfficialRoomsMessageComposer';
export * from './GetPopularRoomTagsMessageComposer';
export * from './GetUserEventCatsMessageComposer';
export * from './GetUserFlatCatsMessageComposer';
export * from './GuildBaseSearchMessageComposer';
export * from './MyFavouriteRoomsSearchMessageComposer';
export * from './MyFrequentRoomHistorySearchMessageComposer';
export * from './MyFriendsRoomsSearchMessageComposer';
export * from './MyGuildBasesSearchMessageComposer';
export * from './MyRecommendedRoomsMessageComposer';
export * from './MyRoomHistorySearchMessageComposer';
export * from './MyRoomRightsSearchMessageComposer';
export * from './MyRoomsSearchMessageComposer';
export * from './NavigatorCategoryListModeComposer';
export * from './NavigatorInitComposer';
export * from './NavigatorSearchCloseComposer';
export * from './NavigatorSearchComposer';
export * from './NavigatorSearchOpenComposer';
export * from './NavigatorSearchSaveComposer';
export * from './NavigatorSettingsComposer';
export * from './NavigatorSettingsSaveComposer';
export * from './PopularRoomsSearchMessageComposer';
export * from './RateFlatMessageComposer';
export * from './RemoveOwnRoomRightsRoomMessageComposer';
export * from './RoomAdEventTabAdClickedComposer';
export * from './RoomAdEventTabViewedComposer';
export * from './RoomAdSearchMessageComposer';
export * from './RoomsWhereMyFriendsAreSearchMessageComposer';
export * from './RoomsWithHighestScoreSearchMessageComposer';
export * from './RoomTextSearchMessageComposer';
export * from './SetRoomSessionTagsMessageComposer';
export * from './ToggleStaffPickMessageComposer';
export * from './UpdateHomeRoomMessageComposer';
export * from './UpdateRoomThumbnailMessageComposer';

View File

@ -1,21 +0,0 @@
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
export class RoomLikeRoomComposer implements IMessageComposer<ConstructorParameters<typeof RoomLikeRoomComposer>>
{
private _data: ConstructorParameters<typeof RoomLikeRoomComposer>;
constructor(k: number)
{
this._data = [ k ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -1,21 +0,0 @@
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
export class RoomStaffPickComposer implements IMessageComposer<ConstructorParameters<typeof RoomStaffPickComposer>>
{
private _data: ConstructorParameters<typeof RoomStaffPickComposer>;
constructor(roomId: number)
{
this._data = [ roomId ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -4,8 +4,6 @@ export * from './RoomBanUserComposer';
export * from './RoomDeleteComposer';
export * from './RoomGiveRightsComposer';
export * from './RoomKickUserComposer';
export * from './RoomLikeRoomComposer';
export * from './RoomMuteUserComposer';
export * from './RoomStaffPickComposer';
export * from './RoomTakeRightsComposer';
export * from './RoomUnbanUserComposer';

View File

@ -1,5 +1,4 @@
export * from './RoomBannedUsersComposer';
export * from './RoomInfoComposer';
export * from './RoomSettingsComposer';
export * from './RoomUsersWithRightsComposer';
export * from './SaveRoomSettingsComposer';

View File

@ -6,6 +6,5 @@ export * from './engine';
export * from './furniture';
export * from './layout';
export * from './RedeemItemClothingComposer';
export * from './RoomCreateComposer';
export * from './session';
export * from './unit';

View File

@ -0,0 +1,267 @@
export class SaveableRoomSettingsData
{
private _roomId: number;
private _name: string;
private _description: string;
private _doorMode: number;
private _password: string;
private _categoryId: number;
private _maximumVisitors: number;
private _tags: string[];
private _tradeMode: number;
private _allowPets: boolean;
private _allowFoodConsume: boolean;
private _allowWalkThrough: boolean;
private _allowNavigatorDynCats: boolean;
private _hideWalls: boolean;
private _wallThickness: number;
private _floorThickness: number;
private _whoCanMute: number;
private _whoCanKick: number;
private _whoCanBan: number;
private _chatMode: number;
private _chatBubbleSize: number;
private _chatScrollUpFrequency: number;
private _chatFullHearRange: number;
private _chatFloodSensitivity: number;
public get tradeMode(): number
{
return this._tradeMode;
}
public set tradeMode(mode: number)
{
this._tradeMode = mode;
}
public get allowPets(): boolean
{
return this._allowPets;
}
public set allowPets(flag: boolean)
{
this._allowPets = flag;
}
public get allowFoodConsume(): boolean
{
return this._allowFoodConsume;
}
public set allowFoodConsume(flag: boolean)
{
this._allowFoodConsume = flag;
}
public get allowWalkThrough(): boolean
{
return this._allowWalkThrough;
}
public set allowWalkThrough(flag: boolean)
{
this._allowWalkThrough = flag;
}
public get hideWalls(): boolean
{
return this._hideWalls;
}
public set hideWalls(flag: boolean)
{
this._hideWalls = flag;
}
public get wallThickness(): number
{
return this._wallThickness;
}
public set wallThickness(thickness: number)
{
this._wallThickness = thickness;
}
public get floorThickness(): number
{
return this._floorThickness;
}
public set floorThickness(thickness: number)
{
this._floorThickness = thickness;
}
public get roomId(): number
{
return this._roomId;
}
public set roomId(id: number)
{
this._roomId = id;
}
public get name(): string
{
return this._name;
}
public set name(name: string)
{
this._name = name;
}
public get description(): string
{
return this._description;
}
public set description(description: string)
{
this._description = description;
}
public get doorMode(): number
{
return this._doorMode;
}
public set doorMode(mode: number)
{
this._doorMode = mode;
}
public get password(): string
{
return this._password;
}
public set password(password: string)
{
this._password = password;
}
public get categoryId(): number
{
return this._categoryId;
}
public set categoryId(id: number)
{
this._categoryId = id;
}
public get maximumVisitors(): number
{
return this._maximumVisitors;
}
public set maximumVisitors(max: number)
{
this._maximumVisitors = max;
}
public get tags(): string[]
{
return this._tags;
}
public set tags(tags: string[])
{
this._tags = tags;
}
public get whoCanMute(): number
{
return this._whoCanMute;
}
public set whoCanMute(mute: number)
{
this._whoCanMute = mute;
}
public get whoCanKick(): number
{
return this._whoCanKick;
}
public set whoCanKick(kick: number)
{
this._whoCanKick = kick;
}
public get whoCanBan(): number
{
return this._whoCanBan;
}
public set whoCanBan(ban: number)
{
this._whoCanBan = ban;
}
public get chatMode(): number
{
return this._chatMode;
}
public set chatMode(mode: number)
{
this._chatMode = mode;
}
public get chatBubbleSize(): number
{
return this._chatBubbleSize;
}
public set chatBubbleSize(size: number)
{
this._chatBubbleSize = size;
}
public get chatScrollUpFrequency(): number
{
return this._chatScrollUpFrequency;
}
public set chatScrollUpFrequency(frequency: number)
{
this._chatScrollUpFrequency = frequency;
}
public get chatFullHearRange(): number
{
return this._chatFullHearRange;
}
public set chatFullHearRange(range: number)
{
this._chatFullHearRange = range;
}
public get chatFloodSensitivity(): number
{
return this._chatFloodSensitivity;
}
public set chatFloodSensitivity(sensitivity: number)
{
this._chatFloodSensitivity = sensitivity;
}
public get allowNavigatorDynCats(): boolean
{
return this._allowNavigatorDynCats;
}
public set allowNavigatorDynCats(flag: boolean)
{
this._allowNavigatorDynCats = flag;
}
}

View File

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

View File

@ -1,21 +0,0 @@
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
export class UserHomeRoomComposer implements IMessageComposer<ConstructorParameters<typeof UserHomeRoomComposer>>
{
private _data: ConstructorParameters<typeof UserHomeRoomComposer>;
constructor(roomId: number)
{
this._data = [ roomId ];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}

View File

@ -5,7 +5,6 @@ export * from './IgnoreUserIdComposer';
export * from './UnignoreUserComposer';
export * from './UserCurrentBadgesComposer';
export * from './UserFigureComposer';
export * from './UserHomeRoomComposer';
export * from './UserMottoComposer';
export * from './UserProfileComposer';
export * from './UserRelationshipsComposer';

View File

@ -0,0 +1,36 @@
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
export class CanCreateRoomMessageParser implements IMessageParser
{
public static readonly CREATION_ALLOWED = 0;
public static readonly ROOM_LIMIT_REACHED = 1;
private _resultCode: number;
private _roomLimit: number;
public flush(): boolean
{
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._resultCode = wrapper.readInt();
this._roomLimit = wrapper.readInt();
return true;
}
public get resultCode(): number
{
return this._resultCode;
}
public get roomLimit(): number
{
return this._roomLimit;
}
}

View File

@ -0,0 +1,27 @@
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
import { CategoriesWithVisitorCountData } from './utils/CategoriesWithVisitorCountData';
export class CategoriesWithVisitorCountParser implements IMessageParser
{
private _data:CategoriesWithVisitorCountData;
public flush(): boolean
{
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._data = new CategoriesWithVisitorCountData(wrapper);
return true;
}
public get data():CategoriesWithVisitorCountData
{
return this._data;
}
}

View File

@ -0,0 +1,27 @@
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
import { CompetitionRoomsData } from './utils/CompetitionRoomsData';
export class CompetitionRoomsDataMessageParser implements IMessageParser
{
private _data: CompetitionRoomsData;
public flush(): boolean
{
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._data = new CompetitionRoomsData(wrapper);
return true;
}
public get data():CompetitionRoomsData
{
return this._data;
}
}

View File

@ -0,0 +1,33 @@
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
export class ConvertedRoomIdMessageParser implements IMessageParser
{
private _globalId:string;
private _convertedId:number;
public flush(): boolean
{
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._globalId = wrapper.readString();
this._convertedId = wrapper.readInt();
return true;
}
public get globalId(): string
{
return this._globalId;
}
public get convertedId(): number
{
return this._convertedId;
}
}

View File

@ -1,6 +1,7 @@
import { IMessageDataWrapper, IMessageParser } from '../../../../../../../core';
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
export class RoomDoorbellRejectedParser implements IMessageParser
export class DoorbellMessageParser implements IMessageParser
{
private _userName: string;

View File

@ -0,0 +1,33 @@
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
export class FavouriteChangedMessageParser implements IMessageParser
{
private _flatId:number;
private _added:boolean;
public flush(): boolean
{
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._flatId = wrapper.readInt();
this._added = wrapper.readBoolean();
return true;
}
public get flatId():number
{
return this._flatId;
}
public get added():boolean
{
return this._added;
}
}

View File

@ -0,0 +1,40 @@
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
export class FavouritesMessageParser implements IMessageParser
{
private _limit:number;
private _favouriteRoomIds:number[];
public flush(): boolean
{
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._favouriteRoomIds = [];
this._limit = wrapper.readInt();
const count = wrapper.readInt();
for(let i = 0; i < count; i++)
{
this._favouriteRoomIds.push(wrapper.readInt());
}
return true;
}
public get limit(): number
{
return this._limit;
}
public get favoriteRoomIds(): number[]
{
return this._favouriteRoomIds;
}
}

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