Example #1
0
        public bool RemoveRoom(int roomId)
        {
            var logIds = _logDbHandler.GetSysLogIdsByRoomId(roomId);

            logIds.ForEach(id => _logDbHandler.DeleteSystemLog(id));
            bool ans = _gameCenter.RemoveRoom(roomId);

            return(ans);
        }
Example #2
0
        private void DeleteSysLog(int roomid)
        {
            List <int> toDelete = logsOnlyForTest.GetSysLogIdsByRoomId(roomid);

            foreach (var id in toDelete)
            {
                logsOnlyForTest.DeleteSystemLog(id);
                logsOnlyForTest.DeleteSystemLog(id);
            }
        }
Example #3
0
        public void Cleanup()
        {
            sysControl.RemoveUserById(8585000);
            sysControl.RemoveUserById(8585001);
            sysControl.RemoveUserById(8585002);
            //user1 = null;
            //user2 = null;
            //players = null;
            //player1 = null;
            //gameRoom = null;
            replayManager.DeleteGameReplay(roomID, 0);
            replayManager.DeleteGameReplay(roomID, 1);
            var logIds = _logDbHandler.GetSysLogIdsByRoomId(555888556);

            logIds.ForEach(id => _logDbHandler.DeleteSystemLog(id));
            bool ans = gameCenter.RemoveRoom(555888556);
        }