//------------------------------------------------------------------------------ // // 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.CharacterCfg { public sealed partial class DataCharacterLevelExp : Bright.Config.BeanBase { public DataCharacterLevelExp(JSONNode _json) { { if(!_json["Level"].IsNumber) { throw new SerializationException(); } Level = _json["Level"]; } { if(!_json["EXP"].IsNumber) { throw new SerializationException(); } EXP = _json["EXP"]; } PostInit(); } public DataCharacterLevelExp(int Level, int EXP ) { this.Level = Level; this.EXP = EXP; PostInit(); } public static DataCharacterLevelExp DeserializeDataCharacterLevelExp(JSONNode _json) { return new CharacterCfg.DataCharacterLevelExp(_json); } /// /// 等级 /// public int Level { get; private set; } /// /// 上一级到此等级所需经验 /// public int EXP { get; private set; } public const int __ID__ = -1053368699; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "Level:" + Level + "," + "EXP:" + EXP + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }