import { RoomLayout } from "../types/room-layout" ; import { circleRoomLayout } from "./layouts/circle_room" ; import { classRoomLayout } from "./layouts/classroom" ; import { iLineRoomLayout } from "./layouts/iline_room" ; import { mazeRoomLayout } from "./layouts/maze_room" ; import { oneSeatRoomLayout } from "./layouts/one_seat_room" ; import { SimpleRoomLayout } from "./layouts/simple_room" ; import { ver2RoomLayout } from "./layouts/ver2" ; type RoomsConfig = { roomLayouts : RoomLayout [ ] ; } ; export const basicRooms = { roomLayouts : [ circleRoomLayout , mazeRoomLayout , iLineRoomLayout ] } ; export const temporaryRooms = { roomLayouts : [ classRoomLayout , SimpleRoomLayout ] } ; export const numSeatsInAllBasicRooms = ( ) : number => { let numSeatsBasicRooms = 0 ; for ( const r of basicRooms . roomLayouts ) { numSeatsBasicRooms += r . seats . length ; } return numSeatsBasicRooms ; } ;