Show / Hide Table of Contents

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 Source

CanWield(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
| Improve this Doc View Source

Initialize()

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

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾