22 lines
369 B
C
22 lines
369 B
C
#ifndef __ENTITY_H
|
|
#define __ENTITY_H
|
|
#include <stdbool.h>
|
|
#include "sc/map/sc_map.h"
|
|
|
|
#define N_TAGS 3
|
|
enum EntityTag
|
|
{
|
|
NO_ENT_TAG,
|
|
PLAYER_ENT_TAG,
|
|
ENEMY_ENT_TAG,
|
|
};
|
|
typedef enum EntityTag EntityTag_t;
|
|
typedef struct Entity
|
|
{
|
|
unsigned long m_id;
|
|
EntityTag_t m_tag;
|
|
bool m_alive;
|
|
struct sc_map_64 components;
|
|
}Entity_t;
|
|
#endif // __ENTITY_H
|