JisolGame/luban_examples/Projects/Go_json/gen/test.CompositeJsonTable3.go

33 lines
1.0 KiB
Go
Raw Normal View History

2023-11-05 03:26:09 +08:00
//------------------------------------------------------------------------------
// <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 TestCompositeJsonTable3 struct {
A int32
B int32
}
const TypeId_TestCompositeJsonTable3 = 1566207896
func (*TestCompositeJsonTable3) GetTypeId() int32 {
return 1566207896
}
func NewTestCompositeJsonTable3(_buf map[string]interface{}) (_v *TestCompositeJsonTable3, err error) {
_v = &TestCompositeJsonTable3{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["a"].(float64); !_ok_ { err = errors.New("a error"); return }; _v.A = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["b"].(float64); !_ok_ { err = errors.New("b error"); return }; _v.B = int32(_tempNum_) }
return
}