From 0453b8f50dc4d40083e02cc3d09b4bcaa33f1700 Mon Sep 17 00:00:00 2001 From: talha <-> Date: Thu, 15 Aug 2024 10:46:43 +0500 Subject: Added functionality, updated c to cpp: - Added entity arrays - Added memory arenas - moved c files to cpp - refactored files to work with lsp (still unity build) but more painful --- src/entity.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/entity.h (limited to 'src/entity.h') 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}; -- cgit v1.2.3