Class WieldableSystem
Inheritance
System.Object
WieldableSystem
Namespace: Content.Shared.Wieldable
Assembly: Content.Shared.dll
Syntax
public sealed class WieldableSystem : EntitySystem
Methods
| Improve this Doc View SourceCanWield(EntityUid, WieldableComponent, EntityUid, Boolean)
Declaration
public bool CanWield(EntityUid uid, WieldableComponent component, EntityUid user, bool quiet = false)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
WieldableComponent | component | |
EntityUid | user | |
System.Boolean | quiet |
Returns
Type | Description |
---|---|
System.Boolean |
Initialize()
Declaration
public override void Initialize()
TryUnwield(EntityUid, WieldableComponent, EntityUid)
Attempts to unwield an item, with no DoAfter.
Declaration
public bool TryUnwield(EntityUid used, WieldableComponent component, EntityUid user)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | used | |
WieldableComponent | component | |
EntityUid | user |
Returns
Type | Description |
---|---|
System.Boolean | True if the attempt wasn't blocked. |
TryWield(EntityUid, WieldableComponent, EntityUid)
Attempts to wield an item, creating a DoAfter..
Declaration
public bool TryWield(EntityUid used, WieldableComponent component, EntityUid user)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | used | |
WieldableComponent | component | |
EntityUid | user |
Returns
Type | Description |
---|---|
System.Boolean | True if the attempt wasn't blocked. |