summaryrefslogtreecommitdiff
path: root/src/controls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls.rs')
-rw-r--r--src/controls.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls.rs b/src/controls.rs
index d7471e5..d317317 100644
--- a/src/controls.rs
+++ b/src/controls.rs
@@ -1,6 +1,7 @@
use serde_json::Value;
+use specs::Entity;
use crate::{PlayerId, Pos};
#[derive(Debug, Clone)]
@@ -45,7 +46,8 @@ pub enum Control {
Take(Option<usize>),
Drop(usize),
Use(usize),
- Attack(Vec<Direction>)
+ Attack(Vec<Direction>),
+ AttackTarget(Entity)
}