Changes
Jump to navigation
Jump to search
← 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
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version