go_dreamfactory/sys/configure/structs/Game.StoneBossData.go

40 lines
1.5 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 GameStoneBossData struct {
BossId int32
FriendlyBuffGroup int32
EnemyBuffGroup int32
}
const TypeId_GameStoneBossData = -2103514304
func (*GameStoneBossData) GetTypeId() int32 {
return -2103514304
}
func (_v *GameStoneBossData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["BossId"].(float64); !_ok_ { err = errors.New("BossId error"); return }; _v.BossId = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["FriendlyBuffGroup"].(float64); !_ok_ { err = errors.New("FriendlyBuffGroup error"); return }; _v.FriendlyBuffGroup = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["EnemyBuffGroup"].(float64); !_ok_ { err = errors.New("EnemyBuffGroup error"); return }; _v.EnemyBuffGroup = int32(_tempNum_) }
return
}
func DeserializeGameStoneBossData(_buf map[string]interface{}) (*GameStoneBossData, error) {
v := &GameStoneBossData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}