mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 02:41:18 +03:00
* 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>
28 lines
1 KiB
C#
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;
|