Skip to content

Commit

Permalink
feat: #106-GameData에 isHost 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunJaeyeon committed Nov 30, 2024
1 parent 4ba0eb0 commit 6523fd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PepperoniV2/Data/GameData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
}

0 comments on commit 6523fd0

Please sign in to comment.