aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/query/character_turn.erl')
-rw-r--r--src/query/character_turn.erl11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/query/character_turn.erl b/src/query/character_turn.erl
index c4f9883..a692be1 100644
--- a/src/query/character_turn.erl
+++ b/src/query/character_turn.erl
@@ -151,14 +151,15 @@ update_cache (Battle, Input) ->
)
-> binary().
generate_reply (ClientUpdate) ->
- %% TODO
jiffy:encode
(
[
- [
- <<"raw">>,
- lists:map(fun turn_result:encode/1, ClientUpdate)
- ]
+ {
+ [
+ {<<"msg">>, <<"turn_results">>},
+ {<<"cnt">>, lists:map(fun turn_result:encode/1, ClientUpdate)}
+ ]
+ }
]
).