Abstract attachment type representing a weapon rail. It sets basic metadata (Name, Category, Description) and is hidden by default. Provides empty OnEquip and OnUnequip overrides for subclasses to implement.
namespace SWB.Base.Attachments;
public abstract class RailAttachment : Attachment
{
public override string Name => "Rail";
public override AttachmentCategory Category => AttachmentCategory.Rail;
public override string Description => "Used by other attachments to be able to attach to the weapon.";
public override bool Hide { get; set; } = true;
public override void OnEquip()
{
}
public override void OnUnequip()
{
}
}