SingleCreateEnemy7Config.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 SingleCreateEnemy7Config : Bright.Config.BeanBase
  14. {
  15. public SingleCreateEnemy7Config(JSONNode _json)
  16. {
  17. { if(!_json["WaveID"].IsNumber) { throw new SerializationException(); } WaveID = _json["WaveID"]; }
  18. { if(!_json["WaveName"].IsString) { throw new SerializationException(); } WaveName = _json["WaveName"]; }
  19. { if(!_json["WaveTime"].IsNumber) { throw new SerializationException(); } WaveTime = _json["WaveTime"]; }
  20. { if(!_json["BuildingID"].IsString) { throw new SerializationException(); } BuildingID = _json["BuildingID"]; }
  21. { if(!_json["BuildingHP"].IsNumber) { throw new SerializationException(); } BuildingHP = _json["BuildingHP"]; }
  22. { if(!_json["EnemyName"].IsString) { throw new SerializationException(); } EnemyName = _json["EnemyName"]; }
  23. { var __json0 = _json["Position"]; if(!__json0.IsArray) { throw new SerializationException(); } Position = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Position.Add(__v0); } }
  24. { if(!_json["StartTime"].IsNumber) { throw new SerializationException(); } StartTime = _json["StartTime"]; }
  25. { if(!_json["EndTime"].IsNumber) { throw new SerializationException(); } EndTime = _json["EndTime"]; }
  26. { if(!_json["Count"].IsNumber) { throw new SerializationException(); } Count = _json["Count"]; }
  27. { if(!_json["AttackRatio"].IsNumber) { throw new SerializationException(); } AttackRatio = _json["AttackRatio"]; }
  28. { if(!_json["SpeedRatio"].IsNumber) { throw new SerializationException(); } SpeedRatio = _json["SpeedRatio"]; }
  29. { if(!_json["HPRatio"].IsNumber) { throw new SerializationException(); } HPRatio = _json["HPRatio"]; }
  30. { if(!_json["ArmorRatio"].IsNumber) { throw new SerializationException(); } ArmorRatio = _json["ArmorRatio"]; }
  31. { if(!_json["ArmorPiercingRatio"].IsNumber) { throw new SerializationException(); } ArmorPiercingRatio = _json["ArmorPiercingRatio"]; }
  32. PostInit();
  33. }
  34. public SingleCreateEnemy7Config(float WaveID, string WaveName, int WaveTime, string BuildingID, float BuildingHP, string EnemyName, System.Collections.Generic.List<int> Position, int StartTime, int EndTime, int Count, float AttackRatio, float SpeedRatio, float HPRatio, float ArmorRatio, float ArmorPiercingRatio )
  35. {
  36. this.WaveID = WaveID;
  37. this.WaveName = WaveName;
  38. this.WaveTime = WaveTime;
  39. this.BuildingID = BuildingID;
  40. this.BuildingHP = BuildingHP;
  41. this.EnemyName = EnemyName;
  42. this.Position = Position;
  43. this.StartTime = StartTime;
  44. this.EndTime = EndTime;
  45. this.Count = Count;
  46. this.AttackRatio = AttackRatio;
  47. this.SpeedRatio = SpeedRatio;
  48. this.HPRatio = HPRatio;
  49. this.ArmorRatio = ArmorRatio;
  50. this.ArmorPiercingRatio = ArmorPiercingRatio;
  51. PostInit();
  52. }
  53. public static SingleCreateEnemy7Config DeserializeSingleCreateEnemy7Config(JSONNode _json)
  54. {
  55. return new SingleCreateEnemy7Config(_json);
  56. }
  57. /// <summary>
  58. /// 表格参数:
  59. /// </summary>
  60. public float WaveID { get; private set; }
  61. /// <summary>
  62. /// 宽:
  63. /// </summary>
  64. public string WaveName { get; private set; }
  65. /// <summary>
  66. /// 140
  67. /// </summary>
  68. public int WaveTime { get; private set; }
  69. /// <summary>
  70. /// 经验倍率:
  71. /// </summary>
  72. public string BuildingID { get; private set; }
  73. /// <summary>
  74. /// 1
  75. /// </summary>
  76. public float BuildingHP { get; private set; }
  77. public string EnemyName { get; private set; }
  78. public System.Collections.Generic.List<int> Position { get; private set; }
  79. public int StartTime { get; private set; }
  80. public int EndTime { get; private set; }
  81. public int Count { get; private set; }
  82. public float AttackRatio { get; private set; }
  83. public float SpeedRatio { get; private set; }
  84. public float HPRatio { get; private set; }
  85. public float ArmorRatio { get; private set; }
  86. public float ArmorPiercingRatio { get; private set; }
  87. public const int __ID__ = 937004917;
  88. public override int GetTypeId() => __ID__;
  89. public void Resolve(Dictionary<string, object> _tables)
  90. {
  91. PostResolve();
  92. }
  93. public void TranslateText(System.Func<string, string, string> translator)
  94. {
  95. }
  96. public override string ToString()
  97. {
  98. return "{ "
  99. + "WaveID:" + WaveID + ","
  100. + "WaveName:" + WaveName + ","
  101. + "WaveTime:" + WaveTime + ","
  102. + "BuildingID:" + BuildingID + ","
  103. + "BuildingHP:" + BuildingHP + ","
  104. + "EnemyName:" + EnemyName + ","
  105. + "Position:" + Bright.Common.StringUtil.CollectionToString(Position) + ","
  106. + "StartTime:" + StartTime + ","
  107. + "EndTime:" + EndTime + ","
  108. + "Count:" + Count + ","
  109. + "AttackRatio:" + AttackRatio + ","
  110. + "SpeedRatio:" + SpeedRatio + ","
  111. + "HPRatio:" + HPRatio + ","
  112. + "ArmorRatio:" + ArmorRatio + ","
  113. + "ArmorPiercingRatio:" + ArmorPiercingRatio + ","
  114. + "}";
  115. }
  116. partial void PostInit();
  117. partial void PostResolve();
  118. }
  119. }