71 lines
1.8 KiB
C#
71 lines
1.8 KiB
C#
|
|
//------------------------------------------------------------------------------
|
||
|
|
// <auto-generated>
|
||
|
|
// This code was generated by a tool.
|
||
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||
|
|
// the code is regenerated.
|
||
|
|
// </auto-generated>
|
||
|
|
//------------------------------------------------------------------------------
|
||
|
|
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);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 等级
|
||
|
|
/// </summary>
|
||
|
|
public int Level { get; private set; }
|
||
|
|
/// <summary>
|
||
|
|
/// 上一级到此等级所需经验
|
||
|
|
/// </summary>
|
||
|
|
public int EXP { get; private set; }
|
||
|
|
|
||
|
|
public const int __ID__ = -1053368699;
|
||
|
|
public override int GetTypeId() => __ID__;
|
||
|
|
|
||
|
|
public void Resolve(Dictionary<string, object> _tables)
|
||
|
|
{
|
||
|
|
PostResolve();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public override string ToString()
|
||
|
|
{
|
||
|
|
return "{ "
|
||
|
|
+ "Level:" + Level + ","
|
||
|
|
+ "EXP:" + EXP + ","
|
||
|
|
+ "}";
|
||
|
|
}
|
||
|
|
|
||
|
|
partial void PostInit();
|
||
|
|
partial void PostResolve();
|
||
|
|
}
|
||
|
|
}
|