Abstract attachment type representing a weapon rail. It derives from Attachment and supplies default metadata (name, category, description) and empty equip/unequip handlers. It is intended as a base class for other attachments that need a rail.
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()
{
}
}