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 AvailableSlots { get; } IEnumerable CurrentPopups { get; } /// /// Open window /// /// void OpenWindow(IWindow window); /// /// Open popup /// /// void OpenPopup(IPopup popup); void CloseAllWindows() { foreach (var slot in AvailableSlots) { slot.CloseAllWindows(); } } } }