Exemple #1
0
        public static bool IsSquareOrnamentInstalled(string dataAssetsFile)
        {
            try
            {
                XDocument dataAssetsXML = LoadXML(dataAssetsFile);

                return(SquareOrnamentUnlocker.IsSquareOrnamentInstalled(dataAssetsXML));
            }
            catch (Exception e)
            {
                Console.WriteLine("IsSquareOrnamentInstalled caught exception: {0}", e);
                return(false);
            }
        }
Exemple #2
0
 public static void ToggleSquareOrnaments(string dataAssetsFile, bool install)
 {
     try
     {
         PrintInstallMessage("square ornaments", install);
         XDocument dataAssetsXML = LoadXML(dataAssetsFile);
         if (install)
         {
             SquareOrnamentUnlocker.UnlockSquareOrnament(dataAssetsXML);
         }
         else
         {
             SquareOrnamentUnlocker.LockSquareOrnament(dataAssetsXML);
         }
         PrintDoneMessage("square ornaments", install);
     }
     catch (Exception e)
     {
         Console.WriteLine("ToggleSquareOrnament caught exception: {0}", e);
     }
 }