#nullable enable
using System;
using Robust.Shared.GameObjects;
namespace Content.Shared.Alert
{
/// <summary>
/// Defines what should happen when an alert is clicked.
/// </summary>
public interface IAlertClick
/// Invoked on server side when user clicks an alert.
/// <param name="args"></param>
void AlertClicked(ClickAlertEventArgs args);
}
public class ClickAlertEventArgs : EventArgs
/// Player clicking the alert
public readonly IEntity Player;
/// Alert that was clicked
public readonly AlertPrototype Alert;
public ClickAlertEventArgs(IEntity player, AlertPrototype alert)
Player = player;
Alert = alert;