Exemple #1
0
        public void MakeGame()
        {
            String id = Context.ConnectionId;

            //may have to return a non-generic list of the data back to front end to display game

            //gc = new GameContainer();
            //List<String> Players = new List<String>();
            //Debug.WriteLine("player: " + Players.ElementAt(0));
            //Debug.WriteLine("gamehub username: "******"gamehub username: "******" " + id);
                bool res = gc.StartGame(Context.User.Identity.Name);
                if (res)
                {
                    Clients.All.showGame();
                }
            }
        }