CatStation/Content.Shared/Actions/Components/EntityEffectActionComponent.cs
KeTuFaisPiKiNut e925a86dcd
EntityEffectActions can target the user. (#44245)
* epinephrine overdose !!!!! fleshmend!!!!

* antazine

* antazine yaml fail

* woops

* address things (build plz)

* REMOVE THE FUN!!!! KILL THE WHISMY!!!!

* i am stoopid i am stoopid

* modernized

* THIS IS ALL BS RAAAAAH

---------

Co-authored-by: nomdéraisonnablementlong <you@example.com>
2026-08-18 15:28:46 +00:00

28 lines
1 KiB
C#

using Content.Shared.EntityEffects;
using Robust.Shared.GameStates;
namespace Content.Shared.Actions.Components;
/// <summary>
/// An action component that applies a list of entity effects to the target when performed.
/// Requires <see cref="EntityTargetActionComponent"/> and <see cref="ActionComponent"/>.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(EntityEffectActionSystem))]
public sealed partial class EntityEffectActionComponent : Component
{
/// <summary>
/// List of entity effects to apply to the target when this action is performed.
/// </summary>
[DataField(required: true)]
public EntityEffect[]? Effects;
}
/// <summary>
/// Event raised when an entity effect action is performed.
/// </summary>
public sealed partial class EntityEffectActionEvent : EntityTargetActionEvent;
/// <summary>
/// Event raised to link between instant actions & the entity effect action.
/// </summary>
public sealed partial class EntityEffectInstantActionEvent : InstantActionEvent;