Exemplo n.º 1
0
        public static bool AreVisualObjectsOrnaments(string dataAssetsFile)
        {
            try
            {
                XDocument dataAssetsXML = LoadXML(dataAssetsFile);

                return(VisualObjectToOrnamentalBuildingConverter.AreVisualObjectsOrnaments(dataAssetsXML));
            }
            catch (Exception e)
            {
                Console.WriteLine("AreCheatOrnamentsInstalled caught exception: {0}", e);
                return(false);
            }
        }
Exemplo n.º 2
0
 public static void ToggleVisualObjectsOrnaments(string dataAssetsFile, bool install)
 {
     try
     {
         PrintInstallMessage("visual object ornaments", install);
         XDocument dataAssetsXML = LoadXML(dataAssetsFile);
         if (install)
         {
             VisualObjectToOrnamentalBuildingConverter.ToOrnamental(dataAssetsXML);
         }
         else
         {
             VisualObjectToOrnamentalBuildingConverter.ToVisualObject(dataAssetsXML);
         }
         PrintDoneMessage("visual object ornaments", install);
     }
     catch (Exception e)
     {
         Console.WriteLine("ToggleVisualObjectsOrnaments caught exception: {0}", e);
     }
 }