Exemplo n.º 1
0
 public void Dispose()
 {
     m_container.Dispose();
     m_engine = null;
     if (m_painters != null)
         m_painters.Dispose();
     m_painters = null;
 }
Exemplo n.º 2
0
        internal GameInstance()
        {
            m_console = TCODConsole.root;

            Compose();

            TextBox = new TextBox();
            m_painters = new PaintingCoordinator();

            // Most of the time while debugging, we don't want to save on window close
            ShouldSaveOnClose = !Preferences.Instance.DebuggingMode;
        }