Remove obsolete IActionBlocker interfaces
This commit is contained in:
parent
97143d91ac
commit
31208c2636
|
|
@ -293,15 +293,6 @@ namespace Content.Shared.ActionBlocker
|
|||
{
|
||||
var ev = new ShiverAttemptEvent(entity);
|
||||
|
||||
foreach (var blocker in ev.Entity.GetAllComponents<IActionBlocker>())
|
||||
{
|
||||
if (!blocker.CanShiver())
|
||||
{
|
||||
ev.Cancel();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return !ev.Cancelled;
|
||||
}
|
||||
|
||||
|
|
@ -316,15 +307,6 @@ namespace Content.Shared.ActionBlocker
|
|||
|
||||
RaiseLocalEvent(entity.Uid, ev);
|
||||
|
||||
foreach (var blocker in ev.Entity.GetAllComponents<IActionBlocker>())
|
||||
{
|
||||
if (!blocker.CanSweat())
|
||||
{
|
||||
ev.Cancel();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return !ev.Cancelled;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,11 +42,5 @@ namespace Content.Shared.ActionBlocker
|
|||
|
||||
[Obsolete("Use ChangeDirectionAttemptEvent instead")]
|
||||
bool CanChangeDirection() => true;
|
||||
|
||||
[Obsolete("Use ShiverAttemptEvent instead")]
|
||||
bool CanShiver() => true;
|
||||
|
||||
[Obsolete("Use SweatAttemptEvent instead")]
|
||||
bool CanSweat() => true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue