1 2 3 4 5 6 7 8 9 10 11 12 13 14 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};