SingleSoldierLevel.cs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Changes to this file may cause incorrect behavior and will be lost if
  5. // the code is regenerated.
  6. // </auto-generated>
  7. //------------------------------------------------------------------------------
  8. using Bright.Serialization;
  9. using System.Collections.Generic;
  10. using SimpleJSON;
  11. namespace cfg
  12. {
  13. public sealed partial class SingleSoldierLevel : Bright.Config.BeanBase
  14. {
  15. public SingleSoldierLevel(JSONNode _json)
  16. {
  17. { if(!_json["Level"].IsNumber) { throw new SerializationException(); } Level = _json["Level"]; }
  18. { if(!_json["Soldier"].IsString) { throw new SerializationException(); } Soldier = _json["Soldier"]; }
  19. { if(!_json["EXP"].IsNumber) { throw new SerializationException(); } EXP = _json["EXP"]; }
  20. { if(!_json["SummonAttack"].IsNumber) { throw new SerializationException(); } SummonAttack = _json["SummonAttack"]; }
  21. { if(!_json["MarchAttack"].IsNumber) { throw new SerializationException(); } MarchAttack = _json["MarchAttack"]; }
  22. { if(!_json["HP"].IsNumber) { throw new SerializationException(); } HP = _json["HP"]; }
  23. { if(!_json["armor"].IsNumber) { throw new SerializationException(); } Armor = _json["armor"]; }
  24. { if(!_json["MP"].IsNumber) { throw new SerializationException(); } MP = _json["MP"]; }
  25. { if(!_json["ArmorPierce"].IsNumber) { throw new SerializationException(); } ArmorPierce = _json["ArmorPierce"]; }
  26. PostInit();
  27. }
  28. public SingleSoldierLevel(int Level, string Soldier, int EXP, int SummonAttack, int MarchAttack, int HP, int armor, int MP, int ArmorPierce )
  29. {
  30. this.Level = Level;
  31. this.Soldier = Soldier;
  32. this.EXP = EXP;
  33. this.SummonAttack = SummonAttack;
  34. this.MarchAttack = MarchAttack;
  35. this.HP = HP;
  36. this.Armor = armor;
  37. this.MP = MP;
  38. this.ArmorPierce = ArmorPierce;
  39. PostInit();
  40. }
  41. public static SingleSoldierLevel DeserializeSingleSoldierLevel(JSONNode _json)
  42. {
  43. return new SingleSoldierLevel(_json);
  44. }
  45. public int Level { get; private set; }
  46. public string Soldier { get; private set; }
  47. public int EXP { get; private set; }
  48. public int SummonAttack { get; private set; }
  49. public int MarchAttack { get; private set; }
  50. public int HP { get; private set; }
  51. public int Armor { get; private set; }
  52. public int MP { get; private set; }
  53. public int ArmorPierce { get; private set; }
  54. public const int __ID__ = -1866386518;
  55. public override int GetTypeId() => __ID__;
  56. public void Resolve(Dictionary<string, object> _tables)
  57. {
  58. PostResolve();
  59. }
  60. public void TranslateText(System.Func<string, string, string> translator)
  61. {
  62. }
  63. public override string ToString()
  64. {
  65. return "{ "
  66. + "Level:" + Level + ","
  67. + "Soldier:" + Soldier + ","
  68. + "EXP:" + EXP + ","
  69. + "SummonAttack:" + SummonAttack + ","
  70. + "MarchAttack:" + MarchAttack + ","
  71. + "HP:" + HP + ","
  72. + "Armor:" + Armor + ","
  73. + "MP:" + MP + ","
  74. + "ArmorPierce:" + ArmorPierce + ","
  75. + "}";
  76. }
  77. partial void PostInit();
  78. partial void PostResolve();
  79. }
  80. }