Merge branch 'composer-peer-users-classification' of https://github.com/oobjectt/nitro-renderer into oobjectt-composer-peer-users-classification

This commit is contained in:
dank074 2023-01-12 01:21:46 -06:00
commit 49a828d389
7 changed files with 35 additions and 2 deletions

View File

@ -31,6 +31,7 @@ export interface IRoomSession extends IDisposable
sendPollStartMessage(pollId: number): void; sendPollStartMessage(pollId: number): void;
sendPollRejectMessage(pollId: number): void; sendPollRejectMessage(pollId: number): void;
sendPollAnswerMessage(pollId: number, questionId: number, answers: string[]): void; sendPollAnswerMessage(pollId: number, questionId: number, answers: string[]): void;
sendPeerUsersClassificationMessage(userClassType: string): void;
updateMoodlightData(id: number, effectId: number, color: number, brightness: number, apply: boolean): void; updateMoodlightData(id: number, effectId: number, color: number, brightness: number, apply: boolean): void;
toggleMoodlightState(): void; toggleMoodlightState(): void;
pickupPet(id: number): void; pickupPet(id: number): void;

File diff suppressed because one or more lines are too long

View File

@ -260,6 +260,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 PEER_USERS_CLASSIFICATION = 1160;
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;

View File

@ -70,3 +70,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';

View File

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

View File

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

View File

@ -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, ChangeQueueMessageComposer, CompostPlantMessageComposer, FurnitureMultiStateComposer, GetPetCommandsComposer, HarvestPetMessageComposer, MoodlightSettingsComposer, MoodlightSettingsSaveComposer, MoodlightTogggleStateComposer, OpenPetPackageMessageComposer, 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, SetClothingChangeDataMessageComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer, UserMottoComposer } from '../communication'; import { BotRemoveComposer, ChangeQueueMessageComposer, CompostPlantMessageComposer, FurnitureMultiStateComposer, GetPetCommandsComposer, HarvestPetMessageComposer, MoodlightSettingsComposer, MoodlightSettingsSaveComposer, MoodlightTogggleStateComposer, OpenPetPackageMessageComposer, OpenPresentComposer, PeerUsersClassificationMessageComposer, PetMountComposer, PetRemoveComposer, PollAnswerComposer, PollRejectComposer, PollStartComposer, RemovePetSaddleComposer, RoomAmbassadorAlertComposer, RoomBanUserComposer, RoomDoorbellAccessComposer, RoomEnterComposer, RoomGiveRightsComposer, RoomKickUserComposer, RoomModerationSettings, RoomMuteUserComposer, RoomTakeRightsComposer, RoomUnitActionComposer, RoomUnitChatComposer, RoomUnitChatShoutComposer, RoomUnitChatWhisperComposer, RoomUnitDanceComposer, RoomUnitPostureComposer, RoomUnitSignComposer, RoomUnitTypingStartComposer, RoomUnitTypingStopComposer, SetClothingChangeDataMessageComposer, 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 sendPeerUsersClassificationMessage(userClassType: string): void
{
this._connection.send(new PeerUsersClassificationMessageComposer(userClassType));
}
public sendOpenPetPackageMessage(objectId: number, petName: string): void public sendOpenPetPackageMessage(objectId: number, petName: string): void
{ {
this._connection.send(new OpenPetPackageMessageComposer(objectId, petName)); this._connection.send(new OpenPetPackageMessageComposer(objectId, petName));