🆙 added Backgrounds to the renderer

This commit is contained in:
duckietm
2025-05-20 14:16:05 +02:00
parent e0c0c06c99
commit 7c40e69c75
10 changed files with 157 additions and 3 deletions
+21
View File
@@ -1808,6 +1808,27 @@ export class RoomEngine implements IRoomEngine, IRoomCreator, IRoomEngineService
return true;
}
public getFurniLocation(roomId: number, objectId: number, isWallItem: boolean): string
{
return isWallItem
? this.getRoomObjectWall(roomId, objectId).getLocation().toString()
: this.getRoomObjectFloor(roomId, objectId).getLocation().toString();
}
public getFurniDirection(roomId: number, objectId: number, isWallItem: boolean): string
{
return isWallItem
? this.getRoomObjectWall(roomId, objectId).getDirection().toString()
: this.getRoomObjectFloor(roomId, objectId).getDirection().toString();
}
public getFurniState(roomId: number, objectId: number, isWallItem: boolean): number
{
return isWallItem
? this.getRoomObjectWall(roomId, objectId).getState()
: this.getRoomObjectFloor(roomId, objectId).getState();
}
public addRoomObjectUser(roomId: number, objectId: number, location: IVector3D, direction: IVector3D, headDirection: number, type: number, figure: string): boolean
{