From 4f9957fc6b4bdb4c7430f878101b07051b40a2ff Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sun, 17 Mar 2024 12:48:41 +0100 Subject: feat: abilities --- src/shared/imperative.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/shared') 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, } -- cgit v1.2.3