go_dreamfactory/sys/configure/structs/Game.ArenarealtimeOpentimeData.go
2024-03-08 17:48:22 +08:00

44 lines
1.9 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
import "errors"
type GameArenarealtimeOpentimeData struct {
Id int32
OpenTime int32
DurationTime int32
IntervalTime int32
CycleIndex int32
}
const TypeId_GameArenarealtimeOpentimeData = 905819127
func (*GameArenarealtimeOpentimeData) GetTypeId() int32 {
return 905819127
}
func (_v *GameArenarealtimeOpentimeData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Id"].(float64); !_ok_ { err = errors.New("Id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["OpenTime"].(float64); !_ok_ { err = errors.New("OpenTime error"); return }; _v.OpenTime = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["DurationTime"].(float64); !_ok_ { err = errors.New("DurationTime error"); return }; _v.DurationTime = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["IntervalTime"].(float64); !_ok_ { err = errors.New("IntervalTime error"); return }; _v.IntervalTime = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["CycleIndex"].(float64); !_ok_ { err = errors.New("CycleIndex error"); return }; _v.CycleIndex = int32(_tempNum_) }
return
}
func DeserializeGameArenarealtimeOpentimeData(_buf map[string]interface{}) (*GameArenarealtimeOpentimeData, error) {
v := &GameArenarealtimeOpentimeData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}