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
|
|
|
|
{
|
2023-10-31 19:35:32 +00:00
|
|
|
|
private static readonly List<BotType> bossTypes = new(){
|
2021-09-01 18:22:55 +01:00
|
|
|
|
BotType.bossbully,
|
|
|
|
|
BotType.bossgluhar,
|
|
|
|
|
BotType.bosskilla,
|
|
|
|
|
BotType.bosskojaniy,
|
|
|
|
|
BotType.bosssanitar,
|
2023-10-31 19:35:32 +00:00
|
|
|
|
BotType.bosstagilla,
|
2023-12-28 09:12:54 +00:00
|
|
|
|
BotType.bossboar,
|
|
|
|
|
BotType.bosskojaniy
|
2021-09-01 18:22:55 +01:00
|
|
|
|
};
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|