Esempio n. 1
0
        public static void InitializeGame(string[] prefixes)
        {
            GameSessionHandler handler = new GameSessionHandler();

            PlayerListener plistener = new PlayerListener(handler, new string[] { "http://localhost:4333/player/" });
            Thread         thr       = new Thread(new ThreadStart(plistener.StartListening));  //(new string[] { "http://localhost:4333/player/" })

            thr.Start();

            GameDataRequester glistener = new GameDataRequester(handler, new string[] { "http://localhost:4333/game/", "http://localhost:4333/select/" });

            glistener.StartListening();
        }
Esempio n. 2
0
 public GameDataRequester(GameSessionHandler handler, string[] prefixes)
 {
     sessionHandler = handler;
     _prefixes      = prefixes;
 }
Esempio n. 3
0
 public SessionListener(GameSessionHandler handler)
 {
     sessionHandler = handler;
 }