mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
dev: Added a registry for weapons
The registry is for storing weapons structs as they are closer to actual objects than simple data.
This commit is contained in:
parent
4048f5d1e3
commit
66c3bda4df
9 changed files with 117 additions and 15 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tchampio <tchampio@student.42lehavre.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/17 16:50:52 by tchampio #+# #+# */
|
||||
/* Updated: 2025/09/17 16:52:29 by tchampio ### ########.fr */
|
||||
/* Updated: 2025/09/18 11:54:22 by tchampio ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -19,6 +19,8 @@ typedef struct s_weapon
|
|||
{
|
||||
t_img_data *texture;
|
||||
t_img_data *shoot_texture;
|
||||
char name[255];
|
||||
int damages;
|
||||
bool is_auto;
|
||||
bool is_shooting;
|
||||
bool reloading;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue