From ec223d6f3d5d1a7e1257c468d169a0353ec0963e Mon Sep 17 00:00:00 2001 From: Singularis Date: Tue, 5 Jul 2022 06:48:19 +0200 Subject: [advtrains] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - odebrán mód advtrains_luaautomation - lokalizace - zastaralá funkce getpos() nahrazena za get_pos() --- advtrains_luaautomation/passive_api.txt | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 advtrains_luaautomation/passive_api.txt (limited to 'advtrains_luaautomation/passive_api.txt') diff --git a/advtrains_luaautomation/passive_api.txt b/advtrains_luaautomation/passive_api.txt deleted file mode 100644 index 5ae1df4..0000000 --- a/advtrains_luaautomation/passive_api.txt +++ /dev/null @@ -1,24 +0,0 @@ -Lua Automation - Passive Component API - -Passive components are nodes that do not have code running in them. However, active components can query these and request actions from them. Examples: -Switches -Signals -Displays -Mesecon Transmitter -Those passive components can also be used inside interlocking systems. - -All passive components have a table called 'advtrains' in their node definition and have the group 'save_in_at_nodedb' set, so they work in unloaded chunks. -Example for a switch: -advtrains = { - getstate = function(pos, node) - return "st" - end, - -- OR - getstate = "st", - - setstate = function(pos, node, newstate) - if newstate=="cr" then - advtrains.ndb.swap_node(pos, ) - end - end -} \ No newline at end of file -- cgit v1.2.3