//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ package cfg import "errors" type GameHeroStarupSpData struct { Id string Star int32 Starid string } const TypeId_GameHeroStarupSpData = -2086652406 func (*GameHeroStarupSpData) GetTypeId() int32 { return -2086652406 } func (_v *GameHeroStarupSpData)Deserialize(_buf map[string]interface{}) (err error) { { var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) } { var _ok_ bool; if _v.Starid, _ok_ = _buf["starid"].(string); !_ok_ { err = errors.New("starid error"); return } } return } func DeserializeGameHeroStarupSpData(_buf map[string]interface{}) (*GameHeroStarupSpData, error) { v := &GameHeroStarupSpData{} if err := v.Deserialize(_buf); err == nil { return v, nil } else { return nil, err } }