22 lines
384 B
C
22 lines
384 B
C
#ifndef __ENTITY_H
|
|
#define __ENTITY_H
|
|
#include <stdbool.h>
|
|
|
|
#define N_TAGS 4
|
|
#define N_COMPONENTS 10
|
|
typedef enum EntityTag {
|
|
NO_ENT_TAG,
|
|
PLAYER_ENT_TAG,
|
|
ENEMY_ENT_TAG,
|
|
CRATES_ENT_TAG,
|
|
} EntityTag_t;
|
|
|
|
typedef struct Entity {
|
|
unsigned long m_id;
|
|
EntityTag_t m_tag;
|
|
bool m_alive;
|
|
unsigned long components[N_COMPONENTS];
|
|
|
|
} Entity_t;
|
|
#endif // __ENTITY_H
|