summaryrefslogtreecommitdiff
path: root/src/serialization.cpp
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2014-10-17 17:58:36 +0100
committerCraig Robbins <kde.psych@gmail.com>2014-11-26 21:53:01 +1000
commit8df8554fceeb2eec2103c0222c0a45124e1de7cc (patch)
tree3f81f54a450c743ec7e17ff4fcfc9c0abeb9c377 /src/serialization.cpp
parent9aaf67ebe0d6b05294695df6b0c8031f26b9a673 (diff)
downloadminetest-8df8554fceeb2eec2103c0222c0a45124e1de7cc.tar.gz
minetest-8df8554fceeb2eec2103c0222c0a45124e1de7cc.tar.bz2
minetest-8df8554fceeb2eec2103c0222c0a45124e1de7cc.zip
Only set the camera update keymap when using a debug build
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Diffstat (limited to 'src/serialization.cpp')
0 files changed, 0 insertions, 0 deletions
hed the desired speed before continuing execution. D<[0-9]+ time> Delay: Wait for time seconds before continuing execution. R Reverse: change movement direction of train. ONLY WORKS WHEN TRAIN STANDS, else no-op. Use B0WR to definitely change direction. Examples: B0 W R D10 SM Subway train stopping in dead end station and returning in opposite direction OL Open left doors OR Open right doors OC Close Doors All door commands are relative to the arrow direction, so if a train drives to opposite arrow direction, L will open its right doors from driver perspective. Execution continues immediately, there is no way to wait for all doors to be opened/closed. Example: B0 W OL D10 OC D1 SM Subway train: stop in station and open doors, depart after 10 seconds. # conditional statements: I<condition><code>; Execute code only if condition applies I<condition><code1>E<code2>; Execute code1 only if condition applies, else execute code2 Conditions: + / - Tests the train's movement direction against the arrow on the ATC rail: M+ is true when train drives in direction of arrow. [</>/<=/>=][speed] Test if train's speed is greater or smaller than the given value Examples: I- B0 W R ; S8 If the train drives in the 'wrong' direction, stop and reverse; independently accelerate to speed 8 afterwards. I<8 S8 ; If the train is slower than 8, accelerate to 8. # ATC controller operation modes static: Only give 1 static command. mesecon: Give 2 different commands depending on if the controller is mesecon-powered or not digiline: Don't give any commands by itself. When a train passes, a digiline message in the form of "[+/-][speed]" is sent on the set channel (where +/- means the same as with conditions). Any digiline message sent to the controller will be interpreted as ATC command and sent to the train. ** the latter two are not yet implemented. # Persistence ATC controllers that are configured as 'static' or 'mesecon' are persistent over mapblock unloads and will even command the train when the mapblock is unloaded. This is not possible with digilines since these do not work in unloaded mapchunks. # LUA ATC controller (in development) The LUA ATC Controller will operate by using LUA code. All operations shown above will have a function equivalent. Additionally all LUA ATC controllers share an environment and setting signal and switch status will be possible to allow for complicated railway systems/fully automated subways a.s.o. Also planned: - digicompute add-on to allow computer access to the ATC environment (railway maps... ... ... ... ...)