diff options
Diffstat (limited to 'src/shared/imperative.rs')
-rw-r--r-- | src/shared/imperative.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/imperative.rs b/src/shared/imperative.rs index 61a4762..886355f 100644 --- a/src/shared/imperative.rs +++ b/src/shared/imperative.rs @@ -1,3 +1,4 @@ +use crate::shared::ability::*; use crate::shared::*; use serde::Deserialize; use serde::Serialize; @@ -6,8 +7,8 @@ use serde::Serialize; pub enum Imperative { Idle, WalkTo(Vec2), - AttackTarget(AttackKey, PlayerId), - AttackDirection(AttackKey, Vec2), + AttackTarget(TargetedAbility, PlayerId), + AttackDirection(DirectionalAbility, Vec2), } #[derive(Resource, Copy, Clone, PartialEq, Debug, Deserialize, Serialize)] |