From 6523fd0bea74962d3ab9c4891d3d5a9b136408b0 Mon Sep 17 00:00:00 2001 From: HyunJaeyeon Date: Sun, 1 Dec 2024 03:19:35 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20#106-GameData=EC=97=90=20isHost=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PepperoniV2/Data/GameData.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PepperoniV2/Data/GameData.swift b/PepperoniV2/Data/GameData.swift index 811fb6e..50fbff1 100644 --- a/PepperoniV2/Data/GameData.swift +++ b/PepperoniV2/Data/GameData.swift @@ -12,10 +12,11 @@ struct Player: Identifiable { var nickname: String = "" var turn: Int var score: Int = 0 + var isHost = false } @Observable class GameData { var selectedAnime: Anime? var selectedQuote: AnimeQuote? - var players: [Player] = [Player(turn: 1), Player(turn: 2)] + var players: [Player] = [Player(turn: 1, isHost: true), Player(turn: 2)] }