//------------------------------------------------------------------------------ // // 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 WheelLevel : Bright.Config.BeanBase { public JSONNode json; public WheelLevel(JSONNode _json) { { if(!_json["Level"].IsNumber) { throw new SerializationException(); } Level = _json["Level"]; } { if(!_json["CostNumber"].IsNumber) { throw new SerializationException(); } CostNumber = _json["CostNumber"]; } { if(!_json["Wheel"].IsNumber) { throw new SerializationException(); } Wheel = _json["Wheel"]; } { if(!_json["BuyCount"].IsNumber) { throw new SerializationException(); } BuyCount = _json["BuyCount"]; } { if(!_json["Price"].IsNumber) { throw new SerializationException(); } Price = _json["Price"]; } { if(!_json["NextLevel"].IsNumber) { throw new SerializationException(); } NextLevel = _json["NextLevel"]; } { if(!_json["NextLevelPoint"].IsNumber) { throw new SerializationException(); } NextLevelPoint = _json["NextLevelPoint"]; } { var __json0 = _json["WheelDrop"]; if(!__json0.IsArray) { throw new SerializationException(); } WheelDrop = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } WheelDrop.Add(__v0); } } json = _json; PostInit(); } public WheelLevel(int Level, int CostNumber, int Wheel, int BuyCount, int Price, int NextLevel, int NextLevelPoint, System.Collections.Generic.List WheelDrop ) { this.Level = Level; this.CostNumber = CostNumber; this.Wheel = Wheel; this.BuyCount = BuyCount; this.Price = Price; this.NextLevel = NextLevel; this.NextLevelPoint = NextLevelPoint; this.WheelDrop = WheelDrop; PostInit(); } public static WheelLevel DeserializeWheelLevel(JSONNode _json) { return new WheelLevel(_json); } public int Level { get; private set; } public int CostNumber { get; private set; } public int Wheel { get; private set; } public int BuyCount { get; private set; } public int Price { get; private set; } /// /// -1为结束 /// public int NextLevel { get; private set; } /// /// -1为结束 /// public int NextLevelPoint { get; private set; } /// /// 对应drop主键 /// public System.Collections.Generic.List WheelDrop { get; private set; } public const int __ID__ = -669471479; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "Level:" + Level + "," + "CostNumber:" + CostNumber + "," + "Wheel:" + Wheel + "," + "BuyCount:" + BuyCount + "," + "Price:" + Price + "," + "NextLevel:" + NextLevel + "," + "NextLevelPoint:" + NextLevelPoint + "," + "WheelDrop:" + Bright.Common.StringUtil.CollectionToString(WheelDrop) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }