//------------------------------------------------------------------------------ // // 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 GameDispatch_AllData struct { Id int32 Quantity float32 } const TypeId_GameDispatch_AllData = 1167514754 func (*GameDispatch_AllData) GetTypeId() int32 { return 1167514754 } func (_v *GameDispatch_AllData)Deserialize(_buf map[string]interface{}) (err error) { { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["quantity"].(float64); !_ok_ { err = errors.New("quantity error"); return }; _v.Quantity = float32(_tempNum_) } return } func DeserializeGameDispatch_AllData(_buf map[string]interface{}) (*GameDispatch_AllData, error) { v := &GameDispatch_AllData{} if err := v.Deserialize(_buf); err == nil { return v, nil } else { return nil, err } }