diff options
author | nathan <nathansmith@disroot.org> | 2025-07-06 11:13:16 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-07-06 11:13:16 +0000 |
commit | 601961a245a48112029341437912fe13b54dac0b (patch) | |
tree | a3cf0a664b02bbecb3c5e146c1b2eabcec191623 /src/entity.h | |
parent | 942924f120d104cf0d6f080497c286d98bd14e11 (diff) | |
download | FindThings-601961a245a48112029341437912fe13b54dac0b.tar.gz FindThings-601961a245a48112029341437912fe13b54dac0b.tar.bz2 FindThings-601961a245a48112029341437912fe13b54dac0b.zip |
rreeee
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h new file mode 100644 index 0000000..0c431ea --- /dev/null +++ b/src/entity.h @@ -0,0 +1,25 @@ +#include "utils.h" + +// Pretty much any object in the game. + +#ifndef ENTITY_H +#define ENTITY_H + +typedef int8_t EntityId; + +enum { + ENTITY_NONE = -1, + OLD_MINT, + STICKY_NICKEL +}; + +typedef struct { + EntityId id; + Vector3 position; + BoundingBox box; +} Entity; + +Entity createEntity(EntityId id, Vector3 position); +void updateEntity(Entity* entity, Game* game); + +#endif |