using System.Collections.Generic; using CalamityMod.Projectiles.Rogue; using CalamityMod.Projectiles.Summon; using Terraria.ID; using Terraria.ModLoader; using static Terraria.ModLoader.ModContent; namespace CalamityMod.Systems.Collections { /// /// A that contains a that has all the Projectile IDs of all friendly bees. /// public sealed class FriendlyBeesList : ModSystem { public static IList List { get; private set; } public override void OnModLoad() { List = [ ProjectileID.GiantBee, ProjectileID.Bee, ProjectileID.Wasp, ProjectileType(), ProjectileType(), ProjectileType(), ProjectileType() ]; } public override void Unload() => List = null; /// /// A shorthand method to check if a projectile is a friendly bee. /// public static bool Includes(int projType) => List.Contains(projType); } }