* 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
571 B
C#
19 lines
571 B
C#
using Content.Shared.Inventory;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Trigger.Components.Triggers;
|
|
|
|
/// <summary>
|
|
/// Triggers when an entity equips another entity.
|
|
/// The user is the entity being equipped.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class TriggerOnDidEquipComponent : BaseTriggerOnXComponent
|
|
{
|
|
/// <summary>
|
|
/// The slots entities being equipped to will trigger the entity.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public SlotFlags SlotFlags;
|
|
}
|