go_dreamfactory/sys/configure/structs/game.msgDistribData.go
2022-10-13 14:06:25 +08:00

42 lines
1.4 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 GameMsgdistribData struct {
Msgid string
Open bool
Routrules string
Describe string
}
const TypeId_GameMsgdistribData = 2119439946
func (*GameMsgdistribData) GetTypeId() int32 {
return 2119439946
}
func (_v *GameMsgdistribData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; if _v.Msgid, _ok_ = _buf["msgid"].(string); !_ok_ { err = errors.New("msgid error"); return } }
{ var _ok_ bool; if _v.Open, _ok_ = _buf["open"].(bool); !_ok_ { err = errors.New("open error"); return } }
{ var _ok_ bool; if _v.Routrules, _ok_ = _buf["routrules"].(string); !_ok_ { err = errors.New("routrules error"); return } }
{ var _ok_ bool; if _v.Describe, _ok_ = _buf["describe"].(string); !_ok_ { err = errors.New("describe error"); return } }
return
}
func DeserializeGameMsgdistribData(_buf map[string]interface{}) (*GameMsgdistribData, error) {
v := &GameMsgdistribData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}