Line 112: |
Line 112: |
| </source></li> | | </source></li> |
| </ol> | | </ol> |
| + | |
| + | For those who are curious, here's a breakdown of what this is doing: |
| + | |
| + | <ol> |
| + | <li> |
| + | <code>Mod</code> is how SMAPI determines that this is the file it should initialize the mod with. |
| + | </li> |
| + | <li> |
| + | <code>public override void Entry(IModHelper helper)</code> is overriding the <code>Mod.Entry</code> method. This is what SMAPI will execute one time once the Mod is initialized. |
| + | </li> |
| + | <li> |
| + | <code>InputEvents.ButtonPressed += this.InputEvents_ButtonPressed;</code> is adding <code>this.InputEvents_ButtonPressed</code> as an Event Handler to the SMAPI event "<code>InputEvents.ButtonPressed</code>". You can see more bindable Events on the [[Modding:SMAPI APIs#Events]] page, but this essentially means that anytime the ButtonPressed event fires, <code>this.InputEvents_ButtonPressed</code> will be executed as well. |
| + | </li> |
| + | </ol> |
| + | |
| | | |
| ===Add your manifest=== | | ===Add your manifest=== |