aboutsummaryrefslogtreecommitdiff
path: root/src/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/world.h b/src/world.h
index b3a7d69..9e36dc7 100644
--- a/src/world.h
+++ b/src/world.h
@@ -35,6 +35,10 @@ KfError removeEntityFromWorld(World * world, EntityId id);
void updateWorld(World * world, Game * game);
void drawWorld(World * world, Game * game);
+// Returns the closest entity that the ray hits or ENTITY_NONE;
+// From can be used to stop it from hitting the entity the ray is coming from...
+EntityId traceRayToEntityInWorld(World * world, Ray ray, EntityFingerprint from, bool useFrom);
+
// Used for creating worlds.
typedef struct WorldEntry {
EntityType type;