mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Updated data models and associated code and tests for 2017.
This commit is contained in:
14
match.go
14
match.go
@@ -34,22 +34,8 @@ type Match struct {
|
||||
Status string
|
||||
StartedAt time.Time
|
||||
Winner string
|
||||
RedDefense1 string
|
||||
RedDefense2 string
|
||||
RedDefense3 string
|
||||
RedDefense4 string
|
||||
RedDefense5 string
|
||||
BlueDefense1 string
|
||||
BlueDefense2 string
|
||||
BlueDefense3 string
|
||||
BlueDefense4 string
|
||||
BlueDefense5 string
|
||||
}
|
||||
|
||||
var placeableDefenses = []string{"CDF", "M", "R", "RW", "RT"}
|
||||
var defenseNames = map[string]string{"LB": "Low Bar", "CDF": "Cheval de Frise", "M": "Moat",
|
||||
"R": "Ramparts", "RW": "Rock Wall", "RT": "Rough Terrain"}
|
||||
|
||||
func (database *Database) CreateMatch(match *Match) error {
|
||||
return database.matchMap.Insert(match)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user