* added equip and unequip triggers for equipment and equipee * Update Content.Shared/Trigger/Components/Triggers/TriggerOnDidEquipComponent.cs --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
19 lines
618 B
C#
19 lines
618 B
C#
using Content.Shared.Inventory;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Trigger.Components.Triggers;
|
|
|
|
/// <summary>
|
|
/// Triggers when an entity is unequipped from another entity.
|
|
/// The user is the entity being unequipped from (i.e. the (un)equipee).
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class TriggerOnGotUnequippedComponent : BaseTriggerOnXComponent
|
|
{
|
|
/// <summary>
|
|
/// The slots that being unequipped from will trigger the entity.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public SlotFlags SlotFlags;
|
|
}
|