コード例 #1
0
        public void DeleteGame(string GameId)
        {
            (items["AllGameBoards"] as List <string>).Remove(GameId);
            items.Remove("GameBoard" + GameId);
            items.Remove("Password" + GameId);
            var guid = GetGuids().Where(p => p.Value == GameId).Select(p => p.Key).FirstOrDefault();

            if (guid != new Guid())
            {
                GetGuids().Remove(guid);
            }
            var games = (items["GamesWithTime"] as Dictionary <string, DateTime>);

            if (games.Keys.Contains(GameId))
            {
                games.Remove(GameId);
            }
            items.Remove("Password" + GameId);
        }
コード例 #2
0
 public void DeleteUsers(string GameId)
 {
     items.Remove("AllPlayers" + GameId);
     items.Remove("CurrentUser" + GameId);
 }