add start/reset

This commit is contained in:
shoopea
2021-12-04 12:49:20 +08:00
parent 044eac9a77
commit 00d4b8667f
3 changed files with 202 additions and 22 deletions

View File

@@ -30,6 +30,7 @@ type GameConfig struct {
StartingAllotment time.Duration `json:"starting_allotment"`
Threshold time.Duration `json:"threshold"`
StartDate time.Time `json:"start_date"`
Started bool `json:"started"`
}
type ClientConfig struct {
@@ -39,6 +40,7 @@ type ClientConfig struct {
Online bool `json:"online"`
TimeLeft time.Duration `json:"time_left"`
CompanyID uint8 `json:"company_id`
Ready bool `json:"ready"`
}
type Config struct {