//------------------------------------------------------------------------------ // // 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 type GameTopUIConfig struct { _dataList []*GameTopUIConfigData } func NewGameTopUIConfig(_buf []map[string]interface{}) (*GameTopUIConfig, error) { _dataList := make([]*GameTopUIConfigData, 0, len(_buf)) for _, _ele_ := range _buf { if _v, err2 := DeserializeGameTopUIConfigData(_ele_); err2 != nil { return nil, err2 } else { _dataList = append(_dataList, _v) } } return &GameTopUIConfig{_dataList:_dataList}, nil } func (table *GameTopUIConfig) GetDataList() []*GameTopUIConfigData { return table._dataList } func (table *GameTopUIConfig) Get(index int) *GameTopUIConfigData { return table._dataList[index] }