| summaryrefslogtreecommitdiff |
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-08-28 17:03:35 +0200 |
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-08-28 17:03:35 +0200 |
| commit | 225df72e3cf2dbd6c00a75e33be0034e8e76d769 (patch) | |
| tree | ed23193108825abc1fe2d2571a8df7b9811709ca /glyph/global.m4.conf | |
| parent | a3ca314c49a9acfd2d27742c7a4998b1fa561c5e (diff) | |
Fixes a few issues, makes it easier to read & use.
Diffstat (limited to 'glyph/global.m4.conf')
| -rw-r--r-- | glyph/global.m4.conf | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/glyph/global.m4.conf b/glyph/global.m4.conf index fafef02..69d9bdf 100644 --- a/glyph/global.m4.conf +++ b/glyph/global.m4.conf @@ -1,25 +1,35 @@ -m4_include(__MAKEFILE_DATA_DIR`/modifiers.m4.conf')m4_dnl -m4_define(`__GLYPH_CHOOSE_STYLE', `m4_define(`__GLYPH',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl +m4_include(__MAKEFILE_DATA_DIR`/omnimods.m4.conf')m4_dnl +m4_dnl +m4_dnl +m4_dnl +m4_define(`__GLYPH_CHOOSE_STYLE', + `m4_define(`__GLYPH',m4_defn(`$1'))m4_undefine(`$1')')m4_dnl +m4_dnl +m4_dnl +m4_dnl m4_define(`__GLYPH_ERLANG_STYLE',`from_id (`$1') -> #glyph { id = $1, name = <<"$2">>, - attr_mod = $3, - stat_mod = $4, - atk_mod = $5, - def_mod = $6 + omnimods = __OMNIMODS($3, $4, $5, $6) }; ')m4_dnl +m4_define(`__GLYPH_USE_ERLANG_STYLE',`__GLYPH_CHOOSE_STYLE(`__GLYPH_ERLANG_STYLE')__MOD_USE_ERLANG_STYLE()')m4_dnl +m4_dnl +m4_dnl +m4_dnl m4_define(`__GLYPH_JSON_STYLE',` { "msg": "add_glyph", "id": $1, "nam": "$2", - "attm": $3, - "stam": $4, - "atkm": $5, - "defm": $6 + "omni": __OMNIMODS($3, $4, $5, $6) }, ')m4_dnl -m4_define(`__GLYPH_USE_ERLANG_STYLE',`__GLYPH_CHOOSE_STYLE(`__GLYPH_ERLANG_STYLE')__MOD_USE_ERLANG_STYLE()')m4_dnl m4_define(`__GLYPH_USE_JSON_STYLE',`__GLYPH_CHOOSE_STYLE(`__GLYPH_JSON_STYLE')__MOD_USE_JSON_STYLE()')m4_dnl +m4_dnl +m4_dnl +m4_dnl +m4_ifelse(__CODE_STYLE(), + erlang, __GLYPH_USE_ERLANG_STYLE(), + __CODE_STYLE, json, __GLYPH_USE_JSON_STYLE())m4_dnl |


