//------------------------------------------------------------------------------
//
// 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 SingleSoldierLevel : Bright.Config.BeanBase
{
public SingleSoldierLevel(JSONNode _json)
{
{ if(!_json["Level"].IsNumber) { throw new SerializationException(); } Level = _json["Level"]; }
{ if(!_json["Soldier"].IsString) { throw new SerializationException(); } Soldier = _json["Soldier"]; }
{ if(!_json["EXP"].IsNumber) { throw new SerializationException(); } EXP = _json["EXP"]; }
{ if(!_json["SummonAttack"].IsNumber) { throw new SerializationException(); } SummonAttack = _json["SummonAttack"]; }
{ if(!_json["MarchAttack"].IsNumber) { throw new SerializationException(); } MarchAttack = _json["MarchAttack"]; }
{ if(!_json["HP"].IsNumber) { throw new SerializationException(); } HP = _json["HP"]; }
{ if(!_json["armor"].IsNumber) { throw new SerializationException(); } Armor = _json["armor"]; }
{ if(!_json["MP"].IsNumber) { throw new SerializationException(); } MP = _json["MP"]; }
{ if(!_json["ArmorPierce"].IsNumber) { throw new SerializationException(); } ArmorPierce = _json["ArmorPierce"]; }
PostInit();
}
public SingleSoldierLevel(int Level, string Soldier, int EXP, int SummonAttack, int MarchAttack, int HP, int armor, int MP, int ArmorPierce )
{
this.Level = Level;
this.Soldier = Soldier;
this.EXP = EXP;
this.SummonAttack = SummonAttack;
this.MarchAttack = MarchAttack;
this.HP = HP;
this.Armor = armor;
this.MP = MP;
this.ArmorPierce = ArmorPierce;
PostInit();
}
public static SingleSoldierLevel DeserializeSingleSoldierLevel(JSONNode _json)
{
return new SingleSoldierLevel(_json);
}
public int Level { get; private set; }
public string Soldier { get; private set; }
public int EXP { get; private set; }
public int SummonAttack { get; private set; }
public int MarchAttack { get; private set; }
public int HP { get; private set; }
public int Armor { get; private set; }
public int MP { get; private set; }
public int ArmorPierce { get; private set; }
public const int __ID__ = -1866386518;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Level:" + Level + ","
+ "Soldier:" + Soldier + ","
+ "EXP:" + EXP + ","
+ "SummonAttack:" + SummonAttack + ","
+ "MarchAttack:" + MarchAttack + ","
+ "HP:" + HP + ","
+ "Armor:" + Armor + ","
+ "MP:" + MP + ","
+ "ArmorPierce:" + ArmorPierce + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}