1- import { Component , DestroyRef , Inject , OnInit , signal } from '@angular/core' ;
1+ import { Component , DestroyRef , OnInit } from '@angular/core' ;
22import { Dialog } from '@angular/cdk/dialog' ;
3- import { ActivatedRoute , Router } from '@angular/router' ;
3+ import { ActivatedRoute } from '@angular/router' ;
44import { takeUntilDestroyed } from '@angular/core/rxjs-interop' ;
5- import { Observable } from 'rxjs' ;
65
76import { Room , RoomState } from '@apex/api/shared' ;
8- import {
9- FloorMaterial as ScutiFloorMaterial ,
10- Room as ScutiRoom ,
11- WallMaterial as ScutiWallMaterial ,
12- } from '@apex/scuti-renderer' ;
13-
147import { JoinRoomOptions } from '@apex/api/server' ;
158import { RoomChatMessageEvent } from '@apex/api/client' ;
9+ // import {
10+ // FloorMaterial as ScutiFloorMaterial,
11+ // Room as ScutiRoom,
12+ // WallMaterial as ScutiWallMaterial,
13+ // } from '@apex/scuti-renderer';
1614
1715import { AppComponent } from '../app.component' ;
1816import { RoomService } from './room.service' ;
@@ -26,7 +24,7 @@ import { RoomController } from './room.controller';
2624 templateUrl : './room.component.html' ,
2725} )
2826export class RoomComponent implements OnInit {
29- scutiRoom ?: ScutiRoom ;
27+ // scutiRoom?: ScutiRoom;
3028
3129 constructor (
3230 private readonly app : AppComponent ,
@@ -39,18 +37,18 @@ export class RoomComponent implements OnInit {
3937 ) { }
4038
4139 private render ( room : Room ) {
42- this . scutiRoom = new ScutiRoom ( {
43- heightMap : room . map ,
44- dragging : true ,
45- centerCamera : true ,
46- floorMaterial : new ScutiFloorMaterial ( 101 ) ,
47- floorThickness : 8 ,
48- wallMaterial : new ScutiWallMaterial ( 108 ) ,
49- wallThickness : 8 ,
50- wallHeight : - 1 ,
51- } ) ;
52-
53- this . app . renderer . add ( this . scutiRoom ) ;
40+ // this.scutiRoom = new ScutiRoom({
41+ // heightMap: room.map,
42+ // dragging: true,
43+ // centerCamera: true,
44+ // floorMaterial: new ScutiFloorMaterial(101),
45+ // floorThickness: 8,
46+ // wallMaterial: new ScutiWallMaterial(108),
47+ // wallThickness: 8,
48+ // wallHeight: -1,
49+ // });
50+ //
51+ // this.app.renderer.add(this.scutiRoom);
5452 }
5553
5654 private async join ( id : Room [ 'id' ] , options ?: JoinRoomOptions ) : Promise < Room > {
@@ -67,7 +65,9 @@ export class RoomComponent implements OnInit {
6765 if ( ! this . service . isOwner ( this . user . me , room ) ) {
6866 // room.users.length === room.capacity
6967 if ( room . state === RoomState . FULL ) {
68+ /* eslint-disable no-empty */
7069 } else if ( room . state === RoomState . LOCKED ) {
70+ /* eslint-disable no-empty */
7171 } else if ( room . state === RoomState . PASSWORD_PROTECTED ) {
7272 const dialogRef = this . dialog . open (
7373 PasswordProtectedRoomDialogComponent ,
0 commit comments