From 9f2df31db6fe5450826cc68fd2158fe218dd8000 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 19 Nov 2025 23:10:38 -0500 Subject: dungeon: inventory usage --- dungeon/src/player_input.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'dungeon/src/player_input.rs') 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, } -- cgit v1.2.3-freya