mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-10 14:16:47 -04:00
23 lines
568 B
Go
23 lines
568 B
Go
// Copyright 2017 Team 254. All Rights Reserved.
|
|
// Author: pat@patfairbank.com (Patrick Fairbank)
|
|
//
|
|
// Model representing the current state of the score during a match.
|
|
|
|
package field
|
|
|
|
import "github.com/Team254/cheesy-arena/game"
|
|
|
|
type RealtimeScore struct {
|
|
CurrentScore *game.Score
|
|
Cards map[string]string
|
|
TeleopCommitted bool
|
|
FoulsCommitted bool
|
|
}
|
|
|
|
func NewRealtimeScore() *RealtimeScore {
|
|
realtimeScore := new(RealtimeScore)
|
|
realtimeScore.CurrentScore = new(game.Score)
|
|
realtimeScore.Cards = make(map[string]string)
|
|
return realtimeScore
|
|
}
|