Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Modding:Modder Guide/Get Started
(view source)
Revision as of 20:19, 29 December 2021
80 bytes added
,
20:19, 29 December 2021
restore extra namespaces (that's deliberate to reduce confusion when first-time modders try to use common types)
Line 84:
Line 84:
<li>Put this code in the file (replace <samp>YourProjectName</samp> with the name of your project):
<li>Put this code in the file (replace <samp>YourProjectName</samp> with the name of your project):
<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">
+
using System;
+
using Microsoft.Xna.Framework;
using StardewModdingAPI;
using StardewModdingAPI;
using StardewModdingAPI.Events;
using StardewModdingAPI.Events;
+
using StardewModdingAPI.Utilities;
using StardewValley;
using StardewValley;
Pathoschild
translators
8,446
edits