Fix: buildable

This commit is contained in:
Grail Finder
2025-07-02 15:51:14 +03:00
parent 9973546aad
commit 3e0d24f5f8
7 changed files with 110 additions and 105 deletions

View File

@ -378,7 +378,7 @@ type WordCard struct {
Word string `json:"word" db:"word"`
Color WordColor `json:"color" db:"color"`
Revealed bool `json:"revealed" db:"revealed"`
MimeView bool `json:"mime_view" db:"mime_view"` // user who sees that card is mime
Mime bool `json:"mime" db:"mime"` // user who sees that card is mime
Mark []CardMark `json:"marks" db:"-"`
}
@ -402,13 +402,16 @@ type RoomReq struct {
func (rr *RoomReq) CreateRoom(creator string) *Room {
roomID := xid.New().String()
settings := GameSettings{
Language: rr.Language,
RoundTime: rr.RoundTime,
RoomPass: rr.RoomPass,
}
return &Room{
ID: roomID,
CreatedAt: time.Now(),
CreatorName: creator,
Language: rr.Language,
RoundTime: rr.RoundTime,
RoomPass: rr.RoomPass,
Settings: settings,
BotMap: make(map[string]BotPlayer),
}
}