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

View File

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

View File

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

View File

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