Update room session

This commit is contained in:
Bill 2021-07-12 00:17:47 -04:00
parent 1e6252b6ab
commit ec85047bd3
2 changed files with 7 additions and 1 deletions

View File

@ -39,6 +39,7 @@ export interface IRoomSession extends IDisposable
removePetSaddle(id: number): void; removePetSaddle(id: number): void;
togglePetBreeding(id: number): void; togglePetBreeding(id: number): void;
togglePetRiding(id: number): void; togglePetRiding(id: number): void;
useMultistateItem(id: number): void;
connection: IConnection; connection: IConnection;
userDataManager: UserDataManager; userDataManager: UserDataManager;
roomId: number; roomId: number;

View File

@ -1,6 +1,6 @@
import { Disposable } from '../../core/common/disposable/Disposable'; import { Disposable } from '../../core/common/disposable/Disposable';
import { IConnection } from '../../core/communication/connections/IConnection'; import { IConnection } from '../../core/communication/connections/IConnection';
import { PetMountComposer, RemovePetSaddleComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer } from '../communication'; import { FurnitureMultiStateComposer, PetMountComposer, RemovePetSaddleComposer, TogglePetBreedingComposer, TogglePetRidingComposer, UsePetProductComposer } from '../communication';
import { RoomDoorbellAccessComposer } from '../communication/messages/outgoing/room/access/RoomDoorbellAccessComposer'; import { RoomDoorbellAccessComposer } from '../communication/messages/outgoing/room/access/RoomDoorbellAccessComposer';
import { RoomEnterComposer } from '../communication/messages/outgoing/room/access/RoomEnterComposer'; import { RoomEnterComposer } from '../communication/messages/outgoing/room/access/RoomEnterComposer';
import { RoomAmbassadorAlertComposer } from '../communication/messages/outgoing/room/action/RoomAmbassadorAlertComposer'; import { RoomAmbassadorAlertComposer } from '../communication/messages/outgoing/room/action/RoomAmbassadorAlertComposer';
@ -293,6 +293,11 @@ export class RoomSession extends Disposable implements IRoomSession
this._connection.send(new TogglePetRidingComposer(id)); this._connection.send(new TogglePetRidingComposer(id));
} }
public useMultistateItem(id: number): void
{
this._connection.send(new FurnitureMultiStateComposer(id));
}
public get connection(): IConnection public get connection(): IConnection
{ {
return this._connection; return this._connection;