summaryrefslogtreecommitdiff
path: root/dungeon/src/player_input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dungeon/src/player_input.rs')
-rw-r--r--dungeon/src/player_input.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/dungeon/src/player_input.rs b/dungeon/src/player_input.rs
index aa0ef14..ddaad9f 100644
--- a/dungeon/src/player_input.rs
+++ b/dungeon/src/player_input.rs
@@ -12,5 +12,8 @@ pub struct PlayerInput {
/// (eg if the player is holding multiple keys at once,
/// or a joystick)
pub direction: Option<Direction>,
+ /// If the player is currently attempting to interact
+ /// with some object, entity, etc.
+ pub interact: bool,
// other player actions are to be added later
}