//------------------------------------------------------------------------------ // // 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 Game_pagoda struct { _dataMap map[int32]*Game_pagodaData _dataList []*Game_pagodaData _dataList1 map[int32]*Game_pagodaData } func NewGame_pagoda(_buf []map[string]interface{}) (*Game_pagoda, error) { _dataList := make([]*Game_pagodaData, 0, len(_buf)) dataMap := make(map[int32]*Game_pagodaData) for _, _ele_ := range _buf { if _v, err2 := NewGame_pagodaData(_ele_); err2 != nil { return nil, err2 } else { _dataList = append(_dataList, _v) dataMap[_v.Key] = _v } } return &Game_pagoda{_dataList: _dataList, _dataMap: dataMap}, nil } func (table *Game_pagoda) GetDataMap() map[int32]*Game_pagodaData { return table._dataMap } func (table *Game_pagoda) GetDataList() []*Game_pagodaData { return table._dataList } func (table *Game_pagoda) Get(key int32) *Game_pagodaData { return table._dataMap[key] }