summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/clua/luamark.lua
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2009-10-30 15:46:55 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2009-10-31 22:16:46 +0530
commitad11744e5d49d226fc9c77ed48c3dd8b97921350 (patch)
treec4334fd1e6b4b052ac93593f9021f12c9f10baac /crawl-ref/source/dat/clua/luamark.lua
parent23f8631266eac1a7b4b4727b26a5fc088a6f0184 (diff)
downloadcrawl-ref-ad11744e5d49d226fc9c77ed48c3dd8b97921350.tar.gz
crawl-ref-ad11744e5d49d226fc9c77ed48c3dd8b97921350.zip
lmark.synchronized_markers(): apply one marker's effects to multiple points simultaneously.
synchronized_markers() takes a marker, and a list of method names to override, and returns a set of markers that fire simultaneously, to allow, say, fog machines that fire at random intervals, but always fire in unison. lm_mslav.lua has details. volcano.des has an example volcano entry vault that uses this. Allow fetching a list of Lua markers/marker positions by property value. Renamed dgn.find_marker_prop -> dgn.find_marker_position_by_prop. s/helper/listener/ for fog machine listeners.
Diffstat (limited to 'crawl-ref/source/dat/clua/luamark.lua')
-rw-r--r--crawl-ref/source/dat/clua/luamark.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/dat/clua/luamark.lua b/crawl-ref/source/dat/clua/luamark.lua
index 86b125a53c..10eb05945c 100644
--- a/crawl-ref/source/dat/clua/luamark.lua
+++ b/crawl-ref/source/dat/clua/luamark.lua
@@ -13,6 +13,7 @@ require('clua/lm_fog.lua')
require('clua/lm_props.lua')
require('clua/lm_monst.lua')
require('clua/lm_func.lua')
+require('clua/lm_mslav.lua')
function dlua_marker_function(table, name)
return table[name]
@@ -28,7 +29,7 @@ function dlua_marker_read(fn, marker, th)
return fn({ }, marker, th)
end
-lmark = { }
+util.namespace('lmark')
-- Marshalls a table comprising of keys that are strings or numbers only,
-- and values that are strings, numbers, functions, or tables only. The table