40 lines
1.6 KiB
Go
40 lines
1.6 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 GameVenturegiftsLvawardData struct {
|
|
Lvkey int32
|
|
Lvcondition int32
|
|
Reward *Gameatn
|
|
}
|
|
|
|
const TypeId_GameVenturegiftsLvawardData = -1344499535
|
|
|
|
func (*GameVenturegiftsLvawardData) GetTypeId() int32 {
|
|
return -1344499535
|
|
}
|
|
|
|
func (_v *GameVenturegiftsLvawardData)Deserialize(_buf map[string]interface{}) (err error) {
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lvkey"].(float64); !_ok_ { err = errors.New("lvkey error"); return }; _v.Lvkey = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lvcondition"].(float64); !_ok_ { err = errors.New("lvcondition error"); return }; _v.Lvcondition = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["reward"].(map[string]interface{}); !_ok_ { err = errors.New("reward error"); return }; if _v.Reward, err = DeserializeGameatn(_x_); err != nil { return } }
|
|
return
|
|
}
|
|
|
|
func DeserializeGameVenturegiftsLvawardData(_buf map[string]interface{}) (*GameVenturegiftsLvawardData, error) {
|
|
v := &GameVenturegiftsLvawardData{}
|
|
if err := v.Deserialize(_buf); err == nil {
|
|
return v, nil
|
|
} else {
|
|
return nil, err
|
|
}
|
|
}
|