예제 #1
0
 public void Destroy()
 {
     if (m_DGen != null)
     {
         m_DGen.Dispose();
         m_DGen = null;
     }
 }
예제 #2
0
        public void Init(int windowWidth, int windowHeight, IntPtr parent, bool pal, char region)
        {
            m_Instance = this;

            m_DGen = new DGen();
            m_DGen.Init(windowWidth, windowHeight, parent, pal, (sbyte)region);

            if (Settings.Default.DGenWindowLocation != null)
            {
                m_DGen.SetWindowPosition(Settings.Default.DGenWindowLocation.X, Settings.Default.DGenWindowLocation.Y);
            }
        }