requests.hrl 1.2 KB

12345678910111213141516171819202122
  1. -include("basic_types.hrl").
  2. -record(session_attach, {token}).
  3. -record(login, {username, password}).
  4. -record(logout, {}).
  5. -record(join_game, {game}).
  6. -record(get_game_info, {game}).
  7. -record(get_player_info, {player_id :: 'PlayerId'() | 0}).
  8. -record(get_player_stats, {player_id :: 'PlayerId'() | 0, game_type}).
  9. -record(subscribe_player_rels, {players :: list()}).
  10. -record(unsubscribe_player_rels, {players :: list()}).
  11. -record(chat, {chat_id :: 'GameId'(),message :: string()}).
  12. -record(game_action, { game :: 'GameId'(), action :: any(), args = []}).
  13. -record(game_event, {game :: 'GameId'(), event, args = [] }).
  14. -record(chat_msg, {chat :: 'GameId'(), content, author_id::'PlayerId'(),author_nick::string() }).
  15. -record(social_action, {game :: 'GameId'(),type,recipient::'PlayerId'()}).
  16. -record(social_action_msg, {type,game::'GameId'(),initiator::'PlayerId'(),recipient::'PlayerId'()}).
  17. -record(pause_game, {table_id :: integer(),game :: 'GameId'(),action}).
  18. -record(game_paused, {table_id :: integer(), game :: 'GameId'(),action,who :: 'PlayerId'(),retries}).
  19. -record(disconnect, {reason_id,reason}).
  20. -record(player_left, {player :: 'PlayerId'(),human_replaced=false,replacement::'PlayerId'()}).