go_dreamfactory/sys/configure/structs/Game.itinerant_reward.go
2023-04-17 18:55:11 +08:00

43 lines
1.3 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 Gameitinerant_reward struct {
_dataMap map[int32]*Gameitinerant_rewardData
_dataList []*Gameitinerant_rewardData
}
func NewGameitinerant_reward(_buf []map[string]interface{}) (*Gameitinerant_reward, error) {
_dataList := make([]*Gameitinerant_rewardData, 0, len(_buf))
dataMap := make(map[int32]*Gameitinerant_rewardData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameitinerant_rewardData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Num] = _v
}
}
return &Gameitinerant_reward{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *Gameitinerant_reward) GetDataMap() map[int32]*Gameitinerant_rewardData {
return table._dataMap
}
func (table *Gameitinerant_reward) GetDataList() []*Gameitinerant_rewardData {
return table._dataList
}
func (table *Gameitinerant_reward) Get(key int32) *Gameitinerant_rewardData {
return table._dataMap[key]
}