Modding:SaveGame Data Storage: Difference between revisions

From Vintage Story Wiki
Line 19: Line 19:
== Preparation ==
== Preparation ==


Let's start by creating a new .cs file for this mod, and adding our imports and the the <code>VintageStory.ServerMods</code> namespace. Additionally, we'll declare our class for the mod which will inheret from <code>ModSystem</code> which is the base class for mod systems. You can read more about this [http://apidocs.vintagestory.at/api/Vintagestory.API.Common.ModSystem.html here].
Let's start by creating a new .cs file for this mod, and adding our imports and the <code>VintageStory.ServerMods</code> namespace to wrap our class in. Additionally, we'll declare our class for the mod which will inheret from <code>ModSystem</code> which is the base class for mod systems. You can read more about this [http://apidocs.vintagestory.at/api/Vintagestory.API.Common.ModSystem.html here].


<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">