diff options
Diffstat (limited to 'include/glass_doors.h')
| -rw-r--r-- | include/glass_doors.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/glass_doors.h b/include/glass_doors.h new file mode 100644 index 0000000..07804d5 --- /dev/null +++ b/include/glass_doors.h @@ -0,0 +1,20 @@ +#ifndef INCLUDE_GLASS_DOOR +#define INCLUDE_GLASS_DOOR + +#include "objects.h" + +typedef struct t_glass_door +{ + object obj; + bool is_open; + float time_since_open; +} glass_door; + +#define MAX_GLASS_DOORS 100 +glass_door glass_doors[MAX_GLASS_DOORS]; + +void create_glass_door(object o); +void draw_glass_doors(platform_window* window, uint32_t ystart, uint32_t yend); +void update_glass_doors_server(); + +#endif
\ No newline at end of file |
