using Content.Server.Atmos.Components;
using Content.Server.Atmos.EntitySystems;
using Content.Shared.Alert;
using JetBrains.Annotations;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Alert.Click
{
///
/// Resist fire
///
[UsedImplicitly]
[DataDefinition]
public class ResistFire : IAlertClick
{
public void AlertClicked(ClickAlertEventArgs args)
{
if (IoCManager.Resolve().TryGetComponent(args.Player, out FlammableComponent? flammable))
{
EntitySystem.Get().Resist(args.Player, flammable);
}
}
}
}