//------------------------------------------------------------------------------ // // 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 TestTestGlobal struct { UnlockEquip int32 UnlockHero int32 } const TypeId_TestTestGlobal = -12548655 func (*TestTestGlobal) GetTypeId() int32 { return -12548655 } func NewTestTestGlobal(_buf *luban.ByteBuf) (_v *TestTestGlobal, err error) { _v = &TestTestGlobal{} { if _v.UnlockEquip, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } { if _v.UnlockHero, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } } return }