Deprecate a bunch of IActionBlocker (#4852)
* Deprecate IActionBlocker ChangeDirectionAttempt * Woops * Throw and interact * Deperacte speech * ActionBlocker in fucking shambles * CanEmote go byebye * CanAttack is GONE * IActionBlocker finally ded * DRY
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Content.Shared.Pulling.Components;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Maths;
|
||||
@@ -10,24 +8,13 @@ using Robust.Shared.ViewVariables;
|
||||
namespace Content.Shared.Cuffs.Components
|
||||
{
|
||||
[NetworkedComponent()]
|
||||
public class SharedCuffableComponent : Component, IActionBlocker
|
||||
public class SharedCuffableComponent : Component
|
||||
{
|
||||
public override string Name => "Cuffable";
|
||||
|
||||
[ViewVariables]
|
||||
public bool CanStillInteract { get; set; } = true;
|
||||
|
||||
#region ActionBlockers
|
||||
|
||||
bool IActionBlocker.CanInteract() => CanStillInteract;
|
||||
bool IActionBlocker.CanUse() => CanStillInteract;
|
||||
bool IActionBlocker.CanPickup() => CanStillInteract;
|
||||
bool IActionBlocker.CanDrop() => CanStillInteract;
|
||||
bool IActionBlocker.CanAttack() => CanStillInteract;
|
||||
bool IActionBlocker.CanEquip() => CanStillInteract;
|
||||
bool IActionBlocker.CanUnequip() => CanStillInteract;
|
||||
#endregion
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
protected sealed class CuffableComponentState : ComponentState
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user