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
394 B
15 lines
394 B
3 years ago
|
package state
|
||
|
|
||
|
// UserData contains data about clients that is synced between client and server.
|
||
|
// Unlike the map, UserData is not persisted to disk, and all UserData is lost on shutdown.
|
||
|
type UserData struct {
|
||
|
ActiveColor HexColor `json:"active_color"`
|
||
|
}
|
||
|
|
||
|
// Copy creates a deep copy of this UserData.
|
||
|
func (u UserData) Copy() UserData {
|
||
|
return UserData{
|
||
|
ActiveColor: u.ActiveColor,
|
||
|
}
|
||
|
}
|