60 lines
1.6 KiB
Go
60 lines
1.6 KiB
Go
//------------------------------------------------------------------------------
|
|
// <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 Config
|
|
|
|
import "sandc/app/eonline/internal/config/bright/serialization"
|
|
|
|
type ByteBufLoader func(string) (*serialization.ByteBuf, error)
|
|
|
|
type Tables struct {
|
|
TbCoinAdReward *ConfigTbCoinAdReward
|
|
TbMinigame *ConfigTbMinigame
|
|
Tbglobal *ConfigTbglobal
|
|
TbCashOut *ConfigTbCashOut
|
|
TbuserState *ConfigTbuserState
|
|
}
|
|
|
|
func NewTables(loader ByteBufLoader) (*Tables, error) {
|
|
var err error
|
|
var buf *serialization.ByteBuf
|
|
|
|
tables := &Tables{}
|
|
if buf, err = loader("config_tbcoinadreward"); err != nil {
|
|
return nil, err
|
|
}
|
|
if tables.TbCoinAdReward, err = NewConfigTbCoinAdReward(buf); err != nil {
|
|
return nil, err
|
|
}
|
|
if buf, err = loader("config_tbminigame"); err != nil {
|
|
return nil, err
|
|
}
|
|
if tables.TbMinigame, err = NewConfigTbMinigame(buf); err != nil {
|
|
return nil, err
|
|
}
|
|
if buf, err = loader("config_tbglobal"); err != nil {
|
|
return nil, err
|
|
}
|
|
if tables.Tbglobal, err = NewConfigTbglobal(buf); err != nil {
|
|
return nil, err
|
|
}
|
|
if buf, err = loader("config_tbcashout"); err != nil {
|
|
return nil, err
|
|
}
|
|
if tables.TbCashOut, err = NewConfigTbCashOut(buf); err != nil {
|
|
return nil, err
|
|
}
|
|
if buf, err = loader("config_tbuserstate"); err != nil {
|
|
return nil, err
|
|
}
|
|
if tables.TbuserState, err = NewConfigTbuserState(buf); err != nil {
|
|
return nil, err
|
|
}
|
|
return tables, nil
|
|
}
|