merge
This commit is contained in:
parent
fa0acb2647
commit
cc436054d4
@ -30,112 +30,29 @@ func (*GameStoneBattleData) GetTypeId() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameStoneBattleData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameStoneBattleData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BattleStageId"].(float64); !_ok_ { err = errors.New("BattleStageId error"); return }; _v.BattleStageId = int32(_tempNum_) }
|
||||||
var _ok_ bool
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["EnemyShowIcon"].(float64); !_ok_ { err = errors.New("EnemyShowIcon error"); return }; _v.EnemyShowIcon = int32(_tempNum_) }
|
||||||
var _tempNum_ float64
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Atk"].(float64); !_ok_ { err = errors.New("Atk error"); return }; _v.Atk = int32(_tempNum_) }
|
||||||
if _tempNum_, _ok_ = _buf["BattleStageId"].(float64); !_ok_ {
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Hp"].(float64); !_ok_ { err = errors.New("Hp error"); return }; _v.Hp = int32(_tempNum_) }
|
||||||
err = errors.New("BattleStageId error")
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Def"].(float64); !_ok_ { err = errors.New("Def error"); return }; _v.Def = int32(_tempNum_) }
|
||||||
return
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["SpeedValue"].(float64); !_ok_ { err = errors.New("SpeedValue error"); return }; _v.SpeedValue = int32(_tempNum_) }
|
||||||
}
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["EffreValue"].(float64); !_ok_ { err = errors.New("EffreValue error"); return }; _v.EffreValue = int32(_tempNum_) }
|
||||||
_v.BattleStageId = int32(_tempNum_)
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BattleReadyID"].(float64); !_ok_ { err = errors.New("BattleReadyID error"); return }; _v.BattleReadyID = int32(_tempNum_) }
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["EnemyShowIcon"].(float64); !_ok_ {
|
|
||||||
err = errors.New("EnemyShowIcon error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.EnemyShowIcon = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["Atk"].(float64); !_ok_ {
|
|
||||||
err = errors.New("Atk error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.Atk = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["Hp"].(float64); !_ok_ {
|
|
||||||
err = errors.New("Hp error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.Hp = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["Def"].(float64); !_ok_ {
|
|
||||||
err = errors.New("Def error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.Def = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["SpeedValue"].(float64); !_ok_ {
|
|
||||||
err = errors.New("SpeedValue error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.SpeedValue = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["EffreValue"].(float64); !_ok_ {
|
|
||||||
err = errors.New("EffreValue error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.EffreValue = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["BattleReadyID"].(float64); !_ok_ {
|
|
||||||
err = errors.New("BattleReadyID error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.BattleReadyID = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
var _arr_ []interface{}
|
var _arr_ []interface{}
|
||||||
var _ok_ bool
|
var _ok_ bool
|
||||||
if _arr_, _ok_ = _buf["FormatList"].([]interface{}); !_ok_ {
|
if _arr_, _ok_ = _buf["FormatList"].([]interface{}); !_ok_ { err = errors.New("FormatList error"); return }
|
||||||
err = errors.New("FormatList error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
_v.FormatList = make([]int32, 0, len(_arr_))
|
_v.FormatList = make([]int32, 0, len(_arr_))
|
||||||
|
|
||||||
for _, _e_ := range _arr_ {
|
for _, _e_ := range _arr_ {
|
||||||
var _list_v_ int32
|
var _list_v_ int32
|
||||||
{
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
||||||
var _ok_ bool
|
|
||||||
var _x_ float64
|
|
||||||
if _x_, _ok_ = _e_.(float64); !_ok_ {
|
|
||||||
err = errors.New("_list_v_ error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_list_v_ = int32(_x_)
|
|
||||||
}
|
|
||||||
_v.FormatList = append(_v.FormatList, _list_v_)
|
_v.FormatList = append(_v.FormatList, _list_v_)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["RewardLottery"].(float64); !_ok_ { err = errors.New("RewardLottery error"); return }; _v.RewardLottery = int32(_tempNum_) }
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["RewardLottery"].(float64); !_ok_ {
|
|
||||||
err = errors.New("RewardLottery error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.RewardLottery = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,102 +29,15 @@ func (*GameStoneBuffData) GetTypeId() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (_v *GameStoneBuffData)Deserialize(_buf map[string]interface{}) (err error) {
|
func (_v *GameStoneBuffData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
{
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BuffId"].(float64); !_ok_ { err = errors.New("BuffId error"); return }; _v.BuffId = int32(_tempNum_) }
|
||||||
var _ok_ bool
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Type"].(float64); !_ok_ { err = errors.New("Type error"); return }; _v.Type = int32(_tempNum_) }
|
||||||
var _tempNum_ float64
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["SkillId"].(float64); !_ok_ { err = errors.New("SkillId error"); return }; _v.SkillId = int32(_tempNum_) }
|
||||||
if _tempNum_, _ok_ = _buf["BuffId"].(float64); !_ok_ {
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BuffLevel"].(float64); !_ok_ { err = errors.New("BuffLevel error"); return }; _v.BuffLevel = int32(_tempNum_) }
|
||||||
err = errors.New("BuffId error")
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Quality"].(float64); !_ok_ { err = errors.New("Quality error"); return }; _v.Quality = int32(_tempNum_) }
|
||||||
return
|
{ var _ok_ bool; if _v.BuffIcon, _ok_ = _buf["BuffIcon"].(string); !_ok_ { err = errors.New("BuffIcon error"); return } }
|
||||||
}
|
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["BuffStory"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.BuffStory error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.BuffStory, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
||||||
_v.BuffId = int32(_tempNum_)
|
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["BuffUpgradeCost"].(map[string]interface{}); !_ok_ { err = errors.New("BuffUpgradeCost error"); return }; if _v.BuffUpgradeCost, err = DeserializeGameatn(_x_); err != nil { return } }
|
||||||
}
|
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["BuffSell"].(map[string]interface{}); !_ok_ { err = errors.New("BuffSell error"); return }; if _v.BuffSell, err = DeserializeGameatn(_x_); err != nil { return } }
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["Type"].(float64); !_ok_ {
|
|
||||||
err = errors.New("Type error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.Type = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["SkillId"].(float64); !_ok_ {
|
|
||||||
err = errors.New("SkillId error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.SkillId = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["BuffLevel"].(float64); !_ok_ {
|
|
||||||
err = errors.New("BuffLevel error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.BuffLevel = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _tempNum_ float64
|
|
||||||
if _tempNum_, _ok_ = _buf["Quality"].(float64); !_ok_ {
|
|
||||||
err = errors.New("Quality error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_v.Quality = int32(_tempNum_)
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
if _v.BuffIcon, _ok_ = _buf["BuffIcon"].(string); !_ok_ {
|
|
||||||
err = errors.New("BuffIcon error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var __json_text__ map[string]interface{}
|
|
||||||
if __json_text__, _ok_ = _buf["BuffStory"].(map[string]interface{}); !_ok_ {
|
|
||||||
err = errors.New("_v.BuffStory error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
if _, _ok_ = __json_text__["key"].(string); !_ok_ {
|
|
||||||
err = errors.New("key error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
if _v.BuffStory, _ok_ = __json_text__["text"].(string); !_ok_ {
|
|
||||||
err = errors.New("text error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _x_ map[string]interface{}
|
|
||||||
if _x_, _ok_ = _buf["BuffUpgradeCost"].(map[string]interface{}); !_ok_ {
|
|
||||||
err = errors.New("BuffUpgradeCost error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if _v.BuffUpgradeCost, err = DeserializeGameatn(_x_); err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var _ok_ bool
|
|
||||||
var _x_ map[string]interface{}
|
|
||||||
if _x_, _ok_ = _buf["BuffSell"].(map[string]interface{}); !_ok_ {
|
|
||||||
err = errors.New("BuffSell error")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if _v.BuffSell, err = DeserializeGameatn(_x_); err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user