mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-22 23:50:52 +01:00
Update room session
This commit is contained in:
parent
1e6252b6ab
commit
ec85047bd3
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user