//------------------------------------------------------------------------------ // // 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 SignReward : Bright.Config.BeanBase { public JSONNode json; public SignReward(JSONNode _json) { { if(!_json["SignDay"].IsNumber) { throw new SerializationException(); } SignDay = _json["SignDay"]; } { if(!_json["DropID"].IsNumber) { throw new SerializationException(); } DropID = _json["DropID"]; } { if(!_json["multiplier"].IsNumber) { throw new SerializationException(); } Multiplier = _json["multiplier"]; } json = _json; PostInit(); } public SignReward(int SignDay, int DropID, int multiplier ) { this.SignDay = SignDay; this.DropID = DropID; this.Multiplier = multiplier; PostInit(); } public static SignReward DeserializeSignReward(JSONNode _json) { return new SignReward(_json); } public int SignDay { get; private set; } /// /// 对应drop表 /// public int DropID { get; private set; } public int Multiplier { get; private set; } public const int __ID__ = 471593836; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "SignDay:" + SignDay + "," + "DropID:" + DropID + "," + "Multiplier:" + Multiplier + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }