summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/BuffEffect.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/BuffEffect.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/BuffEffect.cs71
1 files changed, 71 insertions, 0 deletions
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<BuffEffect>
+ {
+ 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);
+ }
+ }
+}