Added sample project files to make it easier for people to get started.

This commit is contained in:
2021-12-06 15:34:28 +09:00
parent 036de2d8d0
commit 2785a1372e
3 changed files with 54 additions and 0 deletions

20
src/ModEntry.cs Normal file
View File

@@ -0,0 +1,20 @@
using StardewModdingAPI;
namespace jibsaramnim.sdv.mods.SampleProject
{
/// <summary>The mod entry point.</summary>
internal class ModEntry : Mod
{
/*********
** Public methods
*********/
/// <summary>The mod entry point, called after the mod is first loaded.</summary>
/// <param name="helper">Provides simplified APIs for writing mods.</param>
public override void Entry(IModHelper helper)
{
this.Monitor.Log("Hello, World! :-)");
}
}
}

24
src/SampleMod.csproj Normal file
View File

@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>SampleMod</AssemblyName>
<RootNamespace>jibsaramnim.sdv.mods.SampleMod</RootNamespace>
<TargetFramework>net5.0</TargetFramework>
<Version>1.0.0</Version>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<EnableHarmony>false</EnableHarmony>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pathoschild.Stardew.ModBuildConfig" Version="4.0.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="MonoGame.Framework" HintPath="$(GamePath)\MonoGame.Framework.dll" Private="False" />
<Reference Include="Stardew Valley" HintPath="$(GamePath)\Stardew Valley.dll" Private="False" />
<Reference Include="StardewValley.GameData" HintPath="$(GamePath)\StardewValley.GameData.dll" Private="False" />
</ItemGroup>
<ItemGroup>
<None Update="manifest.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>

10
src/manifest.json Normal file
View File

@@ -0,0 +1,10 @@
{
"Name": "SampleMod",
"Author": "jibsaramnim",
"Version": "1.0.0",
"MinimumApiVersion": "3.0.0",
"Description": "A sample mod project to get you started. Enjoy! :-)",
"UniqueID": "jibsaramnim.sdv.mods.SampleMod",
"EntryDll": "SampleMod.dll",
"UpdateKeys": []
}