go_dreamfactory/sys/configure/structs/Game.ks.go
2023-06-20 19:57:04 +08:00

38 lines
1.1 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 Gameks struct {
K int32
S string
}
const TypeId_Gameks = 1468999876
func (*Gameks) GetTypeId() int32 {
return 1468999876
}
func (_v *Gameks)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["k"].(float64); !_ok_ { err = errors.New("k error"); return }; _v.K = int32(_tempNum_) }
{ var _ok_ bool; if _v.S, _ok_ = _buf["s"].(string); !_ok_ { err = errors.New("s error"); return } }
return
}
func DeserializeGameks(_buf map[string]interface{}) (*Gameks, error) {
v := &Gameks{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}