go_dreamfactory/sys/configure/structs/Game.DrawPoolData.go
2023-08-17 15:20:00 +08:00

139 lines
6.9 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 GameDrawPoolData struct {
Key int32
RecruitmentType []*Gameks
Star3w int32
Star4w int32
Star5w int32
Protect int32
P3pool string
P4pool string
P5pool string
N3pool string
N4pool string
N5pool string
Baodi4 int32
Baidi5 int32
Etime int32
Permission int32
ConsumeA []*Gameatn
ConsumeA10 []*Gameatn
ConsumeB []*Gameatn
ConsumeB10 []*Gameatn
}
const TypeId_GameDrawPoolData = 271747014
func (*GameDrawPoolData) GetTypeId() int32 {
return 271747014
}
func (_v *GameDrawPoolData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["recruitment_type"].([]interface{}); !_ok_ { err = errors.New("recruitment_type error"); return }
_v.RecruitmentType = make([]*Gameks, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameks
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameks(_x_); err != nil { return } }
_v.RecruitmentType = append(_v.RecruitmentType, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star3w"].(float64); !_ok_ { err = errors.New("star3w error"); return }; _v.Star3w = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star4w"].(float64); !_ok_ { err = errors.New("star4w error"); return }; _v.Star4w = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star5w"].(float64); !_ok_ { err = errors.New("star5w error"); return }; _v.Star5w = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["protect"].(float64); !_ok_ { err = errors.New("protect error"); return }; _v.Protect = int32(_tempNum_) }
{ var _ok_ bool; if _v.P3pool, _ok_ = _buf["p3pool"].(string); !_ok_ { err = errors.New("p3pool error"); return } }
{ var _ok_ bool; if _v.P4pool, _ok_ = _buf["p4pool"].(string); !_ok_ { err = errors.New("p4pool error"); return } }
{ var _ok_ bool; if _v.P5pool, _ok_ = _buf["p5pool"].(string); !_ok_ { err = errors.New("p5pool error"); return } }
{ var _ok_ bool; if _v.N3pool, _ok_ = _buf["n3pool"].(string); !_ok_ { err = errors.New("n3pool error"); return } }
{ var _ok_ bool; if _v.N4pool, _ok_ = _buf["n4pool"].(string); !_ok_ { err = errors.New("n4pool error"); return } }
{ var _ok_ bool; if _v.N5pool, _ok_ = _buf["n5pool"].(string); !_ok_ { err = errors.New("n5pool error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["baodi4"].(float64); !_ok_ { err = errors.New("baodi4 error"); return }; _v.Baodi4 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["baidi5"].(float64); !_ok_ { err = errors.New("baidi5 error"); return }; _v.Baidi5 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["etime"].(float64); !_ok_ { err = errors.New("etime error"); return }; _v.Etime = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["permission"].(float64); !_ok_ { err = errors.New("permission error"); return }; _v.Permission = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["consumeA"].([]interface{}); !_ok_ { err = errors.New("consumeA error"); return }
_v.ConsumeA = make([]*Gameatn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatn
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
_v.ConsumeA = append(_v.ConsumeA, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["consumeA10"].([]interface{}); !_ok_ { err = errors.New("consumeA10 error"); return }
_v.ConsumeA10 = make([]*Gameatn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatn
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
_v.ConsumeA10 = append(_v.ConsumeA10, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["consumeB"].([]interface{}); !_ok_ { err = errors.New("consumeB error"); return }
_v.ConsumeB = make([]*Gameatn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatn
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
_v.ConsumeB = append(_v.ConsumeB, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["consumeB10"].([]interface{}); !_ok_ { err = errors.New("consumeB10 error"); return }
_v.ConsumeB10 = make([]*Gameatn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatn
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
_v.ConsumeB10 = append(_v.ConsumeB10, _list_v_)
}
}
return
}
func DeserializeGameDrawPoolData(_buf map[string]interface{}) (*GameDrawPoolData, error) {
v := &GameDrawPoolData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}