From 16b22886bf137138d3c5a7b8a6e9c6091835cab7 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Sat, 1 Apr 2023 17:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sys/configure/structs/Game.PotionFly.go | 41 +++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 sys/configure/structs/Game.PotionFly.go diff --git a/sys/configure/structs/Game.PotionFly.go b/sys/configure/structs/Game.PotionFly.go new file mode 100644 index 000000000..79ccd8467 --- /dev/null +++ b/sys/configure/structs/Game.PotionFly.go @@ -0,0 +1,41 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +import "errors" + +type GamePotionFly struct { + Id string + Weight int32 + Score int32 + EffectType int32 +} + +const TypeId_GamePotionFly = 836324 + +func (*GamePotionFly) GetTypeId() int32 { + return 836324 +} + +func (_v *GamePotionFly)Deserialize(_buf map[string]interface{}) (err error) { + { var _ok_ bool; if _v.Id, _ok_ = _buf["Id"].(string); !_ok_ { err = errors.New("Id error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["weight"].(float64); !_ok_ { err = errors.New("weight error"); return }; _v.Weight = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["score"].(float64); !_ok_ { err = errors.New("score error"); return }; _v.Score = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["effectType"].(float64); !_ok_ { err = errors.New("effectType error"); return }; _v.EffectType = int32(_tempNum_) } + return +} + +func DeserializeGamePotionFly(_buf map[string]interface{}) (*GamePotionFly, error) { + v := &GamePotionFly{} + if err := v.Deserialize(_buf); err == nil { + return v, nil + } else { + return nil, err + } +}