32 lines
766 B
C#
32 lines
766 B
C#
using System.Collections.Generic;
|
|
using NEG.UI.Popup;
|
|
using NEG.UI.Window;
|
|
using NEG.UI.WindowSlot;
|
|
|
|
namespace NEG.UI.Area
|
|
{
|
|
public interface IArea : IUiElement
|
|
{
|
|
IEnumerable<IWindowSlot> AvailableSlots { get; }
|
|
IEnumerable<IPopup> CurrentPopups { get; }
|
|
|
|
/// <summary>
|
|
/// Open window
|
|
/// </summary>
|
|
/// <param name="window"></param>
|
|
void OpenWindow(IWindow window);
|
|
/// <summary>
|
|
/// Open popup
|
|
/// </summary>
|
|
/// <param name="popup"></param>
|
|
void OpenPopup(IPopup popup);
|
|
|
|
void CloseAllWindows()
|
|
{
|
|
foreach (var slot in AvailableSlots)
|
|
{
|
|
slot.CloseAllWindows();
|
|
}
|
|
}
|
|
}
|
|
} |