summaryrefslogtreecommitdiff
path: root/tile
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-11-15 22:08:40 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-11-15 22:08:40 +0100
commit45b85e7e6f3cfc1d3c5405506b595cb35b5c942c (patch)
tree9b031aa31dffd6ebde880a862c7c614f80ff48e1 /tile
parentebbfea0ecadf6d6278464ce1010beedb42a555bf (diff)
ID as strings.
Diffstat (limited to 'tile')
-rw-r--r--tile/global.m4.conf10
-rw-r--r--tile/pattern/global.m4.conf2
2 files changed, 6 insertions, 6 deletions
diff --git a/tile/global.m4.conf b/tile/global.m4.conf
index 619de8b..eaa0250 100644
--- a/tile/global.m4.conf
+++ b/tile/global.m4.conf
@@ -13,14 +13,14 @@ m4_define(`__TILE_CATEGORY',`m4_define(`__TILE_CATEGORY_NAME', `$1')m4_define(`_
m4_dnl
m4_dnl
m4_dnl
-m4_define(`__TILE_CLASS_ERLANG_STYLE',`from_class_id (`$1') ->
+m4_define(`__TILE_CLASS_ERLANG_STYLE',`from_class_id (<<"`$1'">>) ->
#tile
{
- id = $1,
+ id = <<"$1">>,
name = <<"[__TILE_CATEGORY_NAME] $2">>,
cost = $3,
omnimods = __OMNIMODS($4, $5, $6, $7),
- family = __TILE_CATEGORY_FAMILY,
+ family = <<"__TILE_CATEGORY_FAMILY">>,
depth = __TILE_CATEGORY_DEPTH
};')m4_dnl
m4_define(`__TILE_CLASS_USE_ERLANG_STYLE',
@@ -30,11 +30,11 @@ m4_dnl
m4_dnl
m4_define(`__TILE_CLASS_JSON_STYLE',` {
"msg": "add_tile",
- "id": $1,
+ "id": "$1",
"nam": "[__TILE_CATEGORY_NAME] $2",
"ct": $3,
"omni": __OMNIMODS($4, $5, $6, $7),
- "fa": __TILE_CATEGORY_FAMILY,
+ "fa": "__TILE_CATEGORY_FAMILY",
"de": __TILE_CATEGORY_DEPTH
},')m4_dnl
m4_define(`__TILE_CLASS_USE_JSON_STYLE',
diff --git a/tile/pattern/global.m4.conf b/tile/pattern/global.m4.conf
index 97cafd1..5cfdf54 100644
--- a/tile/pattern/global.m4.conf
+++ b/tile/pattern/global.m4.conf
@@ -11,7 +11,7 @@ m4_dnl
m4_dnl
m4_define(`__TILE_PATTERN_JSON_STYLE',` {
"msg": "add_tile_pattern",
- "v": `$10',
+ "v": "`$10'",
"w" : `$11',
"p": "`$1'`$2'`$3'`$4'`$6'`$7'`$8'`$9'"
},')m4_dnl