public void Initialize() { _isLaunched = true; _isSubscribed = true; BuyAnyFoodSettings.Load(); ToTownWatcher(); LuaEvents(); Logging.Write("[BuyAnyFood] Loaded"); }
public static bool Load() { try { if (File.Exists(AdviserFilePathAndName("BuyAnyFoodSettings", ObjectManager.Me.Name + "." + Usefuls.RealmName))) { BuyAnyFoodSettings.CurrentSettings = Load <BuyAnyFoodSettings>(AdviserFilePathAndName("BuyAnyFoodSettings", ObjectManager.Me.Name + "." + Usefuls.RealmName)); return(true); } BuyAnyFoodSettings.CurrentSettings = new BuyAnyFoodSettings(); } catch (Exception e) { Logging.WriteDebug("BuyAnyFoodSettings => Load(): " + e); } return(false); }
public void Settings() { BuyAnyFoodSettings.Load(); BuyAnyFoodSettings.CurrentSettings.ToForm(); BuyAnyFoodSettings.CurrentSettings.Save(); }