public static bool AreClubOrnamentsInstalled(string dataAssetsFile) { try { XDocument dataAssetsXML = LoadXML(dataAssetsFile); return(ClubOrnamentUnlocker.AreClubOrnamentsInstalled(dataAssetsXML)); } catch (Exception e) { Console.WriteLine("AreClubOrnamentsInstalled caught exception: {0}", e); return(false); } }
public static void ToggleClubOrnaments(string dataAssetsFile, bool install) { try { PrintInstallMessage("club ornaments", install); XDocument dataAssetsXML = LoadXML(dataAssetsFile); if (install) { ClubOrnamentUnlocker.UnlockClubOrnaments(dataAssetsXML); } else { ClubOrnamentUnlocker.LockClubOrnaments(dataAssetsXML); } PrintDoneMessage("club ornaments", install); } catch (Exception e) { Console.WriteLine("ToggleClubOrnaments caught exception: {0}", e); } }