use new namespace style

This commit is contained in:
Chomp 2021-11-23 13:01:42 +00:00
parent 5f9c13232b
commit f7bbc5adee
4 changed files with 37 additions and 45 deletions

View File

@ -1,7 +1,7 @@
using System.Linq;
namespace Common
{
namespace Common;
public static class BulletHelpers
{
private static readonly string[] blackList = {
@ -35,4 +35,3 @@ namespace Common
return blackList.Any(x => x.Contains(bullet));
}
}
}

View File

@ -1,7 +1,6 @@
using System.IO;
namespace Common
{
namespace Common;
public static class DiskHelpers
{
public static void CreateDirIfDoesntExist(string path)
@ -13,4 +12,3 @@ namespace Common
}
}
}
}

View File

@ -1,8 +1,7 @@
using Common.Models;
using System.Collections.Generic;
namespace Common.Extensions
{
namespace Common.Extensions;
public static class EnumExtensions
{
private static readonly List<BotType> bossTypes = new List<BotType>(){
@ -19,4 +18,3 @@ namespace Common.Extensions
return bossTypes.Contains(self);
}
}
}

View File

@ -1,7 +1,5 @@
using System;
namespace Common;
namespace Common
{
public static class LoggingHelpers
{
public static string LogTimeTaken(double totalSeconds)
@ -25,4 +23,3 @@ namespace Common
Console.ForegroundColor = ConsoleColor.White;
}
}
}