mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-11 08:38:45 +00:00
update
This commit is contained in:
40
luban_examples/Projects/Go_bin/gen/common.TbGlobalConfig.go
Normal file
40
luban_examples/Projects/Go_bin/gen/common.TbGlobalConfig.go
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 CommonTbGlobalConfig struct {
|
||||
_data *CommonGlobalConfig
|
||||
}
|
||||
|
||||
func NewCommonTbGlobalConfig(_buf *luban.ByteBuf) (*CommonTbGlobalConfig, error) {
|
||||
if size, err := _buf.ReadSize() ; err != nil {
|
||||
return nil, err
|
||||
} else if size != 1 {
|
||||
return nil, errors.New(" size != 1 ")
|
||||
} else {
|
||||
if _v, err2 := NewCommonGlobalConfig(_buf); err2 != nil {
|
||||
return nil, err2
|
||||
} else {
|
||||
return &CommonTbGlobalConfig{_data:_v}, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (table *CommonTbGlobalConfig) Get() *CommonGlobalConfig {
|
||||
return table._data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user