From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/BuffEffect.cs | 71 +++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/BuffEffect.cs (limited to 'Client/Assets/Scripts/XMainClient/BuffEffect.cs') diff --git a/Client/Assets/Scripts/XMainClient/BuffEffect.cs b/Client/Assets/Scripts/XMainClient/BuffEffect.cs new file mode 100644 index 00000000..af3c933c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BuffEffect.cs @@ -0,0 +1,71 @@ +using System; + +namespace XMainClient +{ + internal abstract class BuffEffect : IComparable + { + public virtual XBuffEffectPrioriy Priority + { + get + { + return XBuffEffectPrioriy.BEP_START; + } + } + + public bool bValid { get; set; } + + public abstract void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper); + + public abstract void OnRemove(XEntity entity, bool IsReplaced); + + public virtual void OnAppend(XEntity entity) + { + } + + public virtual void OnBattleEnd(XEntity entity) + { + } + + public virtual void OnBuffEffect(HurtInfo rawInput, ProjectDamageResult result) + { + } + + public virtual void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + } + + public virtual void OnComboChange(uint comboCount) + { + } + + public virtual void OnAttributeChanged(XAttrChangeEventArgs e) + { + } + + public virtual void OnQTEStateChanged(XSkillQTEEventArgs e) + { + } + + public virtual void OnRealDead(XRealDeadEventArgs e) + { + } + + public virtual bool CanBuffAdd(int clearType) + { + return true; + } + + public virtual void OnUpdate() + { + } + + public virtual void OnCastSkill(HurtInfo rawInput) + { + } + + public int CompareTo(BuffEffect other) + { + return this.Priority.CompareTo(other.Priority); + } + } +} -- cgit v1.1-26-g67d0