go_dreamfactory/sys/configure/structs/Game.SkillPropertyData.go
2023-08-15 15:09:49 +08:00

52 lines
2.6 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 GameSkillPropertyData struct {
ProType int32
ProLevel int32
LimitValue int32
MinValue int32
MaxValue int32
BaseTerms int32
ExtraTerms int32
PerTerms int32
FixTerms int32
}
const TypeId_GameSkillPropertyData = 880868628
func (*GameSkillPropertyData) GetTypeId() int32 {
return 880868628
}
func (_v *GameSkillPropertyData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ProType"].(float64); !_ok_ { err = errors.New("ProType error"); return }; _v.ProType = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ProLevel"].(float64); !_ok_ { err = errors.New("ProLevel error"); return }; _v.ProLevel = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["LimitValue"].(float64); !_ok_ { err = errors.New("LimitValue error"); return }; _v.LimitValue = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["MinValue"].(float64); !_ok_ { err = errors.New("MinValue error"); return }; _v.MinValue = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["MaxValue"].(float64); !_ok_ { err = errors.New("MaxValue error"); return }; _v.MaxValue = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BaseTerms"].(float64); !_ok_ { err = errors.New("BaseTerms error"); return }; _v.BaseTerms = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ExtraTerms"].(float64); !_ok_ { err = errors.New("ExtraTerms error"); return }; _v.ExtraTerms = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["PerTerms"].(float64); !_ok_ { err = errors.New("PerTerms error"); return }; _v.PerTerms = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["FixTerms"].(float64); !_ok_ { err = errors.New("FixTerms error"); return }; _v.FixTerms = int32(_tempNum_) }
return
}
func DeserializeGameSkillPropertyData(_buf map[string]interface{}) (*GameSkillPropertyData, error) {
v := &GameSkillPropertyData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}