Example #1
0
 public void Initialize()
 {
     _isLaunched   = true;
     _isSubscribed = true;
     BuyAnyFoodSettings.Load();
     ToTownWatcher();
     LuaEvents();
     Logging.Write("[BuyAnyFood] Loaded");
 }
Example #2
0
    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);
    }
Example #3
0
 public void Settings()
 {
     BuyAnyFoodSettings.Load();
     BuyAnyFoodSettings.CurrentSettings.ToForm();
     BuyAnyFoodSettings.CurrentSettings.Save();
 }