Alterações

m
Linha 133: Linha 133:  
# <code>helper.Events.Input.ButtonPressed += this.OnButtonPressed;</code> adds an 'event handler' (''i.e.,'' a method to call) when the button-pressed event happens. In other words, when a button is pressed (the <samp>helper.Events.Input.ButtonPressed</samp> event), SMAPI will call your <samp>this.OnButtonPressed</samp> method. See [[Modding:Modder Guide/APIs/Events|events in the SMAPI reference]] for more info.
 
# <code>helper.Events.Input.ButtonPressed += this.OnButtonPressed;</code> adds an 'event handler' (''i.e.,'' a method to call) when the button-pressed event happens. In other words, when a button is pressed (the <samp>helper.Events.Input.ButtonPressed</samp> event), SMAPI will call your <samp>this.OnButtonPressed</samp> method. See [[Modding:Modder Guide/APIs/Events|events in the SMAPI reference]] for more info.
   −
===Adicione seu manifest===
+
===Adicionando seu manifest===
The mod manifest tells SMAPI about your mod.
+
O manifest conta ao SMAPI sobre seu mod.
    
<ol>
 
<ol>
<li>Add a file named <samp>manifest.json</samp> to your project.</li>
+
<li>Adicione um arquivo chamado <samp>manifest.json</samp> ao seu projeto.</li>
<li>Paste this code into the file (replacing the <samp>&lt;...&gt;</samp> placeholders):
+
<li>Cole esse código dentro do arquivo (substituindo os <samp>&lt;...&gt;</samp> pelas informações):
 
<syntaxhighlight lang="json">
 
<syntaxhighlight lang="json">
 
{
 
{
   "Name": "<your project name>",
+
   "Name": "<nome do seu projeto>",
   "Author": "<your name>",
+
   "Author": "<seu nome>",
 
   "Version": "1.0.0",
 
   "Version": "1.0.0",
   "Description": "<One or two sentences about the mod>",
+
   "Description": "<Uma ou duas frases sobre seu mod>",
   "UniqueID": "<your name>.<your project name>",
+
   "UniqueID": "<seu nome>.<nome do seu projeto>",
   "EntryDll": "<your project name>.dll",
+
   "EntryDll": "<nome do seu projeto>.dll",
 
   "MinimumApiVersion": "2.9",
 
   "MinimumApiVersion": "2.9",
 
   "UpdateKeys": []
 
   "UpdateKeys": []
37

edições