更改

跳到导航 跳到搜索
第54行: 第54行:  
==创建一个基础的模组==
 
==创建一个基础的模组==
 
===快速开始===
 
===快速开始===
If you're experienced enough to skip the tutorial, here's a quick summary of this section:
+
如果你有足够的经验来跳过本教程,则此部分的简要概述如下:
 
{{collapse|expand for quick start|content= 
 
{{collapse|expand for quick start|content= 
# Create an empty C# class library project.
+
# 创建一个空的 C #类库 项目
# Target .NET Framework 4.5, 4.5.1, or 4.5.2 for best compatibility.
+
# 目标框架选择 .NET Framework 4.5 或者 4.5.1, 建议使用 4.5.2
# Reference the [https://smapi.io/package/readme <tt>Pathoschild.Stardew.ModBuildConfig</tt> NuGet package] to automatically add the right references depending on the platform the mod is being compiled on.
+
# 参考 [https://smapi.io/package/readme <tt>Pathoschild.Stardew.ModBuildConfig</tt> NuGet package] 根据要在其上编译模组的平台自动添加正确的引用。
# Create a <tt>ModEntry</tt> class which subclasses <tt>StardewModdingAPI.Mod</tt>.
+
# 创建一个 <tt>ModEntry</tt> 类,该类将 <tt>StardewModdingAPI.Mod</tt> 子类化
# Override the <tt>Entry</tt> method, and write your code using the [[#Mod APIs|SMAPI events and APIs]].
+
# 覆写 <tt>Entry</tt> 方法,并使用 [[#Mod APIs|SMAPI events and APIs]] 编写代码
# Create a [[#Add your manifest|<tt>manifest.json</tt> file]] which describes your mod for SMAPI.
+
# 创建一个 [[# 添加你的清单|<tt>manifest.json</tt> 文件]] 来描述了你的 SMAPI 模组
# Create [[#Release your mod|a zip file containing the mod files]] for release.
+
# 创建 [[# 发布你的模组| 一个包含模组文件的zip压缩包]] 来发布
 
}}
 
}}
  
203

个编辑

导航菜单