summaryrefslogtreecommitdiff
path: root/src/game
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/game
parent764497206ab9457ab5dff3ea7851546da9259cc4 (diff)
downloadopenttd-1c0ba07c3cb4f393b56063e2d631fbb2d73219b1.tar.xz
Add: [Script] Native priority queue; useful e.g. for pathfinders.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_instance.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/game_instance.cpp b/src/game/game_instance.cpp
index 4424c801c..47d51e28e 100644
--- a/src/game/game_instance.cpp
+++ b/src/game/game_instance.cpp
@@ -59,6 +59,7 @@
#include "../script/api/game/game_marine.hpp.sq"
#include "../script/api/game/game_news.hpp.sq"
#include "../script/api/game/game_order.hpp.sq"
+#include "../script/api/game/game_priorityqueue.hpp.sq"
#include "../script/api/game/game_rail.hpp.sq"
#include "../script/api/game/game_railtypelist.hpp.sq"
#include "../script/api/game/game_road.hpp.sq"
@@ -173,6 +174,7 @@ void GameInstance::RegisterAPI()
SQGSMarine_Register(this->engine);
SQGSNews_Register(this->engine);
SQGSOrder_Register(this->engine);
+ SQGSPriorityQueue_Register(this->engine);
SQGSRail_Register(this->engine);
SQGSRailTypeList_Register(this->engine);
SQGSRoad_Register(this->engine);