mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-11 08:38:45 +00:00
update
This commit is contained in:
36
luban_examples/Projects/Go_bin/gen/test.RefBean.go
Normal file
36
luban_examples/Projects/Go_bin/gen/test.RefBean.go
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 (
|
||||
"demo/luban"
|
||||
)
|
||||
|
||||
import "errors"
|
||||
|
||||
type TestRefBean struct {
|
||||
X int32
|
||||
Arr []int32
|
||||
}
|
||||
|
||||
const TypeId_TestRefBean = 1963260263
|
||||
|
||||
func (*TestRefBean) GetTypeId() int32 {
|
||||
return 1963260263
|
||||
}
|
||||
|
||||
func NewTestRefBean(_buf *luban.ByteBuf) (_v *TestRefBean, err error) {
|
||||
_v = &TestRefBean{}
|
||||
{ if _v.X, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }
|
||||
{_v.Arr = make([]int32, 0); var _n_ int; if _n_, err = _buf.ReadSize(); err != nil { err = errors.New("error"); return}; for i := 0 ; i < _n_ ; i++ { var _e_ int32; { if _e_, err = _buf.ReadInt(); err != nil { err = errors.New("error"); return } }; _v.Arr = append(_v.Arr, _e_) } }
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user