//------------------------------------------------------------------------------ // // 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 ( "demo/luban" ) import "errors" type AiBlackboardKey struct { Name string Desc string IsStatic bool Type int32 TypeClassName string } const TypeId_AiBlackboardKey = -511559886 func (*AiBlackboardKey) GetTypeId() int32 { return -511559886 } func NewAiBlackboardKey(_buf *luban.ByteBuf) (_v *AiBlackboardKey, err error) { _v = &AiBlackboardKey{} { if _v.Name, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } { if _v.Desc, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } { if _v.IsStatic, err = _buf.ReadBool(); err != nil { err = errors.New("error"); err = errors.New("error"); return } } { if _v.Type, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } { if _v.TypeClassName, err = _buf.ReadString(); err != nil { err = errors.New("error"); return } } return }