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