diff options
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}; |