* Cuff enhancements * Cuffs now have an OnClick for the alert to remove them * nullables * Use default interaction range so highlights are accurate * Cuffing fails more gracely * Make shared abstract and add component references to client / server * Don't cache AudioSystem and HandsComponent given cuffs are rarely used * Fix test Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
24 lines
683 B
C#
24 lines
683 B
C#
using System;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.GameObjects.Components.ActionBlocking
|
|
{
|
|
public abstract class SharedHandcuffComponent : Component
|
|
{
|
|
public override string Name => "Handcuff";
|
|
public override uint? NetID => ContentNetIDs.HANDCUFFS;
|
|
|
|
[Serializable, NetSerializable]
|
|
protected sealed class HandcuffedComponentState : ComponentState
|
|
{
|
|
public string IconState { get; }
|
|
|
|
public HandcuffedComponentState(string iconState) : base(ContentNetIDs.HANDCUFFS)
|
|
{
|
|
IconState = iconState;
|
|
}
|
|
}
|
|
}
|
|
}
|