public static void InitializeGame(List<PlayerModel> players,string name)
        {
            GameSessionModel CurrentSession = new GameSessionModel(players, name);
            GameSessionManagerModel.Instance.GameSessionCollection.Add(CurrentSession);

            var context = GlobalHost.ConnectionManager.GetHubContext<Lobby>();
            context.Clients.Group(name).initializePlayers(name);
        }
        public static void InitializeGame(List <PlayerModel> players, string name)
        {
            GameSessionModel CurrentSession = new GameSessionModel(players, name);

            GameSessionManagerModel.Instance.GameSessionCollection.Add(CurrentSession);

            var context = GlobalHost.ConnectionManager.GetHubContext <Lobby>();

            context.Clients.Group(name).initializePlayers(name);
        }
 public void AddGameSession(GameSessionModel session)
 {
     GameSessionCollection.Add(session);
 }
 public void AddGameSession(GameSessionModel session)
 {
     GameSessionCollection.Add(session);
 }