aboutsummaryrefslogtreecommitdiff
path: root/src/entity.h
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-11-06 21:14:58 -0700
committernathansmithsmith <nathansmith7@mailfence.com>2023-11-06 21:14:58 -0700
commitc28b9fdb3c15248604d38717a03e98c78ac88961 (patch)
treeadf29a1c533d0217403c37e2590028e7fa892586 /src/entity.h
parent4ca42bd3b6a55ee92cdf1af0f3137ab815f0375d (diff)
Added kill log
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h
index d78f308..dfc38a4 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -130,12 +130,15 @@ typedef struct Entity {
typedef void (*EntityInitCb)(Entity * entity, Game * game);
typedef void (*EntityCloseCb)(Entity * entity);
+#define ENTITY_TYPE_INFO_NAME_MAX 30
+
// Info for each entity type.
typedef struct EntityTypeInfo {
EntityInitCb initCb;
EntityCloseCb closeCb;
EntityUpdateCb updateCb;
EntityDrawCb drawCb;
+ char name[ENTITY_TYPE_INFO_NAME_MAX]; // Best use pascal case for the names (:
} EntityTypeInfo;
const extern EntityTypeInfo entityTypeInfo[ENTITY_TYPE_COUNT];