Show / Hide Table of Contents

Class UnequipAttemptEventBase

Inheritance
System.Object
UnequipAttemptEventBase
BeingUnequippedAttemptEvent
IsUnequippingAttemptEvent
Namespace: Content.Shared.Inventory.Events
Assembly: Content.Shared.dll
Syntax
public abstract class UnequipAttemptEventBase : CancellableEntityEventArgs

Constructors

| Improve this Doc View Source

UnequipAttemptEventBase(EntityUid, EntityUid, EntityUid, SlotDefinition)

Declaration
public UnequipAttemptEventBase(EntityUid unequipee, EntityUid unEquipTarget, EntityUid equipment, SlotDefinition slotDefinition)
Parameters
Type Name Description
EntityUid unequipee
EntityUid unEquipTarget
EntityUid equipment
SlotDefinition slotDefinition

Fields

| Improve this Doc View Source

Equipment

The entity to be unequipped.

Declaration
public readonly EntityUid Equipment
Field Value
Type Description
EntityUid
| Improve this Doc View Source

Reason

If cancelling and wanting to provide a custom reason, use this field. Not that this expects a loc-id.

Declaration
public string? Reason
Field Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

Slot

The slot the entity is being unequipped from.

Declaration
public readonly string Slot
Field Value
Type Description
System.String
| Improve this Doc View Source

Unequipee

The entity performing the action. NOT necessarily the same as the entity whose equipment is being removed..

Declaration
public readonly EntityUid Unequipee
Field Value
Type Description
EntityUid
| Improve this Doc View Source

UnEquipTarget

The entity being unequipped from.

Declaration
public readonly EntityUid UnEquipTarget
Field Value
Type Description
EntityUid
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾