Remove obsolete IActionBlocker interfaces

This commit is contained in:
metalgearsloth 2021-10-13 12:51:47 +11:00
parent 97143d91ac
commit 31208c2636
2 changed files with 0 additions and 24 deletions

View File

@ -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;
}

View File

@ -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;
}
}