aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/init.lua
Commit message (Collapse)AuthorAge
* Move LZB system to core and unify approach callback mechanismorwell962019-04-16
|
* Point speed restriction railsorwell962019-01-24
|
* Add Automatic Routesetting UIorwell962019-01-09
| | | | Settings have no effect so far
* Shunt signals (not exactly Ks), along with fixes in other components that ↵orwell962018-12-08
| | | | those rely on
* Miscellaneous routesetting fixesorwell962018-10-29
| | | | | | | - Move handling of "route_committed" to the routesetting function - Put aspect in every TCBS on the way - Add "route_origin" to TCBS fields to prevent subroute cancelling - Cancel entire route when another train enters from the wrong TCB
* Add Interlocking Tool to inspect route locksorwell962018-10-26
|
* Add signal safety control override, restructure control systemorwell962018-10-10
|
* Add 'interlocking' privilege and add security checksorwell962018-08-12
|
* Uncommitted route handling (update_route function)orwell962018-08-03
|
* Implement routesettingorwell962018-07-21
| | | | Missing things: signal aspect updating, waiting routes handling, management /info tool
* Signal assignment and route programming procedureorwell962018-07-04
|
* get_ts_at_pos(), file for train-related stufforwell962018-06-29
|
* Add track section concept and rework TCB design, implement new linking behaviororwell962018-06-21
|
* Add Track Circuit Breaks (TCBs), Database and Track Circuit Setuporwell962018-06-20
| | | | Does not get saved yet.
* Interlocking: Create demo signals, signal API and model for TCB configurer nodeorwell962018-06-19
|
* Draft of interlocking systemorwell962018-06-14
out even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef L_ENV_H_ #define L_ENV_H_ #include "lua_api/l_base.h" #include "serverenvironment.h" class ModApiEnvMod : public ModApiBase { private: // set_node(pos, node) // pos = {x=num, y=num, z=num} static int l_set_node(lua_State *L); static int l_add_node(lua_State *L); // remove_node(pos) // pos = {x=num, y=num, z=num} static int l_remove_node(lua_State *L); // swap_node(pos, node) // pos = {x=num, y=num, z=num} static int l_swap_node(lua_State *L); // get_node(pos) // pos = {x=num, y=num, z=num} static int l_get_node(lua_State *L); // get_node_or_nil(pos) // pos = {x=num, y=num, z=num} static int l_get_node_or_nil(lua_State *L); // get_node_light(pos, timeofday) // pos = {x=num, y=num, z=num} // timeofday: nil = current time, 0 = night, 0.5 = day static int l_get_node_light(lua_State *L); // place_node(pos, node) // pos = {x=num, y=num, z=num} static int l_place_node(lua_State *L); // dig_node(pos) // pos = {x=num, y=num, z=num} static int l_dig_node(lua_State *L); // punch_node(pos) // pos = {x=num, y=num, z=num} static int l_punch_node(lua_State *L); // get_node_max_level(pos) // pos = {x=num, y=num, z=num} static int l_get_node_max_level(lua_State *L); // get_node_level(pos) // pos = {x=num, y=num, z=num} static int l_get_node_level(lua_State *L); // set_node_level(pos) // pos = {x=num, y=num, z=num} static int l_set_node_level(lua_State *L); // add_node_level(pos) // pos = {x=num, y=num, z=num} static int l_add_node_level(lua_State *L); // find_nodes_with_meta(pos1, pos2) static int l_find_nodes_with_meta(lua_State *L); // get_meta(pos) static int l_get_meta(lua_State *L); // get_node_timer(pos) static int l_get_node_timer(lua_State *L); // add_entity(pos, entityname) -> ObjectRef or nil // pos = {x=num, y=num, z=num} static int l_add_entity(lua_State *L); // add_item(pos, itemstack or itemstring or table) -> ObjectRef or nil // pos = {x=num, y=num, z=num} static int l_add_item(lua_State *L); // get_player_by_name(name) static int l_get_player_by_name(lua_State *L); // get_objects_inside_radius(pos, radius) static int l_get_objects_inside_radius(lua_State *L); // set_timeofday(val) // val = 0...1 static int l_set_timeofday(lua_State *L); // get_timeofday() -> 0...1 static int l_get_timeofday(lua_State *L); // get_gametime() static int l_get_gametime(lua_State *L); // get_day_count() -> int static int l_get_day_count(lua_State *L);