Fix: timers and styles
This commit is contained in:
@ -410,14 +410,22 @@ func (r *Room) RevealSpecificWord(word string) uint32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (r *Room) SetGameOverToCards(isover bool) {
|
||||
for i := range r.Cards {
|
||||
r.Cards[i].IsOver = isover
|
||||
}
|
||||
}
|
||||
|
||||
type WordCard struct {
|
||||
ID uint32 `json:"id" db:"id"`
|
||||
RoomID string `json:"room_id" db:"room_id"`
|
||||
Word string `json:"word" db:"word"`
|
||||
Color WordColor `json:"color" db:"color"`
|
||||
Revealed bool `json:"revealed" db:"revealed"`
|
||||
Mime bool `json:"mime" db:"mime_view"` // user who sees that card is mime
|
||||
Marks []CardMark `json:"marks" db:"-"`
|
||||
ID uint32 `json:"id" db:"id"`
|
||||
RoomID string `json:"room_id" db:"room_id"`
|
||||
Word string `json:"word" db:"word"`
|
||||
Color WordColor `json:"color" db:"color"`
|
||||
Revealed bool `json:"revealed" db:"revealed"`
|
||||
// pain; but at the end of the game players should see color of unopen cards
|
||||
IsOver bool
|
||||
Mime bool `json:"mime" db:"mime_view"` // user who sees that card is mime
|
||||
Marks []CardMark `json:"marks" db:"-"`
|
||||
}
|
||||
|
||||
// table: settings
|
||||
|
Reference in New Issue
Block a user