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-03-01 17:09:24 +08:00
|
|
|
#include "Player_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 {
|
2024-03-01 17:09:24 +08:00
|
|
|
uintptr_t id;
|
|
|
|
char *name;
|
2024-02-29 11:22:52 +08:00
|
|
|
|
2024-02-29 16:17:55 +08:00
|
|
|
Component_Position *position;
|
|
|
|
Component_Hitbox *hitbox;
|
2024-03-01 17:09:24 +08:00
|
|
|
Component_Player *player;
|
2024-02-29 16:17:55 +08:00
|
|
|
} Entity;
|
2024-02-29 11:22:52 +08:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|