diff options
author | talha <-> | 2024-08-15 10:46:43 +0500 |
---|---|---|
committer | talha <-> | 2024-08-15 10:46:43 +0500 |
commit | 0453b8f50dc4d40083e02cc3d09b4bcaa33f1700 (patch) | |
tree | dc9956d8b3be69d76cd03dd4d9b1e0d16dae0a14 /src/entity.h | |
parent | 0cb9fa1c023033c250fd0bf33c2cee49fc85f178 (diff) |
- 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.h | 15 |
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}; |