diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-11-06 21:14:58 -0700 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-11-06 21:14:58 -0700 |
commit | c28b9fdb3c15248604d38717a03e98c78ac88961 (patch) | |
tree | adf29a1c533d0217403c37e2590028e7fa892586 /src/entity.h | |
parent | 4ca42bd3b6a55ee92cdf1af0f3137ab815f0375d (diff) |
Added kill log
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 3 |
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]; |