Files
tbd-station-14/Content.Shared/Actions/Components/InstantActionComponent.cs
2025-05-28 15:52:11 -04:00

21 lines
636 B
C#

using Content.Shared.Actions;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Actions.Components;
/// <summary>
/// An action that raises an event as soon as it gets used.
/// Requires <see cref="ActionComponent"/>.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(SharedActionsSystem))]
[EntityCategory("Actions")]
public sealed partial class InstantActionComponent : Component
{
/// <summary>
/// The local-event to raise when this action is performed.
/// </summary>
[DataField(required: true), NonSerialized]
public InstantActionEvent? Event;
}