summaryrefslogtreecommitdiff
path: root/src/entity.h
diff options
context:
space:
mode:
authortalha <->2024-08-15 10:46:43 +0500
committertalha <->2024-08-15 10:46:43 +0500
commit0453b8f50dc4d40083e02cc3d09b4bcaa33f1700 (patch)
treedc9956d8b3be69d76cd03dd4d9b1e0d16dae0a14 /src/entity.h
parent0cb9fa1c023033c250fd0bf33c2cee49fc85f178 (diff)
Added functionality, updated c to cpp:HEADmain
- Added entity arrays - Added memory arenas - moved c files to cpp - refactored files to work with lsp (still unity build) but more painful
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h
new file mode 100644
index 0000000..0db15f1
--- /dev/null
+++ b/src/entity.h
@@ -0,0 +1,15 @@
+#pragma once
+
+typedef enum {
+ NONE = 0,
+ PLAYER = 1,
+ TROLL = 2,
+ BANDIT = 3,
+} EntityType;
+
+struct Entity {
+ EntityType type; // EntityType
+ int id; // Entity ID
+};
+
+const struct Entity EntityNone = {.type = NONE, .id = 0};