//------------------------------------------------------------------------------ // // 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 GameLinkData struct { Id string Uistore string Scene string Des string Option int32 Preid int32 Presid int32 } const TypeId_GameLinkData = -968027840 func (*GameLinkData) GetTypeId() int32 { return -968027840 } func (_v *GameLinkData)Deserialize(_buf map[string]interface{}) (err error) { { var _ok_ bool; if _v.Id, _ok_ = _buf["id"].(string); !_ok_ { err = errors.New("id error"); return } } { var _ok_ bool; if _v.Uistore, _ok_ = _buf["uistore"].(string); !_ok_ { err = errors.New("uistore error"); return } } { var _ok_ bool; if _v.Scene, _ok_ = _buf["scene"].(string); !_ok_ { err = errors.New("scene error"); return } } { var _ok_ bool; if _v.Des, _ok_ = _buf["des"].(string); !_ok_ { err = errors.New("des error"); return } } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["option"].(float64); !_ok_ { err = errors.New("option error"); return }; _v.Option = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["preid"].(float64); !_ok_ { err = errors.New("preid error"); return }; _v.Preid = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["presid"].(float64); !_ok_ { err = errors.New("presid error"); return }; _v.Presid = int32(_tempNum_) } return } func DeserializeGameLinkData(_buf map[string]interface{}) (*GameLinkData, error) { v := &GameLinkData{} if err := v.Deserialize(_buf); err == nil { return v, nil } else { return nil, err } }