summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-11 16:32:33 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-11 16:32:33 +0200
commit28bf7168e633629a6a049f639950a30f26102f40 (patch)
tree2caa6d5d68ebc2228409d32f8c1bd61fa8e81c16 /include
parenta50de53da1dc128ffbcdacba28353fe0825c4ac9 (diff)
automatic door
Diffstat (limited to 'include')
-rw-r--r--include/glass_doors.h20
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