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;
togglePetBreeding(id: number): void;
togglePetRiding(id: number): void;
useMultistateItem(id: number): void;
connection: IConnection;
userDataManager: UserDataManager;
roomId: number;

View File

@ -1,6 +1,6 @@
import { Disposable } from '../../core/common/disposable/Disposable';
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 { RoomEnterComposer } from '../communication/messages/outgoing/room/access/RoomEnterComposer';
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));
}
public useMultistateItem(id: number): void
{
this._connection.send(new FurnitureMultiStateComposer(id));
}
public get connection(): IConnection
{
return this._connection;