//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Bright.Serialization; using System.Collections.Generic; using SimpleJSON; namespace cfg { public sealed partial class EventHookWheelReward : Bright.Config.BeanBase { public JSONNode json; public EventHookWheelReward(JSONNode _json) { { if(!_json["Index"].IsNumber) { throw new SerializationException(); } Index = _json["Index"]; } { if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; } { if(!_json["RoundLimit"].IsNumber) { throw new SerializationException(); } RoundLimit = _json["RoundLimit"]; } { if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; } { if(!_json["DropID"].IsNumber) { throw new SerializationException(); } DropID = _json["DropID"]; } { if(!_json["LeftWeight"].IsNumber) { throw new SerializationException(); } LeftWeight = _json["LeftWeight"]; } { if(!_json["RightWeight"].IsNumber) { throw new SerializationException(); } RightWeight = _json["RightWeight"]; } { if(!_json["Fx"].IsString) { throw new SerializationException(); } Fx = _json["Fx"]; } { if(!_json["Audio"].IsString) { throw new SerializationException(); } Audio = _json["Audio"]; } json = _json; PostInit(); } public EventHookWheelReward(int Index, int Quality, int RoundLimit, int Weight, int DropID, int LeftWeight, int RightWeight, string Fx, string Audio ) { this.Index = Index; this.Quality = Quality; this.RoundLimit = RoundLimit; this.Weight = Weight; this.DropID = DropID; this.LeftWeight = LeftWeight; this.RightWeight = RightWeight; this.Fx = Fx; this.Audio = Audio; PostInit(); } public static EventHookWheelReward DeserializeEventHookWheelReward(JSONNode _json) { return new EventHookWheelReward(_json); } /// /// 从红色开始算起,顺时针 /// public int Index { get; private set; } public int Quality { get; private set; } public int RoundLimit { get; private set; } public int Weight { get; private set; } /// /// 对应drop表 /// public int DropID { get; private set; } /// /// 最后停留在左边 /// public int LeftWeight { get; private set; } /// /// 最后停留在右边 /// public int RightWeight { get; private set; } public string Fx { get; private set; } public string Audio { get; private set; } public const int __ID__ = -1275680915; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "Index:" + Index + "," + "Quality:" + Quality + "," + "RoundLimit:" + RoundLimit + "," + "Weight:" + Weight + "," + "DropID:" + DropID + "," + "LeftWeight:" + LeftWeight + "," + "RightWeight:" + RightWeight + "," + "Fx:" + Fx + "," + "Audio:" + Audio + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }