summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-07-12 17:48:41 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-07-12 17:48:41 +0200 |
commit | a132188ccc244a6d802bd1c32fbf196d4cb53cbd (patch) | |
tree | bd54e576ea8164d3efc801d9c56420218a74e591 /src/map/reply/map_set_map.erl | |
parent | b853df7a1c3efef6b84b90fe8c492611564f8b53 (diff) |
Got it to load the map (full of "error" tiles).
Diffstat (limited to 'src/map/reply/map_set_map.erl')
-rw-r--r-- | src/map/reply/map_set_map.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/reply/map_set_map.erl b/src/map/reply/map_set_map.erl index 37c6331..336c9b2 100644 --- a/src/map/reply/map_set_map.erl +++ b/src/map/reply/map_set_map.erl @@ -1,4 +1,4 @@ --module(btl_set_map). +-module(map_set_map). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -16,16 +16,16 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% EXPORTED FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% --spec generate (btl_battlemap:type()) -> {list(any())}. -generate (Battlemap) -> +-spec generate (map_map:type()) -> {list(any())}. +generate (Map) -> { [ {<<"msg">>, <<"set_map">>}, - {<<"w">>, btl_battlemap:get_width(Battlemap)}, - {<<"h">>, btl_battlemap:get_height(Battlemap)}, + {<<"w">>, map_map:get_width(Map)}, + {<<"h">>, map_map:get_height(Map)}, { <<"t">>, - array:sparse_to_list(btl_battlemap:get_tile_class_ids(Battlemap)) + array:sparse_to_list(map_map:get_tile_class_ids(Map)) } ] }. |