Пример #1
0
        public static bool AreOrnamentsBoosted(string dataAssetsFile)
        {
            try
            {
                XDocument dataAssetsXML = LoadXML(dataAssetsFile);

                return(OrnamentBooster.AreOrnamentsBoosted(dataAssetsXML));
            }
            catch (Exception e)
            {
                Console.WriteLine("AreOrnamentsBoosted caught exception: {0}", e);
                return(false);
            }
        }
Пример #2
0
 public static void ToggleOrnamentBoost(string dataAssetsFile, bool install)
 {
     try
     {
         PrintInstallMessage("ornament boost", install);
         XDocument dataAssetsXML = LoadXML(dataAssetsFile);
         if (install)
         {
             OrnamentBooster.InstallBoost(dataAssetsXML);
         }
         else
         {
             OrnamentBooster.UninstallBoost(dataAssetsXML);
         }
         PrintDoneMessage("ornament boost", install);
     }
     catch (Exception e)
     {
         Console.WriteLine("ToggleOrnamentBoost caught exception: {0}", e);
     }
 }