BotGenerator/Common/Extensions/EnumExtensions.cs
2021-09-01 18:22:55 +01:00

23 lines
547 B
C#

using Common.Models;
using System.Collections.Generic;
namespace Common.Extensions
{
public static class EnumExtensions
{
private static readonly List<BotType> bossTypes = new List<BotType>(){
BotType.bossbully,
BotType.bossgluhar,
BotType.bosskilla,
BotType.bosskojaniy,
BotType.bosssanitar,
BotType.bosstagilla
};
public static bool IsBoss(this BotType self)
{
return bossTypes.Contains(self);
}
}
}