go_dreamfactory/sys/configure/structs/Game.GetResourceData.go
2022-09-01 10:08:29 +08:00

46 lines
1.7 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 GameGetResourceData struct {
Id int32
Typ int32
Name string
Txt string
Icon string
Goto string
}
const TypeId_GameGetResourceData = 1197339986
func (*GameGetResourceData) GetTypeId() int32 {
return 1197339986
}
func (_v *GameGetResourceData)Deserialize(_buf map[string]interface{}) (err error) {
{ 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["typ"].(float64); !_ok_ { err = errors.New("typ error"); return }; _v.Typ = int32(_tempNum_) }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; if _v.Txt, _ok_ = _buf["txt"].(string); !_ok_ { err = errors.New("txt error"); return } }
{ var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } }
{ var _ok_ bool; if _v.Goto, _ok_ = _buf["goto"].(string); !_ok_ { err = errors.New("goto error"); return } }
return
}
func DeserializeGameGetResourceData(_buf map[string]interface{}) (*GameGetResourceData, error) {
v := &GameGetResourceData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}