mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 09:07:27 +00:00
33 lines
831 B
C#
33 lines
831 B
C#
using Robust.Shared.Map;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Weapons.Ranged.Events;
|
|
|
|
/// <summary>
|
|
/// Raised on the client to indicate it'd like to shoot.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class RequestShootEvent : EntityEventArgs
|
|
{
|
|
/// <summary>
|
|
/// The gun shooting.
|
|
/// </summary>
|
|
public NetEntity Gun;
|
|
|
|
/// <summary>
|
|
/// The location the player is shooting at.
|
|
/// </summary>
|
|
public NetCoordinates Coordinates;
|
|
|
|
/// <summary>
|
|
/// The target the player is shooting at, if any.
|
|
/// </summary>
|
|
public NetEntity? Target;
|
|
|
|
/// <summary>
|
|
/// If the client wants to continuously shoot.
|
|
/// If true, the gun will continue firing until a stop event is sent from the client.
|
|
/// </summary>
|
|
public bool Continuous;
|
|
}
|