mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
33 lines
1.0 KiB
Go
33 lines
1.0 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 TestDemoD5 struct {
|
|
X1 int32
|
|
Time *TestDateTimeRange
|
|
}
|
|
|
|
const TypeId_TestDemoD5 = -2138341744
|
|
|
|
func (*TestDemoD5) GetTypeId() int32 {
|
|
return -2138341744
|
|
}
|
|
|
|
func NewTestDemoD5(_buf map[string]interface{}) (_v *TestDemoD5, err error) {
|
|
_v = &TestDemoD5{}
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["x1"].(float64); !_ok_ { err = errors.New("x1 error"); return }; _v.X1 = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["time"].(map[string]interface{}); !_ok_ { err = errors.New("time error"); return }; if _v.Time, err = NewTestDateTimeRange(_x_); err != nil { return } }
|
|
return
|
|
}
|
|
|