Fix: buildable
This commit is contained in:
		| @@ -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), | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder