Show / Hide Table of Contents

Class ActionBlockerSystem

Utility methods to check if a specific entity is allowed to perform an action.

Inheritance
System.Object
ActionBlockerSystem
Namespace: Content.Shared.ActionBlocker
Assembly: Content.Shared.dll
Syntax
public sealed class ActionBlockerSystem : EntitySystem

Methods

| Improve this Doc View Source

CanAttack(EntityUid, Nullable<EntityUid>)

Declaration
public bool CanAttack(EntityUid uid, EntityUid? target = null)
Parameters
Type Name Description
EntityUid uid
System.Nullable<EntityUid> target
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanChangeDirection(EntityUid)

Declaration
public bool CanChangeDirection(EntityUid uid)
Parameters
Type Name Description
EntityUid uid
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanDrop(EntityUid)

Declaration
public bool CanDrop(EntityUid uid)
Parameters
Type Name Description
EntityUid uid
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanEmote(EntityUid)

Declaration
public bool CanEmote(EntityUid uid)
Parameters
Type Name Description
EntityUid uid
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanInteract(EntityUid, Nullable<EntityUid>)

Raises an event directed at both the user and the target entity to check whether a user is capable of interacting with this entity.

Declaration
public bool CanInteract(EntityUid user, EntityUid? target)
Parameters
Type Name Description
EntityUid user
System.Nullable<EntityUid> target
Returns
Type Description
System.Boolean
Remarks

If this is a generic interaction without a target (e.g., stop-drop-and-roll when burning), the target may be null. Note that this is checked by SharedInteractionSystem. In the majority of cases, systems that provide interactions will not need to check this themselves, though they may need to check other blockers like

| Improve this Doc View Source

CanMove(EntityUid, InputMoverComponent)

Declaration
public bool CanMove(EntityUid uid, InputMoverComponent component = null)
Parameters
Type Name Description
EntityUid uid
InputMoverComponent component
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanPickup(EntityUid, EntityUid)

Declaration
public bool CanPickup(EntityUid user, EntityUid item)
Parameters
Type Name Description
EntityUid user
EntityUid item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanShiver(EntityUid)

Declaration
public bool CanShiver(EntityUid uid)
Parameters
Type Name Description
EntityUid uid
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanSpeak(EntityUid)

Declaration
public bool CanSpeak(EntityUid uid)
Parameters
Type Name Description
EntityUid uid
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanSweat(EntityUid)

Declaration
public bool CanSweat(EntityUid uid)
Parameters
Type Name Description
EntityUid uid
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanThrow(EntityUid, EntityUid)

Declaration
public bool CanThrow(EntityUid user, EntityUid itemUid)
Parameters
Type Name Description
EntityUid user
EntityUid itemUid
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanUseHeldEntity(EntityUid)

Can a user utilize the entity that they are currently holding in their hands.

Declaration
public bool CanUseHeldEntity(EntityUid user)
Parameters
Type Name Description
EntityUid user
Returns
Type Description
System.Boolean
Remarks

This event is automatically checked by SharedInteractionSystem for any interactions that involve using a held entity. In the majority of cases, systems that provide interactions will not need to check this themselves.

| Improve this Doc View Source

Initialize()

Declaration
public override void Initialize()
| Improve this Doc View Source

UpdateCanMove(EntityUid, InputMoverComponent)

Declaration
public bool UpdateCanMove(EntityUid uid, InputMoverComponent component = null)
Parameters
Type Name Description
EntityUid uid
InputMoverComponent component
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾