summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-07-12 19:00:59 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-07-12 19:00:59 +0200
commite7abe96175e14f5f06a39a2db2cea33e1e310e00 (patch)
treefc19b4d00aa4eb296c8e78da9884f51e56c8c9c2 /data/tile/global.m4.conf
parenta132188ccc244a6d802bd1c32fbf196d4cb53cbd (diff)
Starting to use m4 for the data...
Diffstat (limited to 'data/tile/global.m4.conf')
-rw-r--r--data/tile/global.m4.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/data/tile/global.m4.conf b/data/tile/global.m4.conf
new file mode 100644
index 0000000..686e4f9
--- /dev/null
+++ b/data/tile/global.m4.conf
@@ -0,0 +1,14 @@
+m4_define(`__TILE_CHOOSE_STYLE', `m4_define(`__TILE_CLASS',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl
+m4_define(`__TILE_COST_WHEN_OCCUPIED', 201)m4_dnl
+m4_define(`__TILE_COST_WHEN_OOB', 255)m4_dnl
+m4_define(`__TILE_CLASS_ERLANG_STYLE',`from_id (`$1') ->
+ #tile
+ {
+ id = $1,
+ name = <<"[__TILE_CATEGORY_NAME] $2">>,
+ cost = $3,
+ class_range_min = $4,
+ class_range_max = $5
+ };')m4_dnl
+m4_define(`__TILE_CATEGORY',`m4_define(`__TILE_CATEGORY_NAME', `$1')')m4_dnl
+m4_define(`__TILE_CLASS_USE_ERLANG_STYLE',`__TILE_CHOOSE_STYLE(`__TILE_CLASS_ERLANG_STYLE')')m4_dnl