Beispiel #1
0
        private void GameLoop_SaveLoaded(object sender, SaveLoadedEventArgs e)
        {
            BubbleGuyStatics.Initialize(Path.Combine(oHelper.DirectoryPath, "Sprites"));
#if DEBUG
            Monitor.Log($"BubbleGuy name: '{BubbleGuyStatics.BubbleGuyName}'", LogLevel.Info);
#endif
        }
Beispiel #2
0
 public override void Entry(IModHelper helper)
 {
     //
     //  check for Stardew Web, if installed
     //  do not load this mod
     //
     if (helper.ModRegistry.IsLoaded("prism99.stardewweb"))
     {
         Monitor.Log("Stardew Web is installed, this mod is not needed an will not be loaded.", LogLevel.Info);
     }
     else
     {
         SDV_Logger.Init(Monitor, helper.DirectoryPath, true);
         StardewThreadSafeLoader.Initialize(helper);
         SMAPIHelpers.Initialize(helper);
         BubbleGuyStatics.Initialize(helper.DirectoryPath);
         Monitor.Log($"Asset directory: {BubbleGuyStatics.AssetsPath}", LogLevel.Info);
         oManager = new BubbleGuyManager(BubbleGuyStatics.SavesPath, BubbleGuyStatics.AssetsPath, helper, Monitor, true);
         oManager.StartBubbleChat(ModManifest.UniqueID);
     }
 }