summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/AttackApplyState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/AttackApplyState.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/AttackApplyState.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/AttackApplyState.cs b/Client/Assets/Scripts/XMainClient/AttackApplyState.cs
new file mode 100644
index 00000000..cdf1fe3d
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/AttackApplyState.cs
@@ -0,0 +1,18 @@
+using System;
+
+namespace XMainClient
+{
+ internal abstract class AttackApplyState
+ {
+ public abstract int GetStateMask();
+
+ public abstract bool IsApplyState(XEntity entity);
+
+ public abstract bool IsDefenseState(XEntity entity);
+
+ public virtual void ApplyState(XEntity caster, ProjectDamageResult result)
+ {
+ result.Flag |= this.GetStateMask();
+ }
+ }
+}