Class EnsnareableSystem
Namespace: Content.Server.Ensnaring
Assembly: Content.Server.dll
Syntax
public sealed class EnsnareableSystem : SharedEnsnareableSystem
Methods
| Improve this Doc View SourceForceFree(EntityUid, EnsnaringComponent)
Used to force free someone for things like if the EnsnaringComponent is removed
Declaration
public void ForceFree(EntityUid ensnare, EnsnaringComponent component)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | ensnare | |
EnsnaringComponent | component |
Initialize()
Declaration
public override void Initialize()
Overrides
| Improve this Doc View SourceInitializeEnsnaring()
Declaration
public void InitializeEnsnaring()
TryEnsnare(EntityUid, EntityUid, EnsnaringComponent)
Declaration
public void TryEnsnare(EntityUid target, EntityUid ensnare, EnsnaringComponent component)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | target | |
EntityUid | ensnare | |
EnsnaringComponent | component |
TryFree(EntityUid, EntityUid, EntityUid, EnsnaringComponent)
Used where you want to try to free an entity with the EnsnareableComponent
Declaration
public void TryFree(EntityUid target, EntityUid user, EntityUid ensnare, EnsnaringComponent component)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | target | The entity that will be freed |
EntityUid | user | The entity that is freeing the target |
EntityUid | ensnare | The entity used to ensnare |
EnsnaringComponent | component | The ensnaring component |
UpdateAlert(EntityUid, EnsnareableComponent)
Update the Ensnared alert for an entity.
Declaration
public void UpdateAlert(EntityUid target, EnsnareableComponent component)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | target | The entity that has been affected by a snare |
EnsnareableComponent | component |