Changes

→‎Custom machines: update for build 24048 (changed method reference format)
Line 952: Line 952:  
| ''(Optional, specialized)'' A C# method which decides which item to produce. If set, the <samp>ItemId</samp> field is optional and ignored.
 
| ''(Optional, specialized)'' A C# method which decides which item to produce. If set, the <samp>ItemId</samp> field is optional and ignored.
   −
This must be specified in the form <samp>{{t|full type name}}.{{t|method name}}</samp> (like <samp>StardewValley.Object.OutputSolarPanel</samp>). The method must be static and match the game's <samp>MachineOutputDelegate</samp> method signature:
+
This must be specified in the form <samp>{{t|full type name}}: {{t|method name}}</samp> (like <samp>StardewValley.Object, Stardew Valley: OutputSolarPanel</samp>). The method must be static and match the game's <samp>MachineOutputDelegate</samp> method signature:
 
<syntaxhighlight lang="c#">
 
<syntaxhighlight lang="c#">
 
/// <summary>Get the output item to produce.</summary>
 
/// <summary>Get the output item to produce.</summary>
Line 972: Line 972:  
<syntaxhighlight lang="js">
 
<syntaxhighlight lang="js">
 
"OutputItem": {
 
"OutputItem": {
     "OutputMethod": "StardewValley.Objects.Cask.OutputCask",
+
     "OutputMethod": "StardewValley.Objects.Cask, Stardew Valley: OutputCask",
 
     "CustomData": {
 
     "CustomData": {
 
         "AgingMultiplier": 4
 
         "AgingMultiplier": 4
Line 1,192: Line 1,192:  
| ''(Optional)'' A C# method invoked when the player interacts with the machine when it doesn't have output ready to harvest.
 
| ''(Optional)'' A C# method invoked when the player interacts with the machine when it doesn't have output ready to harvest.
   −
This must be specified in the form <samp>{{t|full type name}}.{{t|method name}}</samp> (like <samp>StardewValley.Object.SomeInteractMethod</samp>). The method must be static and match the game's <samp>MachineInteractDelegate</samp> method signature:
+
This must be specified in the form <samp>{{t|full type name}}: {{t|method name}}</samp> (like <samp>StardewValley.Object, Stardew Valley: SomeInteractMethod</samp>). The method must be static and match the game's <samp>MachineInteractDelegate</samp> method signature:
 
<syntaxhighlight lang="c#">
 
<syntaxhighlight lang="c#">
 
/// <summary>The method signature for a custom <see cref="MachineData.InteractMethod"/> method.</summary>
 
/// <summary>The method signature for a custom <see cref="MachineData.InteractMethod"/> method.</summary>
translators
8,445

edits