2022-11-04 19:30:11 +00:00

26 lines
482 B
Go

package main
import (
"time"
)
type State int
const (
CoreZombie State = iota + 1
Zombie
InfectedHuman
Human
Dead
)
type Player struct {
id int `json:"id"`
name string `json:"name"`
state State `json:"state"`
pin string `json:"pin"`
infection_time time.Time `json:"infection_time"`
kills int `json:"kills"`
last_kill time.Time `json:"last_kill"`
}