//------------------------------------------------------------------------------ // // 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 GameEffectData struct { Key string Path string } const TypeId_GameEffectData = -1242838953 func (*GameEffectData) GetTypeId() int32 { return -1242838953 } func (_v *GameEffectData)Deserialize(_buf map[string]interface{}) (err error) { { var _ok_ bool; if _v.Key, _ok_ = _buf["key"].(string); !_ok_ { err = errors.New("key error"); return } } { var _ok_ bool; if _v.Path, _ok_ = _buf["path"].(string); !_ok_ { err = errors.New("path error"); return } } return } func DeserializeGameEffectData(_buf map[string]interface{}) (*GameEffectData, error) { v := &GameEffectData{} if err := v.Deserialize(_buf); err == nil { return v, nil } else { return nil, err } }