BotGenerator/Common/Extensions/EnumExtensions.cs
2023-12-28 09:12:54 +00:00

23 lines
561 B
C#

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