BuffFunctors.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 Luban;
  9. using SimpleJSON;
  10. namespace cfg
  11. {
  12. public partial struct BuffFunctors
  13. {
  14. public BuffFunctors(JSONNode _buf)
  15. {
  16. { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
  17. { var _j = _buf["on_round_start"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnRoundStart = _j; } } else { OnRoundStart = null; } }
  18. { var _j = _buf["on_round_end"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnRoundEnd = _j; } } else { OnRoundEnd = null; } }
  19. { var _j = _buf["on_action_start"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnActionStart = _j; } } else { OnActionStart = null; } }
  20. { var _j = _buf["on_battle_start"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnBattleStart = _j; } } else { OnBattleStart = null; } }
  21. { var _j = _buf["on_action_end"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnActionEnd = _j; } } else { OnActionEnd = null; } }
  22. { var _j = _buf["on_sel_execute_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnSelExecuteAfter = _j; } } else { OnSelExecuteAfter = null; } }
  23. { var _j = _buf["on_active_skill_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnActiveSkillBefore = _j; } } else { OnActiveSkillBefore = null; } }
  24. { var _j = _buf["on_active_skill_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnActiveSkillAfter = _j; } } else { OnActiveSkillAfter = null; } }
  25. { var _j = _buf["on_active_skill_successfully_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnActiveSkillSuccessfullyBefore = _j; } } else { OnActiveSkillSuccessfullyBefore = null; } }
  26. { var _j = _buf["on_active_skill_successfully_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnActiveSkillSuccessfullyAfter = _j; } } else { OnActiveSkillSuccessfullyAfter = null; } }
  27. { var _j = _buf["on_active_skill_received_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnActiveSkillReceivedBefore = _j; } } else { OnActiveSkillReceivedBefore = null; } }
  28. { var _j = _buf["on_active_skill_received_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnActiveSkillReceivedAfter = _j; } } else { OnActiveSkillReceivedAfter = null; } }
  29. { var _j = _buf["on_normal_attack_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnNormalAttackBefore = _j; } } else { OnNormalAttackBefore = null; } }
  30. { var _j = _buf["on_normal_attack_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnNormalAttackAfter = _j; } } else { OnNormalAttackAfter = null; } }
  31. { var _j = _buf["on_normal_attack_received_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnNormalAttackReceivedBefore = _j; } } else { OnNormalAttackReceivedBefore = null; } }
  32. { var _j = _buf["on_normal_attack_received_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnNormalAttackReceivedAfter = _j; } } else { OnNormalAttackReceivedAfter = null; } }
  33. { var _j = _buf["on_chase_skill_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnChaseSkillBefore = _j; } } else { OnChaseSkillBefore = null; } }
  34. { var _j = _buf["on_chase_skill_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnChaseSkillAfter = _j; } } else { OnChaseSkillAfter = null; } }
  35. { var _j = _buf["on_status_applied_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnStatusAppliedBefore = _j; } } else { OnStatusAppliedBefore = null; } }
  36. { var _j = _buf["on_status_applied_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnStatusAppliedAfter = _j; } } else { OnStatusAppliedAfter = null; } }
  37. { var _j = _buf["on_damage_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnDamageBefore = _j; } } else { OnDamageBefore = null; } }
  38. { var _j = _buf["on_damage_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnDamageAfter = _j; } } else { OnDamageAfter = null; } }
  39. { var _j = _buf["on_healing_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnHealingBefore = _j; } } else { OnHealingBefore = null; } }
  40. { var _j = _buf["on_healing_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnHealingAfter = _j; } } else { OnHealingAfter = null; } }
  41. { var _j = _buf["on_attack_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnAttackBefore = _j; } } else { OnAttackBefore = null; } }
  42. { var _j = _buf["on_attack_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnAttackAfter = _j; } } else { OnAttackAfter = null; } }
  43. { var _j = _buf["on_status_received_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnStatusReceivedBefore = _j; } } else { OnStatusReceivedBefore = null; } }
  44. { var _j = _buf["on_status_received_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnStatusReceivedAfter = _j; } } else { OnStatusReceivedAfter = null; } }
  45. { var _j = _buf["on_damage_received_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnDamageReceivedBefore = _j; } } else { OnDamageReceivedBefore = null; } }
  46. { var _j = _buf["on_damage_received_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnDamageReceivedAfter = _j; } } else { OnDamageReceivedAfter = null; } }
  47. { var _j = _buf["on_healing_received_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnHealingReceivedBefore = _j; } } else { OnHealingReceivedBefore = null; } }
  48. { var _j = _buf["on_healing_received_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnHealingReceivedAfter = _j; } } else { OnHealingReceivedAfter = null; } }
  49. { var _j = _buf["on_target_attacked_before"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnTargetAttackedBefore = _j; } } else { OnTargetAttackedBefore = null; } }
  50. { var _j = _buf["on_target_attacked_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnTargetAttackedAfter = _j; } } else { OnTargetAttackedAfter = null; } }
  51. { var _j = _buf["on_counterattack_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnCounterattackAfter = _j; } } else { OnCounterattackAfter = null; } }
  52. { var _j = _buf["on_counterattack_received_after"]; if (_j.Tag != JSONNodeType.None && _j.Tag != JSONNodeType.NullValue) { { if(!_j.IsString) { throw new SerializationException(); } OnCounterattackReceivedAfter = _j; } } else { OnCounterattackReceivedAfter = null; } }
  53. }
  54. public static BuffFunctors DeserializeBuffFunctors(JSONNode _buf)
  55. {
  56. return new BuffFunctors(_buf);
  57. }
  58. public readonly int Id;
  59. public readonly string OnRoundStart;
  60. public readonly string OnRoundEnd;
  61. public readonly string OnActionStart;
  62. public readonly string OnBattleStart;
  63. public readonly string OnActionEnd;
  64. public readonly string OnSelExecuteAfter;
  65. public readonly string OnActiveSkillBefore;
  66. public readonly string OnActiveSkillAfter;
  67. public readonly string OnActiveSkillSuccessfullyBefore;
  68. public readonly string OnActiveSkillSuccessfullyAfter;
  69. public readonly string OnActiveSkillReceivedBefore;
  70. public readonly string OnActiveSkillReceivedAfter;
  71. public readonly string OnNormalAttackBefore;
  72. public readonly string OnNormalAttackAfter;
  73. public readonly string OnNormalAttackReceivedBefore;
  74. public readonly string OnNormalAttackReceivedAfter;
  75. public readonly string OnChaseSkillBefore;
  76. public readonly string OnChaseSkillAfter;
  77. public readonly string OnStatusAppliedBefore;
  78. public readonly string OnStatusAppliedAfter;
  79. public readonly string OnDamageBefore;
  80. public readonly string OnDamageAfter;
  81. public readonly string OnHealingBefore;
  82. public readonly string OnHealingAfter;
  83. public readonly string OnAttackBefore;
  84. public readonly string OnAttackAfter;
  85. public readonly string OnStatusReceivedBefore;
  86. public readonly string OnStatusReceivedAfter;
  87. public readonly string OnDamageReceivedBefore;
  88. public readonly string OnDamageReceivedAfter;
  89. public readonly string OnHealingReceivedBefore;
  90. public readonly string OnHealingReceivedAfter;
  91. public readonly string OnTargetAttackedBefore;
  92. public readonly string OnTargetAttackedAfter;
  93. public readonly string OnCounterattackAfter;
  94. public readonly string OnCounterattackReceivedAfter;
  95. public void ResolveRef(Tables tables)
  96. {
  97. }
  98. public override string ToString()
  99. {
  100. return "{ "
  101. + "id:" + Id + ","
  102. + "onRoundStart:" + OnRoundStart + ","
  103. + "onRoundEnd:" + OnRoundEnd + ","
  104. + "onActionStart:" + OnActionStart + ","
  105. + "onBattleStart:" + OnBattleStart + ","
  106. + "onActionEnd:" + OnActionEnd + ","
  107. + "onSelExecuteAfter:" + OnSelExecuteAfter + ","
  108. + "onActiveSkillBefore:" + OnActiveSkillBefore + ","
  109. + "onActiveSkillAfter:" + OnActiveSkillAfter + ","
  110. + "onActiveSkillSuccessfullyBefore:" + OnActiveSkillSuccessfullyBefore + ","
  111. + "onActiveSkillSuccessfullyAfter:" + OnActiveSkillSuccessfullyAfter + ","
  112. + "onActiveSkillReceivedBefore:" + OnActiveSkillReceivedBefore + ","
  113. + "onActiveSkillReceivedAfter:" + OnActiveSkillReceivedAfter + ","
  114. + "onNormalAttackBefore:" + OnNormalAttackBefore + ","
  115. + "onNormalAttackAfter:" + OnNormalAttackAfter + ","
  116. + "onNormalAttackReceivedBefore:" + OnNormalAttackReceivedBefore + ","
  117. + "onNormalAttackReceivedAfter:" + OnNormalAttackReceivedAfter + ","
  118. + "onChaseSkillBefore:" + OnChaseSkillBefore + ","
  119. + "onChaseSkillAfter:" + OnChaseSkillAfter + ","
  120. + "onStatusAppliedBefore:" + OnStatusAppliedBefore + ","
  121. + "onStatusAppliedAfter:" + OnStatusAppliedAfter + ","
  122. + "onDamageBefore:" + OnDamageBefore + ","
  123. + "onDamageAfter:" + OnDamageAfter + ","
  124. + "onHealingBefore:" + OnHealingBefore + ","
  125. + "onHealingAfter:" + OnHealingAfter + ","
  126. + "onAttackBefore:" + OnAttackBefore + ","
  127. + "onAttackAfter:" + OnAttackAfter + ","
  128. + "onStatusReceivedBefore:" + OnStatusReceivedBefore + ","
  129. + "onStatusReceivedAfter:" + OnStatusReceivedAfter + ","
  130. + "onDamageReceivedBefore:" + OnDamageReceivedBefore + ","
  131. + "onDamageReceivedAfter:" + OnDamageReceivedAfter + ","
  132. + "onHealingReceivedBefore:" + OnHealingReceivedBefore + ","
  133. + "onHealingReceivedAfter:" + OnHealingReceivedAfter + ","
  134. + "onTargetAttackedBefore:" + OnTargetAttackedBefore + ","
  135. + "onTargetAttackedAfter:" + OnTargetAttackedAfter + ","
  136. + "onCounterattackAfter:" + OnCounterattackAfter + ","
  137. + "onCounterattackReceivedAfter:" + OnCounterattackReceivedAfter + ","
  138. + "}";
  139. }
  140. }
  141. }