From c28b9fdb3c15248604d38717a03e98c78ac88961 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Mon, 6 Nov 2023 21:14:58 -0700 Subject: Added kill log --- src/entity.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/entity.h') 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]; -- cgit v1.2.3