go_dreamfactory/sys/configure/structs/Game.HDCelebration.go
2023-08-04 11:43:25 +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 GameHDCelebration struct {
_dataMap map[int32]*GameHDCelebrationData
_dataList []*GameHDCelebrationData
}
func NewGameHDCelebration(_buf []map[string]interface{}) (*GameHDCelebration, error) {
_dataList := make([]*GameHDCelebrationData, 0, len(_buf))
dataMap := make(map[int32]*GameHDCelebrationData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameHDCelebrationData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.ID] = _v
}
}
return &GameHDCelebration{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameHDCelebration) GetDataMap() map[int32]*GameHDCelebrationData {
return table._dataMap
}
func (table *GameHDCelebration) GetDataList() []*GameHDCelebrationData {
return table._dataList
}
func (table *GameHDCelebration) Get(key int32) *GameHDCelebrationData {
return table._dataMap[key]
}