//------------------------------------------------------------------------------ // // 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 EventToyMachineReward : Bright.Config.BeanBase { public JSONNode json; public EventToyMachineReward(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"]; } json = _json; PostInit(); } public EventToyMachineReward(int Index, int Quality, int RoundLimit, int Weight, int DropID ) { this.Index = Index; this.Quality = Quality; this.RoundLimit = RoundLimit; this.Weight = Weight; this.DropID = DropID; PostInit(); } public static EventToyMachineReward DeserializeEventToyMachineReward(JSONNode _json) { return new EventToyMachineReward(_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 const int __ID__ = 1793300530; 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 + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }