func (sr Server) LoadState(key int64, sta *game.State) (err error) { da := new(game.StateData) if err = sr.LoadSD(key, da); err == nil { sta.FromData(da) } return }
func (sr Server) SaveState(sta *game.State) (key int64, err error) { return sr.SaveSD(sta.Data()) }