summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-11-16 21:53:38 +0100 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-11-16 21:53:38 +0100 |
commit | f4bd9fdf0e9555837d5c1306fb629372c9a4c0f1 (patch) | |
tree | fadd79232d0b04ee7772c3915af516636738f678 /src/battlemap.erl | |
parent | efaf3ee3f4b2478079c7b9dde8f9e879956a460f (diff) |
Still pretty unsure what can and can't be done.
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) - } - ] - } - ). |