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); } }
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); } }