Modding:Moddable Mod: Difference between revisions
From Vintage Story Wiki
m (→Preperation) |
m (→Preperation) |
||
Line 35: | Line 35: | ||
In our .cs files, we do the following: | In our .cs files, we do the following: | ||
* Add the necessary <code>using</code> directives. | * Add the necessary <code>using</code> directives. | ||
* Create a class named after the mod it's contained | * Create a class named after the mod it's contained in - <code>TipMod</code> and <code>SpawnMod</code>. | ||
* Have our classes inherit <code>ModSystem</code> - the base for any VintageStory code mod. | * Have our classes inherit <code>ModSystem</code> - the base for any VintageStory code mod. | ||
* 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>]. |