mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-19 06:46:28 +01:00
RoomEngine add setSelectedAvatar
This commit is contained in:
parent
27b64a1c0a
commit
affb98c8a8
@ -75,6 +75,7 @@ export interface IRoomEngine extends INitroManager
|
||||
getRoomObjectImage(roomId: number, objectId: number, category: number, direction: IVector3D, scale: number, listener: IGetImageListener, bgColor?: number): ImageResult;
|
||||
getRoomObjectPetImage(typeId: number, paletteId: number, color: number, direction: IVector3D, scale: number, listener: IGetImageListener, headOnly?: boolean, bgColor?: number, customParts?: PetCustomPart[], posture?: string): ImageResult;
|
||||
selectRoomObject(roomId: number, objectId: number, objectCategory: number): void;
|
||||
setSelectedAvatar(roomId: number, objectId: number): void;
|
||||
cancelRoomObjectInsert(): void;
|
||||
getPetColorResult(petIndex: number, paletteIndex: number): PetColorResult;
|
||||
getPetColorResultsForTag(petIndex: number, tagName: string): PetColorResult[];
|
||||
|
@ -2720,6 +2720,13 @@ export class RoomEngine extends NitroManager implements IRoomEngine, IRoomCreato
|
||||
this._roomObjectEventHandler.setSelectedObject(roomId, objectId, objectCategory);
|
||||
}
|
||||
|
||||
public setSelectedAvatar(roomId: number, objectId: number): void
|
||||
{
|
||||
if(this._roomObjectEventHandler) return;
|
||||
|
||||
this._roomObjectEventHandler.setSelectedAvatar(roomId, objectId, true);
|
||||
}
|
||||
|
||||
public cancelRoomObjectInsert(): void
|
||||
{
|
||||
if(!this._roomObjectEventHandler) return;
|
||||
|
Loading…
Reference in New Issue
Block a user