BotGenerator/Common/Extensions/EnumExtensions.cs

23 lines
561 B
C#
Raw Permalink Normal View History

using Common.Models;
2021-09-01 18:22:55 +01:00
using System.Collections.Generic;
2021-11-23 13:01:42 +00:00
namespace Common.Extensions;
public static class EnumExtensions
{
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,
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);
}
}