Files
OldThink/Content.Server/_White/Cult/UI/OpenBloodSpellsUi.cs
Aviu00 e14b6cb948 Cult spells update (#607)
* - add: CultSystem.BloodSpells.

* - add: Cleanup.
2024-08-11 13:55:01 +03:00

22 lines
623 B
C#

using Content.Server.EUI;
using Content.Shared.Alert;
using JetBrains.Annotations;
using Robust.Shared.Player;
namespace Content.Server._White.Cult.UI;
[UsedImplicitly, DataDefinition]
public sealed partial class OpenBloodSpellsUi : IAlertClick
{
public void AlertClicked(EntityUid player)
{
var euiManager = IoCManager.Resolve<EuiManager>();
var entManager = IoCManager.Resolve<IEntityManager>();
if (!entManager.TryGetComponent(player, out ActorComponent? actor))
return;
euiManager.OpenEui(new CultBloodSpellsEui(player, entManager), actor.PlayerSession);
}
}