|
@@ -1,6 +1,7 @@
|
|
|
-
|
|
|
-include("basic_types.hrl").
|
|
|
|
|
|
+% actions are being instantiated from client to server
|
|
|
+
|
|
|
-record(session_attach, {token}).
|
|
|
-record(login, {username, password}).
|
|
|
-record(logout, {}).
|
|
@@ -10,6 +11,8 @@
|
|
|
-record(game_action, {game :: 'GameId'(), action, args = []}).
|
|
|
-record(social_action, {game :: 'GameId'(), type, recipient::'PlayerId'()}).
|
|
|
|
|
|
+% event notifications from server to client
|
|
|
+
|
|
|
-record(game_event, {game :: 'GameId'(), event, args = [] }).
|
|
|
-record(chat_event, {chat :: 'GameId'(), content, author_id::'PlayerId'(),author_nick::string() }).
|
|
|
-record(social_event, {type,game::'GameId'(),initiator::'PlayerId'(),recipient::'PlayerId'()}).
|