[lua] added missing pathfinder support and manual entries
Dieser Commit ist enthalten in:
Ursprung
37309cd13e
Commit
473246151b
@ -205,6 +205,10 @@
|
||||
"TRAIN_LIST": {
|
||||
"type": "constant"
|
||||
},
|
||||
"TRAIN_PATH_FINDER": {
|
||||
"type": "constant",
|
||||
"since": "0.4"
|
||||
},
|
||||
"TRAIN_ZONE_STATUS": {
|
||||
"type": "constant",
|
||||
"since": "0.3"
|
||||
|
||||
1
manual/luadoc/object/pathfinder.json
Normale Datei
1
manual/luadoc/object/pathfinder.json
Normale Datei
@ -0,0 +1 @@
|
||||
{}
|
||||
19
manual/luadoc/object/trainpathfinder.json
Normale Datei
19
manual/luadoc/object/trainpathfinder.json
Normale Datei
@ -0,0 +1,19 @@
|
||||
{
|
||||
"reserve": {
|
||||
"parameters": [
|
||||
{
|
||||
"name": "from_block"
|
||||
},
|
||||
{
|
||||
"name": "from_direction"
|
||||
},
|
||||
{
|
||||
"name": "to_block"
|
||||
},
|
||||
{
|
||||
"name": "to_direction"
|
||||
}
|
||||
],
|
||||
"since": "0.4"
|
||||
}
|
||||
}
|
||||
@ -17,6 +17,9 @@
|
||||
"clock": {
|
||||
"since": "0.2"
|
||||
},
|
||||
"train_path_finder": {
|
||||
"since": "0.4"
|
||||
},
|
||||
"trains": {},
|
||||
"rail_vehicles": {},
|
||||
"state": {
|
||||
@ -48,4 +51,4 @@
|
||||
"since": "0.1"
|
||||
},
|
||||
"zones": {}
|
||||
}
|
||||
}
|
||||
@ -1,9 +1,8 @@
|
||||
/**
|
||||
* server/src/lua/classid.cpp
|
||||
* This file is part of Traintastic,
|
||||
* see <https://github.com/traintastic/traintastic>.
|
||||
*
|
||||
* This file is part of the traintastic source code.
|
||||
*
|
||||
* Copyright (C) 2021-2025 Reinder Feenstra
|
||||
* Copyright (C) 2021-2026 Reinder Feenstra
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@ -30,6 +29,7 @@
|
||||
|
||||
#include "../board/board.hpp"
|
||||
#include "../board/boardlist.hpp"
|
||||
#include "../board/pathfinder/trainpathfinder.hpp"
|
||||
|
||||
#include "../board/tile/misc/labeltile.hpp"
|
||||
#include "../board/tile/misc/pushbuttontile.hpp"
|
||||
@ -162,6 +162,7 @@ void Class::registerValues(lua_State* L)
|
||||
|
||||
registerValue<Board>(L, "BOARD");
|
||||
registerValue<BoardList>(L, "BOARD_LIST");
|
||||
registerValue<TrainPathFinder>(L, "TRAIN_PATH_FINDER");
|
||||
|
||||
registerValue<LabelTile>(L, "LABEL_TILE");
|
||||
registerValue<PushButtonTile>(L, "PUSH_BUTTON_TILE");
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren