using JetBrains.Annotations; using System; namespace NEG.UI.Popup { [PublicAPI] public interface IPopup { /// /// Event to fire when popup is closed /// event Action OnPopupClosed; /// /// Show popup /// /// data assigned to popup, used to give info that popup is closed public void Show(PopupData data); /// /// Close popup or mark as closed if not visible /// /// if true hide visually, without firing callbacks to properly close void Close(bool silent = false); } }