Add ActionBlockerExtensions

This commit is contained in:
DrSmugleaf
2020-12-20 04:26:21 +01:00
parent 026d96fd2d
commit fcd52fa90c
80 changed files with 369 additions and 196 deletions

View File

@@ -0,0 +1,37 @@
namespace Content.Shared.GameObjects.EntitySystems.ActionBlocker
{
/// <summary>
/// This interface gives components the ability to block certain actions from
/// being done by the owning entity. For effects see <see cref="IEffectBlocker"/>
/// </summary>
public interface IActionBlocker
{
bool CanMove() => true;
bool CanInteract() => true;
bool CanUse() => true;
bool CanThrow() => true;
bool CanSpeak() => true;
bool CanDrop() => true;
bool CanPickup() => true;
bool CanEmote() => true;
bool CanAttack() => true;
bool CanEquip() => true;
bool CanUnequip() => true;
bool CanChangeDirection() => true;
bool CanShiver() => true;
bool CanSweat() => true;
}
}