| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- //------------------------------------------------------------------------------
- // <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 Luban;
- using SimpleJSON;
- namespace cfg
- {
- public partial struct BuffFunctors
- {
- public BuffFunctors(JSONNode _buf)
- {
- { if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- { 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; } }
- }
- public static BuffFunctors DeserializeBuffFunctors(JSONNode _buf)
- {
- return new BuffFunctors(_buf);
- }
- public readonly int Id;
- public readonly string OnRoundStart;
- public readonly string OnRoundEnd;
- public readonly string OnActionStart;
- public readonly string OnBattleStart;
- public readonly string OnActionEnd;
- public readonly string OnSelExecuteAfter;
- public readonly string OnActiveSkillBefore;
- public readonly string OnActiveSkillAfter;
- public readonly string OnActiveSkillSuccessfullyBefore;
- public readonly string OnActiveSkillSuccessfullyAfter;
- public readonly string OnActiveSkillReceivedBefore;
- public readonly string OnActiveSkillReceivedAfter;
- public readonly string OnNormalAttackBefore;
- public readonly string OnNormalAttackAfter;
- public readonly string OnNormalAttackReceivedBefore;
- public readonly string OnNormalAttackReceivedAfter;
- public readonly string OnChaseSkillBefore;
- public readonly string OnChaseSkillAfter;
- public readonly string OnStatusAppliedBefore;
- public readonly string OnStatusAppliedAfter;
- public readonly string OnDamageBefore;
- public readonly string OnDamageAfter;
- public readonly string OnHealingBefore;
- public readonly string OnHealingAfter;
- public readonly string OnAttackBefore;
- public readonly string OnAttackAfter;
- public readonly string OnStatusReceivedBefore;
- public readonly string OnStatusReceivedAfter;
- public readonly string OnDamageReceivedBefore;
- public readonly string OnDamageReceivedAfter;
- public readonly string OnHealingReceivedBefore;
- public readonly string OnHealingReceivedAfter;
- public readonly string OnTargetAttackedBefore;
- public readonly string OnTargetAttackedAfter;
- public readonly string OnCounterattackAfter;
- public readonly string OnCounterattackReceivedAfter;
-
- public void ResolveRef(Tables tables)
- {
- }
- public override string ToString()
- {
- return "{ "
- + "id:" + Id + ","
- + "onRoundStart:" + OnRoundStart + ","
- + "onRoundEnd:" + OnRoundEnd + ","
- + "onActionStart:" + OnActionStart + ","
- + "onBattleStart:" + OnBattleStart + ","
- + "onActionEnd:" + OnActionEnd + ","
- + "onSelExecuteAfter:" + OnSelExecuteAfter + ","
- + "onActiveSkillBefore:" + OnActiveSkillBefore + ","
- + "onActiveSkillAfter:" + OnActiveSkillAfter + ","
- + "onActiveSkillSuccessfullyBefore:" + OnActiveSkillSuccessfullyBefore + ","
- + "onActiveSkillSuccessfullyAfter:" + OnActiveSkillSuccessfullyAfter + ","
- + "onActiveSkillReceivedBefore:" + OnActiveSkillReceivedBefore + ","
- + "onActiveSkillReceivedAfter:" + OnActiveSkillReceivedAfter + ","
- + "onNormalAttackBefore:" + OnNormalAttackBefore + ","
- + "onNormalAttackAfter:" + OnNormalAttackAfter + ","
- + "onNormalAttackReceivedBefore:" + OnNormalAttackReceivedBefore + ","
- + "onNormalAttackReceivedAfter:" + OnNormalAttackReceivedAfter + ","
- + "onChaseSkillBefore:" + OnChaseSkillBefore + ","
- + "onChaseSkillAfter:" + OnChaseSkillAfter + ","
- + "onStatusAppliedBefore:" + OnStatusAppliedBefore + ","
- + "onStatusAppliedAfter:" + OnStatusAppliedAfter + ","
- + "onDamageBefore:" + OnDamageBefore + ","
- + "onDamageAfter:" + OnDamageAfter + ","
- + "onHealingBefore:" + OnHealingBefore + ","
- + "onHealingAfter:" + OnHealingAfter + ","
- + "onAttackBefore:" + OnAttackBefore + ","
- + "onAttackAfter:" + OnAttackAfter + ","
- + "onStatusReceivedBefore:" + OnStatusReceivedBefore + ","
- + "onStatusReceivedAfter:" + OnStatusReceivedAfter + ","
- + "onDamageReceivedBefore:" + OnDamageReceivedBefore + ","
- + "onDamageReceivedAfter:" + OnDamageReceivedAfter + ","
- + "onHealingReceivedBefore:" + OnHealingReceivedBefore + ","
- + "onHealingReceivedAfter:" + OnHealingReceivedAfter + ","
- + "onTargetAttackedBefore:" + OnTargetAttackedBefore + ","
- + "onTargetAttackedAfter:" + OnTargetAttackedAfter + ","
- + "onCounterattackAfter:" + OnCounterattackAfter + ","
- + "onCounterattackReceivedAfter:" + OnCounterattackReceivedAfter + ","
- + "}";
- }
- }
- }
|