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:
Theo Champion 2025-09-18 12:10:25 +02:00
parent 4048f5d1e3
commit 66c3bda4df
9 changed files with 117 additions and 15 deletions

View file

@ -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;