summaryrefslogtreecommitdiff
path: root/dungeon/src/player_input.rs
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-19 23:10:38 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-19 23:11:05 -0500
commit9f2df31db6fe5450826cc68fd2158fe218dd8000 (patch)
tree07096790eb1ca63512700a130c2baae3b4d151b3 /dungeon/src/player_input.rs
parentdungeon: implement items (diff)
downloadDungeonCrawl-9f2df31db6fe5450826cc68fd2158fe218dd8000.tar.gz
DungeonCrawl-9f2df31db6fe5450826cc68fd2158fe218dd8000.tar.bz2
DungeonCrawl-9f2df31db6fe5450826cc68fd2158fe218dd8000.zip
dungeon: inventory usage
Diffstat (limited to 'dungeon/src/player_input.rs')
-rw-r--r--dungeon/src/player_input.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/dungeon/src/player_input.rs b/dungeon/src/player_input.rs
index ddaad9f..7fe85c3 100644
--- a/dungeon/src/player_input.rs
+++ b/dungeon/src/player_input.rs
@@ -15,5 +15,12 @@ pub struct PlayerInput {
/// If the player is currently attempting to interact
/// with some object, entity, etc.
pub interact: bool,
- // other player actions are to be added later
+ /// If the player wants to use an item
+ pub use_item: bool,
+ /// If the player is currently attempting to attack
+ pub attack: bool,
+ /// If the player is attempting to drop an item
+ pub drop: bool,
+ /// If the player is attempting to switch the active inv slot
+ pub inv_slot: Option<usize>,
}