summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-08-03 10:55:28 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-08-03 10:55:28 +0200
commit61b6971817cba720ae6df74ef9cde8ab8797d3c6 (patch)
tree6c8336ef0735638a3c4c45d71137c4b808975cca /tile/global.m4.conf
parent26957226f4601ff3adb777efc5d19553bdda0711 (diff)
Introduces families & depth.
Diffstat (limited to 'tile/global.m4.conf')
-rw-r--r--tile/global.m4.conf10
1 files changed, 7 insertions, 3 deletions
diff --git a/tile/global.m4.conf b/tile/global.m4.conf
index 9224b6e..f6ce06b 100644
--- a/tile/global.m4.conf
+++ b/tile/global.m4.conf
@@ -6,15 +6,19 @@ m4_define(`__TILE_CLASS_ERLANG_STYLE',`from_class_id (`$1') ->
{
id = $1,
name = <<"[__TILE_CATEGORY_NAME] $2">>,
- cost = $3
+ cost = $3,
+ family = __TILE_CATEGORY_FAMILY,
+ depth = __TILE_CATEGORY_DEPTH
};')m4_dnl
m4_define(`__TILE_CLASS_JSON_STYLE',` {
"msg": "add_tile",
"id": $1,
"nam": "[__TILE_CATEGORY_NAME] $2",
- "ct": $3
+ "ct": $3,
+ "fa": __TILE_CATEGORY_FAMILY,
+ "de": __TILE_CATEGORY_DEPTH
},')m4_dnl
-m4_define(`__TILE_CATEGORY',`m4_define(`__TILE_CATEGORY_NAME', `$1')')m4_dnl
+m4_define(`__TILE_CATEGORY',`m4_define(`__TILE_CATEGORY_NAME', `$1')m4_define(`__TILE_CATEGORY_FAMILY', `$2')m4_define(`__TILE_CATEGORY_DEPTH', `$3')')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