Esempio n. 1
0
 public void writeWarning(WhiskeyEditor.Backend.WhiskeyWarning message)
 {
     if (TopView != null)
     {
         TopView.writeWarning(message);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Delete and recreate the build directory structure
        /// </summary>
        public void cleanProject()
        {
            try
            {
                if (Directory.Exists(PathBuild))
                {
                    Directory.Delete(PathBuild, true);
                }


                DirectoryInfo buildInfo = Directory.CreateDirectory(PathBuild);

                Directory.CreateDirectory(PathBuildLib);
                Directory.CreateDirectory(PathBuildMedia);
                Directory.CreateDirectory(PathBuildStates);
            }
            catch (Exception e)
            {
                WhiskeyWarning we = new WhiskeyWarning("The game is already running. Please close it, and try again.", e.Message);
                throw we;
            }
        }