aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/imperative.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/shared/imperative.rs b/src/shared/imperative.rs
index d9d727f..256ea1a 100644
--- a/src/shared/imperative.rs
+++ b/src/shared/imperative.rs
@@ -6,5 +6,16 @@ use serde::Serialize;
pub enum Imperative {
Idle,
WalkTo(Vec2),
- Attack(PlayerId),
+ Attack(AttackKey, PlayerId),
+}
+
+#[derive(Resource, Copy, Clone, PartialEq, Debug, Deserialize, Serialize)]
+pub enum AttackKey {
+ A,
+ Q,
+ W,
+ E,
+ R,
+ D,
+ F,
}