2023-06-01 12:27:19 +10:00
|
|
|
using Content.Shared.Wieldable;
|
2023-05-14 13:15:18 +10:00
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Weapons.Ranged.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates that this gun requires wielding to be useable.
|
|
|
|
|
/// </summary>
|
2024-05-13 21:53:47 -07:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
|
|
|
[Access(typeof(WieldableSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class GunRequiresWieldComponent : Component
|
2023-05-14 13:15:18 +10:00
|
|
|
{
|
2024-05-13 21:53:47 -07:00
|
|
|
[DataField, AutoNetworkedField]
|
|
|
|
|
public TimeSpan LastPopup;
|
2023-05-14 13:15:18 +10:00
|
|
|
|
2024-05-13 21:53:47 -07:00
|
|
|
[DataField, AutoNetworkedField]
|
|
|
|
|
public TimeSpan PopupCooldown = TimeSpan.FromSeconds(1);
|
2024-07-24 12:33:14 +00:00
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public LocId? WieldRequiresExamineMessage = "gunrequireswield-component-examine";
|
2023-05-14 13:15:18 +10:00
|
|
|
}
|