diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 04:19:34 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 04:19:34 +0100 |
commit | 937e1ed8d240c1a5b42f5b8cf1104321b9d79c4a (patch) | |
tree | c9cc6f8ec35e3e9b1ba97b5fd42091cf0ab2afb6 /src/shared/imperative.rs | |
parent | ab675360c0005718a3c9b8b5e7962af897269c04 (diff) |
fix: fix abilities selecting the right cooldown
Diffstat (limited to 'src/shared/imperative.rs')
-rw-r--r-- | src/shared/imperative.rs | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/shared/imperative.rs b/src/shared/imperative.rs index afdf244..44a0e43 100644 --- a/src/shared/imperative.rs +++ b/src/shared/imperative.rs @@ -8,17 +8,6 @@ use serde::Serialize; pub enum Imperative { Idle, WalkTo(Vec2), - AttackTarget(TargetedAbility, PlayerId), - AttackDirection(DirectionalAbility, Vec2), -} - -#[derive(Resource, Copy, Clone, PartialEq, Debug, Deserialize, Serialize)] -pub enum AttackKey { - A, - Q, - W, - E, - R, - F, - G, + AttackTarget(AbilitySlot, PlayerId), + AttackDirection(AbilitySlot, Vec2), } |