mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
#29 - RoomUsersClassificationMessageComposer added
This commit is contained in:
parent
e70d9cc804
commit
c0f84d274d
File diff suppressed because one or more lines are too long
@ -249,6 +249,7 @@ export class OutgoingHeader
|
|||||||
public static GET_WARDROBE = 2742;
|
public static GET_WARDROBE = 2742;
|
||||||
public static SAVE_WARDROBE_OUTFIT = 800;
|
public static SAVE_WARDROBE_OUTFIT = 800;
|
||||||
public static USER_TAGS = 17;
|
public static USER_TAGS = 17;
|
||||||
|
public static USER_CLASSIFICATION = 2285;
|
||||||
public static VISIT_USER = 2970;
|
public static VISIT_USER = 2970;
|
||||||
public static WIRED_ACTION_SAVE = 2281;
|
public static WIRED_ACTION_SAVE = 2281;
|
||||||
public static WIRED_APPLY_SNAPSHOT = 3373;
|
public static WIRED_APPLY_SNAPSHOT = 3373;
|
||||||
|
@ -66,3 +66,4 @@ export * from './user/inventory';
|
|||||||
export * from './user/inventory/currency';
|
export * from './user/inventory/currency';
|
||||||
export * from './user/inventory/subscription';
|
export * from './user/inventory/subscription';
|
||||||
export * from './user/settings';
|
export * from './user/settings';
|
||||||
|
export * from './userclassification';
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../api';
|
||||||
|
|
||||||
|
export class RoomUsersClassificationMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomUsersClassificationMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RoomUsersClassificationMessageComposer>;
|
||||||
|
|
||||||
|
constructor(userClassType: string)
|
||||||
|
{
|
||||||
|
this._data = [userClassType];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
export * from './RoomUsersClassificationMessageComposer';
|
@ -1,7 +1,7 @@
|
|||||||
import { IConnection, IRoomSession, RoomControllerLevel, RoomTradingLevelEnum } from '../../api';
|
import { IConnection, IRoomSession, RoomControllerLevel, RoomTradingLevelEnum } from '../../api';
|
||||||
import { Disposable } from '../../core';
|
import { Disposable } from '../../core';
|
||||||
import { RoomSessionEvent } from '../../events';
|
import { RoomSessionEvent } from '../../events';
|
||||||
import { BotRemoveComposer, CompostPlantMessageComposer, FurnitureMultiStateComposer, GetPetCommandsComposer, HarvestPetMessageComposer, MoodlightSettingsComposer, MoodlightSettingsSaveComposer, MoodlightTogggleStateComposer, OpenPresentComposer, PetMountComposer, PetRemoveComposer, PollAnswerComposer, PollRejectComposer, PollStartComposer, RemovePetSaddleComposer, RoomAmbassadorAlertComposer, RoomBanUserComposer, RoomDoorbellAccessComposer, RoomEnterComposer, RoomGiveRightsComposer, RoomKickUserComposer, RoomModerationSettings, RoomMuteUserComposer, RoomTakeRightsComposer, RoomUnitActionComposer, RoomUnitChatComposer, RoomUnitChatShoutComposer, RoomUnitChatWhisperComposer, RoomUnitDanceComposer, RoomUnitPostureComposer, RoomUnitSignComposer, RoomUnitTypingStartComposer, RoomUnitTypingStopComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer, UserMottoComposer } from '../communication';
|
import { BotRemoveComposer, CompostPlantMessageComposer, FurnitureMultiStateComposer, GetPetCommandsComposer, HarvestPetMessageComposer, MoodlightSettingsComposer, MoodlightSettingsSaveComposer, MoodlightTogggleStateComposer, OpenPresentComposer, PetMountComposer, PetRemoveComposer, PollAnswerComposer, PollRejectComposer, PollStartComposer, RemovePetSaddleComposer, RoomAmbassadorAlertComposer, RoomBanUserComposer, RoomDoorbellAccessComposer, RoomEnterComposer, RoomGiveRightsComposer, RoomKickUserComposer, RoomModerationSettings, RoomMuteUserComposer, RoomTakeRightsComposer, RoomUnitActionComposer, RoomUnitChatComposer, RoomUnitChatShoutComposer, RoomUnitChatWhisperComposer, RoomUnitDanceComposer, RoomUnitPostureComposer, RoomUnitSignComposer, RoomUnitTypingStartComposer, RoomUnitTypingStopComposer, RoomUsersClassificationMessageComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer, UserMottoComposer } from '../communication';
|
||||||
import { UserDataManager } from './UserDataManager';
|
import { UserDataManager } from './UserDataManager';
|
||||||
|
|
||||||
export class RoomSession extends Disposable implements IRoomSession
|
export class RoomSession extends Disposable implements IRoomSession
|
||||||
@ -212,6 +212,11 @@ export class RoomSession extends Disposable implements IRoomSession
|
|||||||
this._connection.send(new PollAnswerComposer(pollId, questionId, answers));
|
this._connection.send(new PollAnswerComposer(pollId, questionId, answers));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public sendRoomUsersClassificationMessage(userClassType: string): void
|
||||||
|
{
|
||||||
|
this._connection.send(new RoomUsersClassificationMessageComposer(userClassType));
|
||||||
|
}
|
||||||
|
|
||||||
public updateMoodlightData(id: number, effectId: number, color: number, brightness: number, apply: boolean): void
|
public updateMoodlightData(id: number, effectId: number, color: number, brightness: number, apply: boolean): void
|
||||||
{
|
{
|
||||||
let colorString = '000000' + color.toString(16).toUpperCase();
|
let colorString = '000000' + color.toString(16).toUpperCase();
|
||||||
|
Loading…
Reference in New Issue
Block a user