From fa7b6b01b68ad3934734e67b65d31d0d4ccfa0a6 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 16 May 2024 10:10:10 +0200 Subject: temp --- include/objects.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/objects.h') diff --git a/include/objects.h b/include/objects.h index 36ae30f..4850a90 100644 --- a/include/objects.h +++ b/include/objects.h @@ -6,6 +6,7 @@ #include "map.h" #define MAX_OBJECTS 10000 +#define MAX_DECORATION_OBJECTS 100 typedef struct t_vec3f { float x,y,z; @@ -130,6 +131,10 @@ object object_dict[OBJECT_END] = { {0,(vec3f){0, 0, 0},{1,2,1},OBJECT_GLASS_DOOR_V, 0}, }; +// decoration objects laying on floor. +object decoration_objects[MAX_DECORATION_OBJECTS] = {0}; + +void add_decoration_object(object o); object get_object_at_tile(float x, float y); object* get_pobject_at_tile(float x, float y); object* get_object_at_tile_from_mapfile(float x, float y); -- cgit v1.2.3-70-g09d2