This commit is contained in:
2025-11-03 22:35:40 -06:00
parent be79356f42
commit 6ea4132ff9
7 changed files with 57 additions and 18 deletions

View File

@@ -72,3 +72,12 @@ void entityTurn(entity_t *entity, const entitydir_t direction);
* @param direction The direction to walk in.
*/
void entityWalk(entity_t *entity, const entitydir_t direction);
/**
* Gets the entity at a specific world position.
*
* @param map Pointer to the map to check.
* @param pos The world position to check.
* @return Pointer to the entity at the position, or NULL if none.
*/
entity_t *entityGetAt(const worldpos_t pos);