2021-08-31 18:39:30 +01:00
|
|
|
|
using Common.Models;
|
2021-09-01 18:22:55 +01:00
|
|
|
|
using System.Collections.Generic;
|
2021-08-31 18:39:30 +01:00
|
|
|
|
|
2021-11-23 13:01:42 +00:00
|
|
|
|
namespace Common.Extensions;
|
|
|
|
|
public static class EnumExtensions
|
2021-08-31 18:39:30 +01:00
|
|
|
|
{
|
2021-11-23 13:01:42 +00:00
|
|
|
|
private static readonly List<BotType> bossTypes = new List<BotType>(){
|
2021-09-01 18:22:55 +01:00
|
|
|
|
BotType.bossbully,
|
|
|
|
|
BotType.bossgluhar,
|
|
|
|
|
BotType.bosskilla,
|
|
|
|
|
BotType.bosskojaniy,
|
|
|
|
|
BotType.bosssanitar,
|
|
|
|
|
BotType.bosstagilla
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-23 13:01:42 +00:00
|
|
|
|
public static bool IsBoss(this BotType self)
|
|
|
|
|
{
|
|
|
|
|
return bossTypes.Contains(self);
|
2021-08-31 18:39:30 +01:00
|
|
|
|
}
|
|
|
|
|
}
|