WorldGen: Difference between revisions

From Vintage Story Wiki
Line 14: Line 14:
== The mod class ==
== The mod class ==
The main class and the starting point of our mod will be VSTreasureChestMod.
The main class and the starting point of our mod will be VSTreasureChestMod.
<syntaxhighlight lang="c#">
using System;
using System.Collections.Generic;
using Vintagestory.API;
using Vintagestory.API.Datastructures;
using Vintagestory.API.Interfaces;
namespace VintageStory.Mods.VSTreasureChest
{
    public class VSTreasureChestMod : ModBase
    {
        private ICoreServerAPI api;
        public override void StartServerSide(ICoreServerAPI api)
        {
            this.api = api;
        }
    }
}
</syntaxhighlight>


== The /treasure command ==
== The /treasure command ==
256

edits