summaryrefslogtreecommitdiff
path: root/mesecons_hydroturbine/doc/waterturbine
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2016-01-24 15:34:14 -0800
committerJeija <norrepli@gmail.com>2016-02-14 11:30:52 +0100
commitfb4c440265a6e26740cb6a97844b98361596c634 (patch)
treebd46f5a3b451cb3ebdbedc740b24b30f70a09f52 /mesecons_hydroturbine/doc/waterturbine
parentf56c4ce35cc4fd4f6eace5d4345400283e1536a3 (diff)
downloadmesecons-fb4c440265a6e26740cb6a97844b98361596c634.tar
mesecons-fb4c440265a6e26740cb6a97844b98361596c634.tar.gz
mesecons-fb4c440265a6e26740cb6a97844b98361596c634.tar.bz2
mesecons-fb4c440265a6e26740cb6a97844b98361596c634.tar.xz
mesecons-fb4c440265a6e26740cb6a97844b98361596c634.zip
Doors: Use new mesh door API if available
I've implemented a new door API in minetest_game that performs all the needed things to assure doors are properly openend and closed, without mods needing to know the inner details of what needs to be done. Mesecons can just fetch a reference to the door object and call the appropriate open or close method, which simplifies this code a lot. For compatibility, this code retains the old code path and tests whether the new API is available, so this code remains functional if the new API is not available. Since the metal trapdoor was only recently added, I added it to the new API codepath only, it's unlikely to be present on older versions of minetest_game anyway. As a benefit from the new door API, there is now absolutely no more accidental switching closed trapdoors to open on power off, which could happen with the old method - since that was just a simple toggle.
Diffstat (limited to 'mesecons_hydroturbine/doc/waterturbine')
0 files changed, 0 insertions, 0 deletions