games.hrl 648 B

1234567891011121314151617
  1. %%%
  2. %%% Message is sent when matchmaker finds match.
  3. %%%
  4. -record('PlayerResults', {
  5. player_id, %%
  6. disconnected = false :: boolean(),
  7. winner = <<"none">> :: binary(), %% similar to skill_delta
  8. skill, %% skill level the start of the game
  9. skill_delta, %% 0 for defeat, 0.25 for draw and 1 for win
  10. score = 0, %% total accumulated score for this set
  11. score_delta = 0 %% delta of okey game points
  12. }).
  13. -record('GameResults', {
  14. game_id :: integer(),
  15. results = [] :: list(#'PlayerResults'{})
  16. }).