diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-28 11:12:22 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-28 11:12:22 +0200 |
| commit | 4e378fe6a3aacb398d88865b833b12e3dbd194a3 (patch) | |
| tree | ba245c0f0f52a81a77a76c927f4d5118e7b3c1ea /include/players.h | |
| parent | 18c1dfbb78d98516f5480f8199910fe41ac904df (diff) | |
player reloading delay
Diffstat (limited to 'include/players.h')
| -rw-r--r-- | include/players.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/players.h b/include/players.h index c4652f2..90fdc84 100644 --- a/include/players.h +++ b/include/players.h @@ -12,10 +12,17 @@ #define MAX_PLAYERS 10 +typedef enum t_player_interact_state { + INTERACT_IDLE, + INTERACT_RELOADING, +} player_interact_state; + typedef struct t_player { u32 id; bool active; float sec_since_last_shot; + player_interact_state interact_state; + float sec_since_interact_state_change; float playerx; float playery; float gunx; |
