Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Modding:Common tasks
(view source)
Revision as of 19:17, 14 September 2019
34 bytes removed
,
19:17, 14 September 2019
m
→Tracking changes to a value
:
- reduce the 3 line public/private comment to 1 line to make code more readable.
Line 12:
Line 12:
internal class ModEntry : Mod
internal class ModEntry : Mod
{
{
−
/*******
**
+
/********* Properties *********/
−
** Properties
−
*********/
/// <summary>The player's last stamina value.</summary>
/// <summary>The player's last stamina value.</summary>
private float LastStamina;
private float LastStamina;
−
+
/********* Public methods *********/
−
/*******
**
−
** Public methods
−
*********/
/// <summary>The mod entry point, called after the mod is first loaded.</summary>
/// <summary>The mod entry point, called after the mod is first loaded.</summary>
/// <param name="helper">Provides simplified APIs for writing mods.</param>
/// <param name="helper">Provides simplified APIs for writing mods.</param>
Line 31:
Line 26:
−
/*******
**
+
/********* Private methods *********/
−
** Private methods
−
*********/
/// <summary>The method invoked when the player loads a save.</summary>
/// <summary>The method invoked when the player loads a save.</summary>
/// <param name="sender">The event sender.</param>
/// <param name="sender">The event sender.</param>
Taskmaster
49
edits