using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Effects;
///
/// Trigger effect for stunning an entity.
/// Stuns the user if is true.
///
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class StunOnTriggerComponent : BaseXOnTriggerComponent
{
///
/// How long to stun the target.
///
[DataField, AutoNetworkedField]
public TimeSpan StunAmount = TimeSpan.FromSeconds(1);
///
/// If true, refresh the stun duration.
/// If false, stun is added on-top of any existing stun.
///
[DataField, AutoNetworkedField]
public bool Refresh = true;
}