Class ActionBlockerSystem
Utility methods to check if a specific entity is allowed to perform an action.
Inheritance
System.Object
ActionBlockerSystem
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 |
|
|
Improve this Doc
View Source
CanMove(EntityUid, InputMoverComponent)
Declaration
public bool CanMove(EntityUid uid, InputMoverComponent component = null)
Parameters
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 |
|
|
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
Returns
Type |
Description |
System.Boolean |
|