From ea725eaeda94d47b4d1e4cf5cc0029f3d99760f9 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 13 Jul 2018 16:01:16 +0200 Subject: Adds current data. --- tile/global.m4.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tile/global.m4.conf (limited to 'tile/global.m4.conf') diff --git a/tile/global.m4.conf b/tile/global.m4.conf new file mode 100644 index 0000000..92a5351 --- /dev/null +++ b/tile/global.m4.conf @@ -0,0 +1,25 @@ +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_CLASS_ERLANG_SELECT_STYLE',` N when ((N >= $4) and (N =< $5)) -> $1;')m4_dnl +m4_define(`__TILE_CLASS_JSON_STYLE',` { + "msg": "add_tile", + "id": $1, + "nam": "[__TILE_CATEGORY_NAME] $2", + "ct": $3, + "rmi": $4, + "rma": $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 +m4_define(`__TILE_CLASS_USE_ERLANG_SELECT_STYLE',`__TILE_CHOOSE_STYLE(`__TILE_CLASS_ERLANG_SELECT_STYLE')')m4_dnl +m4_define(`__TILE_CLASS_USE_JSON_STYLE',`__TILE_CHOOSE_STYLE(`__TILE_CLASS_JSON_STYLE')')m4_dnl -- cgit v1.2.3-70-g09d2