go_dreamfactory/sys/configure/structs/Game.ItemBoxData.go
2022-10-25 19:27:45 +08:00

38 lines
1.1 KiB
Go

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type GameItemBoxData struct {
Heroid string
Itemid string
}
const TypeId_GameItemBoxData = -1971148410
func (*GameItemBoxData) GetTypeId() int32 {
return -1971148410
}
func (_v *GameItemBoxData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; if _v.Heroid, _ok_ = _buf["heroid"].(string); !_ok_ { err = errors.New("heroid error"); return } }
{ var _ok_ bool; if _v.Itemid, _ok_ = _buf["itemid"].(string); !_ok_ { err = errors.New("itemid error"); return } }
return
}
func DeserializeGameItemBoxData(_buf map[string]interface{}) (*GameItemBoxData, error) {
v := &GameItemBoxData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}