|
@@ -6,7 +6,7 @@
|
|
-record(login, {username, password}).
|
|
-record(login, {username, password}).
|
|
-record(logout, {}).
|
|
-record(logout, {}).
|
|
-record(join_game, {game}).
|
|
-record(join_game, {game}).
|
|
--record(player_stats, {player_id :: 'PlayerId'() | 0, game_type}).
|
|
|
|
|
|
+-record(stats_action, {player_id :: 'PlayerId'(), game_type}).
|
|
-record(chat, {chat_id :: 'GameId'(), message :: string()}).
|
|
-record(chat, {chat_id :: 'GameId'(), message :: string()}).
|
|
-record(game_action, {game :: 'GameId'(), action, args = []}).
|
|
-record(game_action, {game :: 'GameId'(), action, args = []}).
|
|
-record(social_action, {game :: 'GameId'(), type, recipient::'PlayerId'()}).
|
|
-record(social_action, {game :: 'GameId'(), type, recipient::'PlayerId'()}).
|
|
@@ -16,6 +16,7 @@
|
|
-record(game_event, {game :: 'GameId'(), event, args = [] }).
|
|
-record(game_event, {game :: 'GameId'(), event, args = [] }).
|
|
-record(chat_event, {chat :: 'GameId'(), content, author_id::'PlayerId'(),author_nick::string() }).
|
|
-record(chat_event, {chat :: 'GameId'(), content, author_id::'PlayerId'(),author_nick::string() }).
|
|
-record(social_event, {type,game::'GameId'(),initiator::'PlayerId'(),recipient::'PlayerId'()}).
|
|
-record(social_event, {type,game::'GameId'(),initiator::'PlayerId'(),recipient::'PlayerId'()}).
|
|
|
|
+-record(stats_event, {player_id :: 'PlayerId'(), games, reveals, protocol}).
|
|
-record(pause_game, {table_id :: integer(),game :: 'GameId'(),action}).
|
|
-record(pause_game, {table_id :: integer(),game :: 'GameId'(),action}).
|
|
-record(game_paused, {table_id :: integer(), game :: 'GameId'(),action,who :: 'PlayerId'(),retries}).
|
|
-record(game_paused, {table_id :: integer(), game :: 'GameId'(),action,who :: 'PlayerId'(),retries}).
|
|
-record(disconnect, {reason_id,reason}).
|
|
-record(disconnect, {reason_id,reason}).
|