using Content.Server.Atmos.Components;
using Content.Server.Atmos.EntitySystems;
using Content.Shared.Alert;
using JetBrains.Annotations;
namespace Content.Server.Alert.Click
{
///
/// Resist fire
///
[UsedImplicitly]
[DataDefinition]
public sealed partial class ResistFire : IAlertClick
{
public void AlertClicked(EntityUid player)
{
var entManager = IoCManager.Resolve();
if (entManager.TryGetComponent(player, out FlammableComponent? flammable))
{
entManager.System().Resist(player, flammable);
}
}
}
}