From 072876bbf0becda9061e4276f5e909da8b467f6d Mon Sep 17 00:00:00 2001 From: fiore Date: Tue, 25 Mar 2025 09:19:30 +0900 Subject: [PATCH] =?UTF-8?q?DO-49=20=EB=A7=A4=EC=B9=98=20=EB=A9=94=EC=9D=B4?= =?UTF-8?q?=ED=82=B9=20=EC=8B=9C=20=EB=8B=89=EB=84=A4=EC=9E=84=20=EA=B5=90?= =?UTF-8?q?=ED=99=98=ED=86=A0=EB=A1=9D=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- socket/models/Room.js | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 socket/models/Room.js diff --git a/socket/models/Room.js b/socket/models/Room.js deleted file mode 100644 index 6fb34cf..0000000 --- a/socket/models/Room.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 게임 방 클래스 - */ -class Room { - /** - * 새로운 방 객체 생성 - * @param {string} roomId - 방 고유 ID - * @param {string} hostId - 방장 소켓 ID - * @param {number} rating - 방장의 급수 (1-18) - */ - constructor(roomId, hostId, rating) { - this.roomId = roomId; - this.hostId = hostId; - this.rating = rating; - this.createdAt = new Date(); - } - - /** - * 해당 방의 정보를 객체로 반환 - * @returns {Object} 방 정보 객체 - */ - toJSON() { - return { - roomId: this.roomId, - hostId: this.hostId, - rating: this.rating, - createdAt: this.createdAt - }; - } -} - -module.exports = Room; \ No newline at end of file