package state // Synced contains all state that is synced between the server and its clients. type Synced struct { Map HexMap `json:"map"` User UserData `json:"user"` } // Copy creates a deep copy of this Synced instance. func (s Synced) Copy() Synced { return Synced{ Map: s.Map.Copy(), User: s.User.Copy(), } }