summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-04-19 00:53:30 +0200
committerMichael Lutz <michi@icosahedron.de>2020-06-01 21:35:13 +0200
commit1c0ba07c3cb4f393b56063e2d631fbb2d73219b1 (patch)
tree899bd53ad86d592f8cc0ff5c5e29214f9d243619 /src/ai
parent764497206ab9457ab5dff3ea7851546da9259cc4 (diff)
downloadopenttd-1c0ba07c3cb4f393b56063e2d631fbb2d73219b1.tar.xz
Add: [Script] Native priority queue; useful e.g. for pathfinders.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_instance.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp
index a4d06763f..49f8cff64 100644
--- a/src/ai/ai_instance.cpp
+++ b/src/ai/ai_instance.cpp
@@ -57,6 +57,7 @@
#include "../script/api/ai/ai_map.hpp.sq"
#include "../script/api/ai/ai_marine.hpp.sq"
#include "../script/api/ai/ai_order.hpp.sq"
+#include "../script/api/ai/ai_priorityqueue.hpp.sq"
#include "../script/api/ai/ai_rail.hpp.sq"
#include "../script/api/ai/ai_railtypelist.hpp.sq"
#include "../script/api/ai/ai_road.hpp.sq"
@@ -164,6 +165,7 @@ void AIInstance::RegisterAPI()
SQAIMap_Register(this->engine);
SQAIMarine_Register(this->engine);
SQAIOrder_Register(this->engine);
+ SQAIPriorityQueue_Register(this->engine);
SQAIRail_Register(this->engine);
SQAIRailTypeList_Register(this->engine);
SQAIRoad_Register(this->engine);