Modding:Moddable Mod: Difference between revisions

From Vintage Story Wiki
m
Line 39: Line 39:
* Override the <code>StartServerSide</code> method to access the [http://apidocs.vintagestory.at/api/Vintagestory.API.Common.ICoreServerAPI.html <code>ICoreServerAPI</code>].
* Override the <code>StartServerSide</code> method to access the [http://apidocs.vintagestory.at/api/Vintagestory.API.Common.ICoreServerAPI.html <code>ICoreServerAPI</code>].
* Make the <code>TipMod</code> class <code>public</code> so that it's accessible by other mods.
* Make the <code>TipMod</code> class <code>public</code> so that it's accessible by other mods.
- img of folders -


<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">
Line 117: Line 115:
}
}
</syntaxhighlight>
</syntaxhighlight>
Our resulting folder structure looks like this.
[[File:ModdableModFolderStructure.png|none]]
We are now ready to start adding the functionality of our mods, starting with "TipMod", as that will be our
We are now ready to start adding the functionality of our mods, starting with "TipMod", as that will be our
point of interaction.
point of interaction.