summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/battlemap.erl')
-rw-r--r-- | src/battlemap.erl | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/battlemap.erl b/src/battlemap.erl deleted file mode 100644 index 4366852..0000000 --- a/src/battlemap.erl +++ /dev/null @@ -1,22 +0,0 @@ --module(battlemap). --export([encode_in_json/1]). - -encode_in_json ( - { - Width, - Height, - Tiles - } -) -> - jiffy:encode( - { - [ - {<<"width">>, Width}, - {<<"height">>, Height}, - { - <<"content">>, - lists:map((fun ({ID, Cost}) -> [ID, Cost] end), Tiles) - } - ] - } - ). |