Small comment update

This commit is contained in:
2017-08-21 16:28:41 -07:00
parent 01c3822a87
commit 9aca5b19d3
1 changed files with 5 additions and 1 deletions

View File

@ -10,16 +10,20 @@ namespace SoundExample
{
public class Class1 : Mod
{
/// <summary>
/// Create a SoundManager object so I can play/stop sounds.
/// </summary>
SimpleSoundManager.SoundManager mySoundManager;
public override void Entry(IModHelper helper)
{
//Create the new SoundManager by referencing the location of the wave and sound banks on my computer.
mySoundManager = new SimpleSoundManager.SoundManager(Path.Combine(this.Helper.DirectoryPath,"Wave Bank2.xwb"), Path.Combine(this.Helper.DirectoryPath,"Sound Bank2.xsb"));
StardewModdingAPI.Events.ControlEvents.KeyPressed += ControlEvents_KeyPressed;
}
/// <summary>
/// Example for running code. Can call code whenever such as at a certain time of day, event, action occured, etc.
/// Example for running code. Can call code whenever such as at a certain time of day, event, action occured, etc. This one uses key presses.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>