using System; using Robust.Shared.GameObjects; namespace Content.Shared.Alert { /// /// Defines what should happen when an alert is clicked. /// public interface IAlertClick { /// /// Invoked on server side when user clicks an alert. /// /// 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; } } }