[lua] added missing pathfinder support and manual entries
Dieser Commit ist enthalten in:
Ursprung
37309cd13e
Commit
473246151b
@ -205,6 +205,10 @@
|
|||||||
"TRAIN_LIST": {
|
"TRAIN_LIST": {
|
||||||
"type": "constant"
|
"type": "constant"
|
||||||
},
|
},
|
||||||
|
"TRAIN_PATH_FINDER": {
|
||||||
|
"type": "constant",
|
||||||
|
"since": "0.4"
|
||||||
|
},
|
||||||
"TRAIN_ZONE_STATUS": {
|
"TRAIN_ZONE_STATUS": {
|
||||||
"type": "constant",
|
"type": "constant",
|
||||||
"since": "0.3"
|
"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": {
|
"clock": {
|
||||||
"since": "0.2"
|
"since": "0.2"
|
||||||
},
|
},
|
||||||
|
"train_path_finder": {
|
||||||
|
"since": "0.4"
|
||||||
|
},
|
||||||
"trains": {},
|
"trains": {},
|
||||||
"rail_vehicles": {},
|
"rail_vehicles": {},
|
||||||
"state": {
|
"state": {
|
||||||
@ -48,4 +51,4 @@
|
|||||||
"since": "0.1"
|
"since": "0.1"
|
||||||
},
|
},
|
||||||
"zones": {}
|
"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-2026 Reinder Feenstra
|
||||||
*
|
|
||||||
* Copyright (C) 2021-2025 Reinder Feenstra
|
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
@ -30,6 +29,7 @@
|
|||||||
|
|
||||||
#include "../board/board.hpp"
|
#include "../board/board.hpp"
|
||||||
#include "../board/boardlist.hpp"
|
#include "../board/boardlist.hpp"
|
||||||
|
#include "../board/pathfinder/trainpathfinder.hpp"
|
||||||
|
|
||||||
#include "../board/tile/misc/labeltile.hpp"
|
#include "../board/tile/misc/labeltile.hpp"
|
||||||
#include "../board/tile/misc/pushbuttontile.hpp"
|
#include "../board/tile/misc/pushbuttontile.hpp"
|
||||||
@ -162,6 +162,7 @@ void Class::registerValues(lua_State* L)
|
|||||||
|
|
||||||
registerValue<Board>(L, "BOARD");
|
registerValue<Board>(L, "BOARD");
|
||||||
registerValue<BoardList>(L, "BOARD_LIST");
|
registerValue<BoardList>(L, "BOARD_LIST");
|
||||||
|
registerValue<TrainPathFinder>(L, "TRAIN_PATH_FINDER");
|
||||||
|
|
||||||
registerValue<LabelTile>(L, "LABEL_TILE");
|
registerValue<LabelTile>(L, "LABEL_TILE");
|
||||||
registerValue<PushButtonTile>(L, "PUSH_BUTTON_TILE");
|
registerValue<PushButtonTile>(L, "PUSH_BUTTON_TILE");
|
||||||
|
|||||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren