summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/clua/luamark.lua
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-22 03:53:05 -0700
committerMatthew Cline <zelgadis@sourceforge.net>2009-10-22 03:53:05 -0700
commit49870f2bc48989467ea4f8c847fd1274cec73944 (patch)
tree050245a946eb520236d028cec8c661743c76d501 /crawl-ref/source/dat/clua/luamark.lua
parenta724290e7ae62bc20013919bc14c16e91d842083 (diff)
downloadcrawl-ref-49870f2bc48989467ea4f8c847fd1274cec73944.tar.gz
crawl-ref-49870f2bc48989467ea4f8c847fd1274cec73944.zip
Observerable/observer-ish pattern for Lua markers
A new framework for Lua markers, similar to the observable/observer design pattern, which decouples the thing being activated from the thing watching for the activating condition. This makes it easier to create new types of Lua markers which are triggered by dungeon events, and easier to add new triggering conditions to already existing marker types. Currently only ChangeFlags (clua/lm_flags.lua) and MonsterOnTrigger (clua/lm_monst.lua) use it.
Diffstat (limited to 'crawl-ref/source/dat/clua/luamark.lua')
-rw-r--r--crawl-ref/source/dat/clua/luamark.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/dat/clua/luamark.lua b/crawl-ref/source/dat/clua/luamark.lua
index 43ec7f94ae..d987e88ef1 100644
--- a/crawl-ref/source/dat/clua/luamark.lua
+++ b/crawl-ref/source/dat/clua/luamark.lua
@@ -3,6 +3,8 @@
-- Lua map marker handling.
------------------------------------------------------------------------------
+require('clua/lm_trig.lua')
+
require('clua/lm_pdesc.lua')
require('clua/lm_1way.lua')
require('clua/lm_timed.lua')