aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2026-01-08 02:07:35 +0000
committernathan <nathansmith@disroot.org>2026-01-08 02:07:35 +0000
commit75338c84cca4f0dad1fb1d79f0db42922a3ea6b5 (patch)
tree7f9240685c7cf73388069f544e79e590bd6e0cb9 /src/entity.h
parent0180e40326f67ef465e1d865a0aed21162e0f5c5 (diff)
downloadFindThings-75338c84cca4f0dad1fb1d79f0db42922a3ea6b5.tar.gz
FindThings-75338c84cca4f0dad1fb1d79f0db42922a3ea6b5.tar.bz2
FindThings-75338c84cca4f0dad1fb1d79f0db42922a3ea6b5.zip
Better place at thingy
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/entity.h b/src/entity.h
index 8cfcad6..d0e9f9f 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -91,6 +91,7 @@ typedef struct {
bool isPlace;
bool isBuilding;
bool canBeSelected;
+ float placeAreaSize; // If <= 0.0 use collision instead.
} EntityEntry;
// Am I still insane if I am aware of my insanity?
@@ -109,6 +110,7 @@ void placeEntityOnGround(Entity* entity, const World* world);
bool entityIsPlace(EntityId id);
bool entityIsBuilding(EntityId id);
bool entityCanBeSelected(EntityId id);
+float getEntityPlaceAreaSize(EntityId id);
float getEntityDistance(Entity entity, Vector3 position);