//------------------------------------------------------------------------------ // // 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 AiFloatKeyData struct { Value float32 } const TypeId_AiFloatKeyData = -719747885 func (*AiFloatKeyData) GetTypeId() int32 { return -719747885 } func NewAiFloatKeyData(_buf map[string]interface{}) (_v *AiFloatKeyData, err error) { _v = &AiFloatKeyData{} { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["value"].(float64); !_ok_ { err = errors.New("value error"); return }; _v.Value = float32(_tempNum_) } return }