summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-01-07 18:43:09 +0100
committernsensfel <SpamShield0@noot-noot.org>2019-01-07 18:43:09 +0100
commiteb78c5f52310b1eaa64a7bc376f119536270a887 (patch)
tree6cade2f10b36738c7e8a225d7e94783ce7b2c9cc /src/shared/struct/shr_map_summary.erl
parent40b20e4355bf753f9a20d387f9c7929ef72450bc (diff)
Player maps & battles: lists -> orddicts.
Diffstat (limited to 'src/shared/struct/shr_map_summary.erl')
-rw-r--r--src/shared/struct/shr_map_summary.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/struct/shr_map_summary.erl b/src/shared/struct/shr_map_summary.erl
index a7a1283..554b988 100644
--- a/src/shared/struct/shr_map_summary.erl
+++ b/src/shared/struct/shr_map_summary.erl
@@ -92,10 +92,11 @@ get_id_field () -> #map_summary.id.
-spec get_name_field () -> non_neg_integer().
get_name_field () -> #map_summary.name.
--spec encode (type()) -> {list(any())}.
-encode (MapSummary) ->
+-spec encode ({non_neg_integer(), type()}) -> {list(any())}.
+encode ({IX, MapSummary}) ->
{
[
+ {<<"ix">>, IX},
{<<"id">>, MapSummary#map_summary.id},
{<<"nme">>, MapSummary#map_summary.name}
]