using Content.Shared.Item.ItemToggle.Components;
using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Effects;
///
/// Will toggle an item when triggered. Requires .
/// If TargetUser is true and they have that component they will be toggled instead.
///
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ItemToggleOnTriggerComponent : BaseXOnTriggerComponent
{
///
/// Can the item be toggled on using the trigger?
///
[DataField, AutoNetworkedField]
public bool CanActivate = true;
///
/// Can the item be toggled on using the trigger?
/// If both this and CanActivate are true then the trigger will toggle between states.
///
[DataField, AutoNetworkedField]
public bool CanDeactivate = true;
///
/// Can the audio and popups be predicted?
///
[DataField, AutoNetworkedField]
public bool Predicted = true;
///
/// Show a popup to the user when toggling the item?
///
[DataField, AutoNetworkedField]
public bool ShowPopup = true;
}