92 lines
3.2 KiB
C#
92 lines
3.2 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.MonsterCfg
|
|
{
|
|
|
|
public sealed partial class DataMonsterLevelUp : Bright.Config.BeanBase
|
|
{
|
|
public DataMonsterLevelUp(JSONNode _json)
|
|
{
|
|
{ if(!_json["Level"].IsNumber) { throw new SerializationException(); } Level = _json["Level"]; }
|
|
{ if(!_json["AttackLevelUpTemplate"].IsNumber) { throw new SerializationException(); } AttackLevelUpTemplate = _json["AttackLevelUpTemplate"]; }
|
|
{ if(!_json["HpLevelUpTemplate"].IsNumber) { throw new SerializationException(); } HpLevelUpTemplate = _json["HpLevelUpTemplate"]; }
|
|
{ if(!_json["ShieldLevelUpTemplate"].IsNumber) { throw new SerializationException(); } ShieldLevelUpTemplate = _json["ShieldLevelUpTemplate"]; }
|
|
{ if(!_json["DefenceLevelUpTemplate"].IsNumber) { throw new SerializationException(); } DefenceLevelUpTemplate = _json["DefenceLevelUpTemplate"]; }
|
|
PostInit();
|
|
}
|
|
|
|
public DataMonsterLevelUp(int Level, float AttackLevelUpTemplate, float HpLevelUpTemplate, float ShieldLevelUpTemplate, float DefenceLevelUpTemplate )
|
|
{
|
|
this.Level = Level;
|
|
this.AttackLevelUpTemplate = AttackLevelUpTemplate;
|
|
this.HpLevelUpTemplate = HpLevelUpTemplate;
|
|
this.ShieldLevelUpTemplate = ShieldLevelUpTemplate;
|
|
this.DefenceLevelUpTemplate = DefenceLevelUpTemplate;
|
|
PostInit();
|
|
}
|
|
|
|
public static DataMonsterLevelUp DeserializeDataMonsterLevelUp(JSONNode _json)
|
|
{
|
|
return new MonsterCfg.DataMonsterLevelUp(_json);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 等级
|
|
/// </summary>
|
|
public int Level { get; private set; }
|
|
/// <summary>
|
|
/// 怪物攻击成长模板
|
|
/// </summary>
|
|
public float AttackLevelUpTemplate { get; private set; }
|
|
/// <summary>
|
|
/// 怪物血量成长模板
|
|
/// </summary>
|
|
public float HpLevelUpTemplate { get; private set; }
|
|
/// <summary>
|
|
/// 怪物护盾成长模板
|
|
/// </summary>
|
|
public float ShieldLevelUpTemplate { get; private set; }
|
|
/// <summary>
|
|
/// 怪物防御成长模板
|
|
/// </summary>
|
|
public float DefenceLevelUpTemplate { get; private set; }
|
|
|
|
public const int __ID__ = 2034283667;
|
|
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 + ","
|
|
+ "AttackLevelUpTemplate:" + AttackLevelUpTemplate + ","
|
|
+ "HpLevelUpTemplate:" + HpLevelUpTemplate + ","
|
|
+ "ShieldLevelUpTemplate:" + ShieldLevelUpTemplate + ","
|
|
+ "DefenceLevelUpTemplate:" + DefenceLevelUpTemplate + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|