standardise SimpleSoundManager entry class & prevent other mods from accessing its mod helper

This commit is contained in:
Jesse Plamondon-Willard 2017-10-11 16:09:12 -04:00
parent 3e01276c56
commit 16d5461a4e
3 changed files with 15 additions and 22 deletions

View File

@ -1,21 +0,0 @@
using StardewModdingAPI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleSoundManager
{
public class Class1 :Mod
{
public static IModHelper ModHelper;
public override void Entry(IModHelper helper)
{
ModHelper = helper;
}
}
}

View File

@ -34,7 +34,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="SimpleSoundManagerMod.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SoundManager.cs" />
</ItemGroup>

View File

@ -0,0 +1,14 @@
using StardewModdingAPI;
namespace SimpleSoundManager
{
public class SimpleSoundManagerMod : Mod
{
internal static IModHelper ModHelper;
public override void Entry(IModHelper helper)
{
ModHelper = helper;
}
}
}