diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-14 23:30:05 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-14 23:30:05 -0500 |
| commit | 65f5143d3e01e111afb960451e0741ddb37be240 (patch) | |
| tree | d59bc1e885aa31743fd87ebadab8e1728e2cd683 /dungeon/src/player_input.rs | |
| parent | graphics: use 32bit color for atlas (diff) | |
| download | DungeonCrawl-65f5143d3e01e111afb960451e0741ddb37be240.tar.gz DungeonCrawl-65f5143d3e01e111afb960451e0741ddb37be240.tar.bz2 DungeonCrawl-65f5143d3e01e111afb960451e0741ddb37be240.zip | |
graphics: add text message rendering (and sans ig)
Diffstat (limited to 'dungeon/src/player_input.rs')
| -rw-r--r-- | dungeon/src/player_input.rs | 3 |
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 } |