21 lines
636 B
C#
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;
|
|
}
|