//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ package cfg; import "errors" type TestCircle struct { Radius float32 } const TypeId_TestCircle = 2131829196 func (*TestCircle) GetTypeId() int32 { return 2131829196 } func NewTestCircle(_buf map[string]interface{}) (_v *TestCircle, err error) { _v = &TestCircle{} { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["radius"].(float64); !_ok_ { err = errors.New("radius error"); return }; _v.Radius = float32(_tempNum_) } return }