standardise SimpleSoundManager entry class & prevent other mods from accessing its mod helper
This commit is contained in:
parent
3e01276c56
commit
16d5461a4e
|
@ -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;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -34,7 +34,7 @@
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Class1.cs" />
|
<Compile Include="SimpleSoundManagerMod.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="SoundManager.cs" />
|
<Compile Include="SoundManager.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
using StardewModdingAPI;
|
||||||
|
|
||||||
|
namespace SimpleSoundManager
|
||||||
|
{
|
||||||
|
public class SimpleSoundManagerMod : Mod
|
||||||
|
{
|
||||||
|
internal static IModHelper ModHelper;
|
||||||
|
|
||||||
|
public override void Entry(IModHelper helper)
|
||||||
|
{
|
||||||
|
ModHelper = helper;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue