﻿using System;
using UnityEngine;

namespace KSPPluginFramework
{
    public class GUIWindow : BaseWindow<Action>
    {
        #region Constructors
        public GUIWindow(int id, string title, Action drawFunction, GUIStyle style = null)
            : base(id, title, drawFunction, style)
        { }
        #endregion

        #region IWindow
        public override void Draw()
        {
            if (this.DrawFunction == null) return;

            this.DrawFunction();
        }

        public override void Dispose()
        {

        }
        #endregion
    }
}
