using Content.Server.Buckle.Components; using Content.Shared.Alert; using JetBrains.Annotations; namespace Content.Server.Alert.Click { /// /// Unbuckles if player is currently buckled. /// [UsedImplicitly] [DataDefinition] public sealed class Unbuckle : IAlertClick { public void AlertClicked(EntityUid player) { if (IoCManager.Resolve().TryGetComponent(player, out BuckleComponent? buckle)) { buckle.TryUnbuckle(player); } } } }