//------------------------------------------------------------------------------ // // 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 ConstructionInfiniteReward : Bright.Config.BeanBase { public JSONNode json; public ConstructionInfiniteReward(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["Step"].IsNumber) { throw new SerializationException(); } Step = _json["Step"]; } { if(!_json["DropID"].IsNumber) { throw new SerializationException(); } DropID = _json["DropID"]; } json = _json; PostInit(); } public ConstructionInfiniteReward(int ID, int Step, int DropID ) { this.ID = ID; this.Step = Step; this.DropID = DropID; PostInit(); } public static ConstructionInfiniteReward DeserializeConstructionInfiniteReward(JSONNode _json) { return new ConstructionInfiniteReward(_json); } /// /// 在这些步数内循环 /// public int ID { get; private set; } /// /// 距离下一个奖励的步长 /// public int Step { get; private set; } public int DropID { get; private set; } public const int __ID__ = 1140194740; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "Step:" + Step + "," + "DropID:" + DropID + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }