mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 03:32:07 +01:00
* cleanup of AddComponentSpecial * add RemoveComponentSpecial * require --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
17 lines
437 B
C#
17 lines
437 B
C#
using Content.Shared.Roles;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Jobs;
|
|
|
|
public sealed partial class RemoveComponentSpecial : JobSpecial
|
|
{
|
|
[DataField(required: true)]
|
|
public ComponentRegistry Components { get; private set; } = new();
|
|
|
|
public override void AfterEquip(EntityUid mob)
|
|
{
|
|
var entMan = IoCManager.Resolve<IEntityManager>();
|
|
entMan.RemoveComponents(mob, Components);
|
|
}
|
|
}
|