﻿using System.Collections.Generic;

namespace Rejector
{
	public class WindowManager
	{
		private List<Window> windows;

		public WindowManager()
		{
			windows = new List<Window>();
		}

		public void addWindow(Window window) {
			windows.Add(window);
		}

		public void removeWindow(Window window) {
			windows.Remove(window);
		}

		public void onGUI() {
			foreach (Window w in windows) {
				w.drawGUI();
			}
		}
	}
}

