46 lines
2.0 KiB
Go
46 lines
2.0 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 GameDreamlandBoosData struct {
|
|
Bossid string
|
|
Pro int32
|
|
Fightnum int32
|
|
Challengenum int32
|
|
Prize int32
|
|
Monsterformatid int32
|
|
}
|
|
|
|
const TypeId_GameDreamlandBoosData = -1451313715
|
|
|
|
func (*GameDreamlandBoosData) GetTypeId() int32 {
|
|
return -1451313715
|
|
}
|
|
|
|
func (_v *GameDreamlandBoosData)Deserialize(_buf map[string]interface{}) (err error) {
|
|
{ var _ok_ bool; if _v.Bossid, _ok_ = _buf["bossid"].(string); !_ok_ { err = errors.New("bossid error"); return } }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pro"].(float64); !_ok_ { err = errors.New("pro error"); return }; _v.Pro = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["fightnum"].(float64); !_ok_ { err = errors.New("fightnum error"); return }; _v.Fightnum = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["challengenum"].(float64); !_ok_ { err = errors.New("challengenum error"); return }; _v.Challengenum = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["prize"].(float64); !_ok_ { err = errors.New("prize error"); return }; _v.Prize = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["monsterformatid"].(float64); !_ok_ { err = errors.New("monsterformatid error"); return }; _v.Monsterformatid = int32(_tempNum_) }
|
|
return
|
|
}
|
|
|
|
func DeserializeGameDreamlandBoosData(_buf map[string]interface{}) (*GameDreamlandBoosData, error) {
|
|
v := &GameDreamlandBoosData{}
|
|
if err := v.Deserialize(_buf); err == nil {
|
|
return v, nil
|
|
} else {
|
|
return nil, err
|
|
}
|
|
}
|