aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2026-01-10 10:25:32 +0000
committernathan <nathansmith@disroot.org>2026-01-10 10:25:32 +0000
commit013ac4a2f4ae24d71f425f31edd77a8e29ed1da8 (patch)
treedffc4b36c7c94a734940d0e3fac3536be99c2ad6 /src/entity.h
parent6e0fabd2798d7e602e243a35a922703cde7ef750 (diff)
downloadFindThings-013ac4a2f4ae24d71f425f31edd77a8e29ed1da8.tar.gz
FindThings-013ac4a2f4ae24d71f425f31edd77a8e29ed1da8.tar.bz2
FindThings-013ac4a2f4ae24d71f425f31edd77a8e29ed1da8.zip
Working on inventory
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h
index d0e9f9f..b7c458e 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -1,4 +1,5 @@
#include "utils.h"
+#include "assets.h"
// Pretty much any object in the game.
@@ -71,6 +72,12 @@ struct Entity {
void* data;
};
+typedef struct {
+ EntityId id;
+ AssetId texture;
+ int count;
+} EntityItem;
+
// Cubemap based building.
typedef struct {
Model model;