JacksEscape/Entity.h

28 lines
326 B
C
Raw Normal View History

2024-02-29 11:22:52 +08:00
#pragma once
#include <stdint.h>
#include "util/vector.h"
2024-02-29 16:59:04 +08:00
#include "Physics_Component.h"
2024-02-29 11:22:52 +08:00
#ifdef __cplusplus
extern "C" {
#endif
// Entity.
2024-02-29 16:17:55 +08:00
typedef struct _Entity {
uintptr_t id;
uintptr_t type;
2024-02-29 11:22:52 +08:00
const char *name;
2024-02-29 16:17:55 +08:00
Component_Position *position;
Component_Hitbox *hitbox;
2024-02-29 11:22:52 +08:00
2024-02-29 16:17:55 +08:00
} Entity;
2024-02-29 11:22:52 +08:00
#ifdef __cplusplus
}
#endif