From eb78c5f52310b1eaa64a7bc376f119536270a887 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Mon, 7 Jan 2019 18:43:09 +0100 Subject: Player maps & battles: lists -> orddicts. --- src/shared/struct/shr_map_summary.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/shared/struct/shr_map_summary.erl') 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} ] -- cgit v1.2.3-70-g09d2