aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-03-16 10:34:54 +0100
committerGitHub <noreply@github.com>2017-03-16 10:34:54 +0100
commit40ce538aad9af8f7634c4ba7e9f12246fb23b31c (patch)
treeda8788a581acbc18bb9f5e35a2be620ba0125471 /src/util
parenteb88e5dd4b181a90b382c036cf6c4f42e63e8cc2 (diff)
[CSM] Add minimap API modifiers (#5399)
* Rename Mapper (too generic) to Minimap * Add lua functions to get/set position, angle, mode for minimap * Client: rename m_mapper to m_minimap * Add minimap to core.ui namespace (core.ui.minimap) * Add various functions to manage minimap (show, hide, toggle_shape) * Cleanup trivial declaration in client
Diffstat (limited to 'src/util')
0 files changed, 0 insertions, 0 deletions
passive components, as described in passive_api.txt of advtrains_luaautomation -- This has been moved to the advtrains core in turn with the interlocking system, -- to prevent a dependency on luaautomation. local deprecation_warned = {} function advtrains.getstate(parpos, pnode) local pos if atlatc then pos = atlatc.pcnaming.resolve_pos(parpos) else pos = advtrains.round_vector_floor_y(parpos) end if type(pos)~="table" or (not pos.x or not pos.y or not pos.z) then debug.sethook() error("Invalid position supplied to getstate") end local node=pnode or advtrains.ndb.get_node(pos) local ndef=minetest.registered_nodes[node.name] local st if ndef and ndef.advtrains and ndef.advtrains.getstate then st=ndef.advtrains.getstate elseif ndef and ndef.luaautomation and ndef.luaautomation.getstate then if not deprecation_warned[node.name] then minetest.log("warning", node.name.." uses deprecated definition of ATLATC functions in the 'luaautomation' field. Please move them to the 'advtrains' field!") end st=ndef.luaautomation.getstate else return nil end