diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-16 10:10:10 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-05-16 10:10:10 +0200 |
| commit | fa7b6b01b68ad3934734e67b65d31d0d4ccfa0a6 (patch) | |
| tree | d6cc530489e0dbe677f6916685f65ab208cd2356 /include | |
| parent | 197958d8e7f539de6b1da937fddbbbfcf167a73b (diff) | |
temp
Diffstat (limited to 'include')
| -rw-r--r-- | include/objects.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
