You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
327 B
15 lines
327 B
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(),
|
|
}
|
|
}
|
|
|