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/AttackApplyState.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/AttackApplyState.cs (limited to 'Client/Assets/Scripts/XMainClient/AttackApplyState.cs') 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(); + } + } +} -- cgit v1.1-26-g67d0