go_dreamfactory/sys/configure/structs/game.storyHardData.go
2022-07-05 18:47:01 +08:00

113 lines
6.4 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 Game_storyHardData struct {
Order int32
Gqshu int32
Id int32
Nextid int32
Zhangshu int32
Area int32
Fubentype int32
Zuobiao []int32
Model string
Texiao string
Desc string
Armnum int32
Guaiwulv int32
Guaiwuhppro float32
Guaiwuatkpro float32
Guaiwudefpro float32
Guaiwulv1 int32
Guaiwuhppro1 float32
Guaiwuatkpro1 float32
Guaiwudefpro1 float32
Boci1 []int32
Boci2 []int32
Aname string
Zhandouchangjing string
Cjtexiao string
}
func (Game_storyHardData) GetTypeId() int {
return -740161970
}
func NewGame_storyHardData(_buf map[string]interface{}) (_v *Game_storyHardData, err error) {
_v = &Game_storyHardData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["order"].(float64); !_ok_ { err = errors.New("order error"); return }; _v.Order = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["gqshu"].(float64); !_ok_ { err = errors.New("gqshu error"); return }; _v.Gqshu = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["nextid"].(float64); !_ok_ { err = errors.New("nextid error"); return }; _v.Nextid = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["zhangshu"].(float64); !_ok_ { err = errors.New("zhangshu error"); return }; _v.Zhangshu = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["area"].(float64); !_ok_ { err = errors.New("area error"); return }; _v.Area = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["fubentype"].(float64); !_ok_ { err = errors.New("fubentype error"); return }; _v.Fubentype = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["zuobiao"].([]interface{}); !_ok_ { err = errors.New("zuobiao error"); return }
_v.Zuobiao = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
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_) }
_v.Zuobiao = append(_v.Zuobiao, _list_v_)
}
}
{ var _ok_ bool; if _v.Model, _ok_ = _buf["model"].(string); !_ok_ { err = errors.New("model error"); return } }
{ var _ok_ bool; if _v.Texiao, _ok_ = _buf["texiao"].(string); !_ok_ { err = errors.New("texiao error"); return } }
{ var _ok_ bool; if _v.Desc, _ok_ = _buf["desc"].(string); !_ok_ { err = errors.New("desc error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["armnum"].(float64); !_ok_ { err = errors.New("armnum error"); return }; _v.Armnum = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwulv"].(float64); !_ok_ { err = errors.New("guaiwulv error"); return }; _v.Guaiwulv = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuhppro"].(float64); !_ok_ { err = errors.New("guaiwuhppro error"); return }; _v.Guaiwuhppro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuatkpro"].(float64); !_ok_ { err = errors.New("guaiwuatkpro error"); return }; _v.Guaiwuatkpro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwudefpro"].(float64); !_ok_ { err = errors.New("guaiwudefpro error"); return }; _v.Guaiwudefpro = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwulv1"].(float64); !_ok_ { err = errors.New("guaiwulv1 error"); return }; _v.Guaiwulv1 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuhppro1"].(float64); !_ok_ { err = errors.New("guaiwuhppro1 error"); return }; _v.Guaiwuhppro1 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwuatkpro1"].(float64); !_ok_ { err = errors.New("guaiwuatkpro1 error"); return }; _v.Guaiwuatkpro1 = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["guaiwudefpro1"].(float64); !_ok_ { err = errors.New("guaiwudefpro1 error"); return }; _v.Guaiwudefpro1 = float32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["boci1"].([]interface{}); !_ok_ { err = errors.New("boci1 error"); return }
_v.Boci1 = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
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_) }
_v.Boci1 = append(_v.Boci1, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["boci2"].([]interface{}); !_ok_ { err = errors.New("boci2 error"); return }
_v.Boci2 = make([]int32, 0, len(_arr_))
for _, _e_ := range _arr_ {
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_) }
_v.Boci2 = append(_v.Boci2, _list_v_)
}
}
{ var _ok_ bool; if _v.Aname, _ok_ = _buf["aname"].(string); !_ok_ { err = errors.New("aname error"); return } }
{ var _ok_ bool; if _v.Zhandouchangjing, _ok_ = _buf["zhandouchangjing"].(string); !_ok_ { err = errors.New("zhandouchangjing error"); return } }
{ var _ok_ bool; if _v.Cjtexiao, _ok_ = _buf["cjtexiao"].(string); !_ok_ { err = errors.New("cjtexiao error"); return } }
return
}