94 lines
5.3 KiB
Go
94 lines
5.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
|
|
|
|
import "errors"
|
|
|
|
type GameBukashiAiData struct {
|
|
Id int32
|
|
MatchType int32
|
|
QualifyingType int32
|
|
BehaviorCD int32
|
|
BumpWeight int32
|
|
BumpCD int32
|
|
BumpFailWeight int32
|
|
BumpSuccessWeight []int32
|
|
HpBumpWeight int32
|
|
HpBumpCD int32
|
|
HpBumpFailWeight int32
|
|
HpBumpSuccessWeight int32
|
|
CatchQteWeight int32
|
|
CatchQteCD int32
|
|
CatchQteFailWeight int32
|
|
CatchQteSuccessWeight []int32
|
|
EmptyWeight int32
|
|
}
|
|
|
|
const TypeId_GameBukashiAiData = -332024319
|
|
|
|
func (*GameBukashiAiData) GetTypeId() int32 {
|
|
return -332024319
|
|
}
|
|
|
|
func (_v *GameBukashiAiData)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["MatchType"].(float64); !_ok_ { err = errors.New("MatchType error"); return }; _v.MatchType = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["QualifyingType"].(float64); !_ok_ { err = errors.New("QualifyingType error"); return }; _v.QualifyingType = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BehaviorCD"].(float64); !_ok_ { err = errors.New("BehaviorCD error"); return }; _v.BehaviorCD = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BumpWeight"].(float64); !_ok_ { err = errors.New("BumpWeight error"); return }; _v.BumpWeight = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BumpCD"].(float64); !_ok_ { err = errors.New("BumpCD error"); return }; _v.BumpCD = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BumpFailWeight"].(float64); !_ok_ { err = errors.New("BumpFailWeight error"); return }; _v.BumpFailWeight = int32(_tempNum_) }
|
|
{
|
|
var _arr_ []interface{}
|
|
var _ok_ bool
|
|
if _arr_, _ok_ = _buf["BumpSuccessWeight"].([]interface{}); !_ok_ { err = errors.New("BumpSuccessWeight error"); return }
|
|
|
|
_v.BumpSuccessWeight = make([]int32, 0, len(_arr_))
|
|
|
|
for _, _e_ := range _arr_ {
|
|
var _list_v_ int32
|
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
|
_v.BumpSuccessWeight = append(_v.BumpSuccessWeight, _list_v_)
|
|
}
|
|
}
|
|
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["HpBumpWeight"].(float64); !_ok_ { err = errors.New("HpBumpWeight error"); return }; _v.HpBumpWeight = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["HpBumpCD"].(float64); !_ok_ { err = errors.New("HpBumpCD error"); return }; _v.HpBumpCD = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["HpBumpFailWeight"].(float64); !_ok_ { err = errors.New("HpBumpFailWeight error"); return }; _v.HpBumpFailWeight = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["HpBumpSuccessWeight"].(float64); !_ok_ { err = errors.New("HpBumpSuccessWeight error"); return }; _v.HpBumpSuccessWeight = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["CatchQteWeight"].(float64); !_ok_ { err = errors.New("CatchQteWeight error"); return }; _v.CatchQteWeight = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["CatchQteCD"].(float64); !_ok_ { err = errors.New("CatchQteCD error"); return }; _v.CatchQteCD = int32(_tempNum_) }
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["CatchQteFailWeight"].(float64); !_ok_ { err = errors.New("CatchQteFailWeight error"); return }; _v.CatchQteFailWeight = int32(_tempNum_) }
|
|
{
|
|
var _arr_ []interface{}
|
|
var _ok_ bool
|
|
if _arr_, _ok_ = _buf["CatchQteSuccessWeight"].([]interface{}); !_ok_ { err = errors.New("CatchQteSuccessWeight error"); return }
|
|
|
|
_v.CatchQteSuccessWeight = make([]int32, 0, len(_arr_))
|
|
|
|
for _, _e_ := range _arr_ {
|
|
var _list_v_ int32
|
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
|
_v.CatchQteSuccessWeight = append(_v.CatchQteSuccessWeight, _list_v_)
|
|
}
|
|
}
|
|
|
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["EmptyWeight"].(float64); !_ok_ { err = errors.New("EmptyWeight error"); return }; _v.EmptyWeight = int32(_tempNum_) }
|
|
return
|
|
}
|
|
|
|
func DeserializeGameBukashiAiData(_buf map[string]interface{}) (*GameBukashiAiData, error) {
|
|
v := &GameBukashiAiData{}
|
|
if err := v.Deserialize(_buf); err == nil {
|
|
return v, nil
|
|
} else {
|
|
return nil, err
|
|
}
|
|
}
|