From 05cb6090ac9537650a900b64768bf3ed959cebed Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 16 Aug 2018 19:18:03 +0200 Subject: Move passive API to the advtrains core to remove dependency of interlocking on luaautomation --- advtrains_luaautomation/passive_api.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'advtrains_luaautomation/passive_api.txt') diff --git a/advtrains_luaautomation/passive_api.txt b/advtrains_luaautomation/passive_api.txt index a735208..9852e94 100644 --- a/advtrains_luaautomation/passive_api.txt +++ b/advtrains_luaautomation/passive_api.txt @@ -5,10 +5,11 @@ Switches Signals Displays Mesecon Transmitter +Those passive components can also be used inside interlocking systems. -All passive components have a table called 'luaautomation' in their node definition and have the group 'save_in_nodedb' set, so they work in unloaded chunks. +All passive components have a table called 'advtrains' in their node definition and have the group 'save_in_nodedb' set, so they work in unloaded chunks. Example for a switch: -luaautomation = { +advtrains = { getstate = function(pos, node) return "st" end, -- cgit v1.2.3