//------------------------------------------------------------------------------ // // 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_propsgroupData struct { Key int32 Star int32 Prize *Game_atn P int32 } func (Game_propsgroupData) GetTypeId() int { return -1658257195 } func NewGame_propsgroupData(_buf map[string]interface{}) (_v *Game_propsgroupData, err error) { _v = &Game_propsgroupData{} { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) } { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["prize"].(map[string]interface{}); !_ok_ { err = errors.New("prize error"); return }; if _v.Prize, err = NewGame_atn(_x_); err != nil { return } } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["p"].(float64); !_ok_ { err = errors.New("p error"); return }; _v.P = int32(_tempNum_) } return }