feat: enemy npc pathing (#2000)

* feat: enemy npc pathing

they live 🎉
tested that enemies path all around the world should they have a path configured.
tested that the admiral in gf (at the first camp) paths now.
fixes #1546

* feedback
This commit is contained in:
David Markowitz
2026-06-17 23:07:36 -07:00
committed by GitHub
parent c898356eba
commit 0f17e1de3b
5 changed files with 111 additions and 16 deletions

View File

@@ -212,8 +212,16 @@ public:
bool IsPaused() const { return m_Paused; }
bool OnGetObjectReportInfo(GameMessages::GetObjectReportInfo& reportInfo);
bool HasPath() const { return m_Path != nullptr; }
private:
/**
* @brief
* Runs the commands on a waypoint if a path exists
*/
void RunWaypointCommands(uint32_t waypointNum);
/**
* Sets the current position of the entity
* @param value the position to set