summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-08-02 20:23:01 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-08-02 20:23:01 +0200 |
commit | 6869f9a8aaab7618dd49cbb47388838fc883ceb9 (patch) | |
tree | 271d743e9ece766a3fd6fb21c9c6ca608b06d9c5 /src/map/reply | |
parent | c0349f22f281940bd2f9b3cf670b21dc895dca85 (diff) |
Getting the map editor up to date...
Diffstat (limited to 'src/map/reply')
-rw-r--r-- | src/map/reply/map_add_tile.erl | 6 | ||||
-rw-r--r-- | src/map/reply/map_set_map.erl | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/map/reply/map_add_tile.erl b/src/map/reply/map_add_tile.erl index ab0d80b..1047231 100644 --- a/src/map/reply/map_add_tile.erl +++ b/src/map/reply/map_add_tile.erl @@ -21,10 +21,8 @@ generate (Tile) -> { [ {<<"msg">>, <<"add_tile">>}, - {<<"id">>, map_tile:get_id(Tile)}, + {<<"id">>, map_tile:get_class_id(Tile)}, {<<"nam">>, map_tile:get_name(Tile)}, - {<<"ct">>, map_tile:get_cost(Tile)}, - {<<"rmi">>, map_tile:get_range_minimum(Tile)}, - {<<"rma">>, map_tile:get_range_maximum(Tile)} + {<<"ct">>, map_tile:get_cost(Tile)} ] }. diff --git a/src/map/reply/map_set_map.erl b/src/map/reply/map_set_map.erl index 336c9b2..a4fc01a 100644 --- a/src/map/reply/map_set_map.erl +++ b/src/map/reply/map_set_map.erl @@ -25,7 +25,11 @@ generate (Map) -> {<<"h">>, map_map:get_height(Map)}, { <<"t">>, - array:sparse_to_list(map_map:get_tile_class_ids(Map)) + lists:map + ( + fun map_tile:instance_to_int_list/1, + array:sparse_to_list(map_map:get_tile_instances(Map)) + ) } ] }. |