go_dreamfactory/sys/configure/structs/game.comAtn.go
2022-06-29 17:43:48 +08:00

43 lines
1.2 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 cfg
type Game_comAtn struct {
_dataMap map[string]*Game_comAtnData
_dataList []*Game_comAtnData
}
func NewGame_comAtn(_buf []map[string]interface{}) (*Game_comAtn, error) {
_dataList := make([]*Game_comAtnData, 0, len(_buf))
dataMap := make(map[string]*Game_comAtnData)
for _, _ele_ := range _buf {
if _v, err2 := NewGame_comAtnData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Index] = _v
}
}
return &Game_comAtn{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *Game_comAtn) GetDataMap() map[string]*Game_comAtnData {
return table._dataMap
}
func (table *Game_comAtn) GetDataList() []*Game_comAtnData {
return table._dataList
}
func (table *Game_comAtn) Get(key string) *Game_comAtnData {
return table._dataMap[key]
}