Browse Source

server README

Maxim Sokhatsky 11 years ago
parent
commit
1b99b51b6e

+ 4 - 1
apps/server/include/requests.hrl

@@ -1,6 +1,7 @@
-
 -include("basic_types.hrl").
 -include("basic_types.hrl").
 
 
+% actions are being instantiated from client to server
+
 -record(session_attach, {token}).
 -record(session_attach, {token}).
 -record(login, {username, password}).
 -record(login, {username, password}).
 -record(logout, {}).
 -record(logout, {}).
@@ -10,6 +11,8 @@
 -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'()}).
 
 
+% event notifications from server to client
+
 -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'()}).

+ 17 - 0
apps/server/src/README.md

@@ -0,0 +1,17 @@
+Kakaranet Game Server
+=====================
+
+auth    -- token server
+modules -- instant, regular and tournament gaming
+lib     -- aux modules
+sup     -- services under supervision
+okey    -- OKEY game
+tavla   -- backgammon game
+
+Credits
+-------
+
+Sinan Ustel
+Ahmet Tez
+
+OM A HUM

+ 0 - 2
apps/server/src/game_session.erl

@@ -323,5 +323,3 @@ handle_relay_kick(Reason, _SubscrId, #state{rpc = RPC} = State) ->
 get_relay(GameId, GameList) ->
 get_relay(GameId, GameList) ->
     lists:keyfind(GameId, #participation.game_id, GameList).
     lists:keyfind(GameId, #participation.game_id, GameList).
 
 
-% TODO: flush message to web socket process
-

+ 1 - 1
apps/server/src/server.app.src

@@ -1,7 +1,7 @@
 {application, server,
 {application, server,
  [
  [
   {description, "KKN Game Server"},
   {description, "KKN Game Server"},
-  {vsn, "1"},
+  {vsn, "3"},
   {registered, []},
   {registered, []},
   {applications, [kernel,gproc,stdlib,db]},
   {applications, [kernel,gproc,stdlib,db]},
   {mod, { game_app, []}},
   {mod, { game_app, []}},