use new namespace style
This commit is contained in:
parent
5f9c13232b
commit
f7bbc5adee
@ -1,9 +1,9 @@
|
|||||||
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 = {
|
||||||
"56dff3afd2720bba668b4567", // 5.45x39 ps
|
"56dff3afd2720bba668b4567", // 5.45x39 ps
|
||||||
"5c0d56a986f774449d5de529", // 9x19mm rip
|
"5c0d56a986f774449d5de529", // 9x19mm rip
|
||||||
@ -34,5 +34,4 @@ namespace Common
|
|||||||
{
|
{
|
||||||
return blackList.Any(x => x.Contains(bullet));
|
return blackList.Any(x => x.Contains(bullet));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
@ -1,9 +1,8 @@
|
|||||||
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)
|
||||||
{
|
{
|
||||||
if (!Directory.Exists($"{path}"))
|
if (!Directory.Exists($"{path}"))
|
||||||
@ -12,5 +11,4 @@ namespace Common
|
|||||||
Directory.CreateDirectory($"{path}");
|
Directory.CreateDirectory($"{path}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
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>(){
|
||||||
BotType.bossbully,
|
BotType.bossbully,
|
||||||
BotType.bossgluhar,
|
BotType.bossgluhar,
|
||||||
@ -18,5 +17,4 @@ namespace Common.Extensions
|
|||||||
{
|
{
|
||||||
return bossTypes.Contains(self);
|
return bossTypes.Contains(self);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
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)
|
||||||
{
|
{
|
||||||
return Math.Round(totalSeconds, 2, MidpointRounding.ToEven).ToString();
|
return Math.Round(totalSeconds, 2, MidpointRounding.ToEven).ToString();
|
||||||
@ -24,5 +22,4 @@ namespace Common
|
|||||||
Console.BackgroundColor = ConsoleColor.Black;
|
Console.BackgroundColor = ConsoleColor.Black;
|
||||||
Console.ForegroundColor = ConsoleColor.White;
|
Console.ForegroundColor = ConsoleColor.White;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user