refactored path point generation

exposed Pathfinder to Lua
This commit is contained in:
devZoGok
2026-03-15 15:21:11 +02:00
parent 03f9f9cc2e
commit 268ea14f4a
6 changed files with 75 additions and 15 deletions
+2
View File
@@ -25,6 +25,8 @@ namespace battleship{
vb01::s64 lastBuildTime = 0;
inline int getNextPatrolPointId(int numPoints) {return patrolPointId == numPoints - 1 ? 0 : patrolPointId + 1;}
bool canReachTarget(vb01::Vector3, int&, int&);
bool truncatePath(Order&, std::vector<int>&, vb01::Vector3, bool);
void startCurrentOrder();
bool validateGarrisonOrder(Order);
void enterGarrisonable();