mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-27 01:40: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;
|
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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user