Feat: switch team; team model
This commit is contained in:
@ -31,19 +31,26 @@ func StrToWordColor(s string) WordColor {
|
||||
}
|
||||
}
|
||||
|
||||
type Team struct {
|
||||
Guessers []string
|
||||
Mime string
|
||||
}
|
||||
|
||||
type Room struct {
|
||||
ID string `json:"id" db:"id"`
|
||||
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
||||
// RoomName string `json:"room_name"`
|
||||
RoomPass string `json:"room_pass"`
|
||||
RoomLink string
|
||||
CreatorName string `json:"creator_name"`
|
||||
PlayerList []string `json:"player_list"`
|
||||
TeamTurn string
|
||||
RedMime string
|
||||
BlueMime string
|
||||
RedGuessers []string
|
||||
BlueGuessers []string
|
||||
RoomPass string `json:"room_pass"`
|
||||
RoomLink string
|
||||
CreatorName string `json:"creator_name"`
|
||||
PlayerList []string `json:"player_list"`
|
||||
TeamTurn string
|
||||
RedTeam Team
|
||||
BlueTeam Team
|
||||
// RedMime string
|
||||
// BlueMime string
|
||||
// RedGuessers []string
|
||||
// BlueGuessers []string
|
||||
Cards []WordCard
|
||||
GameSettings *GameSettings `json:"settings"`
|
||||
Result uint8 // 0 for unknown; 1 is win for red; 2 if for blue;
|
||||
|
Reference in New Issue
Block a user