//------------------------------------------------------------------------------ // // 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 Game_storyEasyData 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_storyEasyData) GetTypeId() int { return -1625602587 } func NewGame_storyEasyData(_buf map[string]interface{}) (_v *Game_storyEasyData, err error) { _v = &Game_storyEasyData{} { 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 }