From 5ded80f371633b45eba024be04a95a153abbb642 Mon Sep 17 00:00:00 2001 From: JoshuaNavarro Date: Sat, 6 Apr 2019 16:00:46 -0700 Subject: [PATCH] Tested content packs and got them working properly. --- GeneralMods/SimpleSoundManager/ModCore.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/GeneralMods/SimpleSoundManager/ModCore.cs b/GeneralMods/SimpleSoundManager/ModCore.cs index f9cee672..72fc7451 100644 --- a/GeneralMods/SimpleSoundManager/ModCore.cs +++ b/GeneralMods/SimpleSoundManager/ModCore.cs @@ -4,6 +4,13 @@ using StardewModdingAPI; namespace SimpleSoundManager { + /// + /// Mod core. + /// + /// Needs testing. + /// + /// Seems like the current structure will require both content packs and a programmed mod to request when to play specific sounds. Interesting. + /// public class ModCore : Mod { internal static IModHelper ModHelper; @@ -20,6 +27,15 @@ namespace SimpleSoundManager Config = helper.ReadConfig(); this.loadContentPacks(); this.Helper.Events.GameLoop.OneSecondUpdateTicked += this.GameLoop_OneSecondUpdateTicked; + + this.Helper.Events.GameLoop.SaveLoaded += this.GameLoop_SaveLoaded; + } + + private void GameLoop_SaveLoaded(object sender, StardewModdingAPI.Events.SaveLoadedEventArgs e) + { + + //MusicManager.MusicPacks["Your Project Name"].PlaySound("toby fox - UNDERTALE Soundtrack - 01 Once Upon a Time"); + //DebugLog("PLAY SOME SOUNDS"); } /// @@ -47,6 +63,8 @@ namespace SimpleSoundManager MusicPack musicPack = new MusicPack(contentPack); MusicManager.addMusicPack(musicPack, true, true); } + + } ///