Files
crystall-punk-14/Content.Shared/ActionBlocker/IActionBlocker.cs

53 lines
1.5 KiB
C#
Raw Normal View History

using System;
2021-06-09 22:19:39 +02:00
using Content.Shared.EffectBlocker;
2020-12-20 04:31:04 +01:00
2021-06-09 22:19:39 +02:00
namespace Content.Shared.ActionBlocker
2020-12-20 04:26:21 +01:00
{
/// <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>
[Obsolete("Use events instead")]
2020-12-20 04:26:21 +01:00
public interface IActionBlocker
{
[Obsolete("Use InteractAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanInteract() => true;
[Obsolete("Use UseAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanUse() => true;
[Obsolete("Use ThrowAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanThrow() => true;
[Obsolete("Use SpeakAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanSpeak() => true;
[Obsolete("Use DropAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanDrop() => true;
[Obsolete("Use PickupAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanPickup() => true;
[Obsolete("Use EmoteAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanEmote() => true;
[Obsolete("Use AttackAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanAttack() => true;
[Obsolete("Use EquipAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanEquip() => true;
[Obsolete("Use UnequipAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanUnequip() => true;
[Obsolete("Use ChangeDirectionAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanChangeDirection() => true;
[Obsolete("Use ShiverAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanShiver() => true;
[Obsolete("Use SweatAttemptEvent instead")]
2020-12-20 04:26:21 +01:00
bool CanSweat() => true;
}
2020-12-20 04:31:04 +01:00
}