go_dreamfactory/sys/configure/structs/Game.RedDotGroupData.go
2022-12-02 21:57:20 +08:00

44 lines
1.6 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 GameRedDotGroupData struct {
Id int32
Type int32
Group string
Layer string
Header string
}
const TypeId_GameRedDotGroupData = -1285083979
func (*GameRedDotGroupData) GetTypeId() int32 {
return -1285083979
}
func (_v *GameRedDotGroupData)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["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
{ var _ok_ bool; if _v.Group, _ok_ = _buf["group"].(string); !_ok_ { err = errors.New("group error"); return } }
{ var _ok_ bool; if _v.Layer, _ok_ = _buf["layer"].(string); !_ok_ { err = errors.New("layer error"); return } }
{ var _ok_ bool; if _v.Header, _ok_ = _buf["header"].(string); !_ok_ { err = errors.New("header error"); return } }
return
}
func DeserializeGameRedDotGroupData(_buf map[string]interface{}) (*GameRedDotGroupData, error) {
v := &GameRedDotGroupData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}