using Content.Shared.Actions;
using Content.Shared.Weapons.Ranged.Systems;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Weapons.Ranged.Components;
///
/// Lets you shoot a gun using an action.
///
[RegisterComponent, NetworkedComponent, Access(typeof(ActionGunSystem))]
public sealed partial class ActionGunComponent : Component
{
///
/// Action to create, must use .
///
[DataField(required: true)]
public EntProtoId Action = string.Empty;
[DataField]
public EntityUid? ActionEntity;
///
/// Prototype of gun entity to spawn.
/// Deleted when this component is removed.
///
[DataField(required: true)]
public EntProtoId GunProto = string.Empty;
[DataField]
public EntityUid? Gun;
}
///
/// Action event for to shoot at a position.
///
public sealed partial class ActionGunShootEvent : WorldTargetActionEvent;