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(); }
public GameDataRequester(GameSessionHandler handler, string[] prefixes) { sessionHandler = handler; _prefixes = prefixes; }
public SessionListener(GameSessionHandler handler) { sessionHandler = handler; }