Refactor game-specific models into separate package.

This commit is contained in:
Patrick Fairbank
2017-08-05 20:48:17 -07:00
parent 0a783b3701
commit 299c601e8f
41 changed files with 805 additions and 726 deletions

7
api.go
View File

@@ -7,14 +7,15 @@ package main
import (
"encoding/json"
"github.com/Team254/cheesy-arena/game"
"github.com/gorilla/mux"
"net/http"
)
type MatchResultWithSummary struct {
MatchResult
RedSummary *ScoreSummary
BlueSummary *ScoreSummary
RedSummary *game.ScoreSummary
BlueSummary *game.ScoreSummary
}
type MatchWithResult struct {
@@ -23,7 +24,7 @@ type MatchWithResult struct {
}
type RankingWithNickname struct {
Ranking
game.Ranking
Nickname string
}