librarybta.blogg.se

Hollow knight how to install mod api
Hollow knight how to install mod api












Initialize is called when the Api is ready for our mod to start making modifications, this is also the place where preloads are provided (more on that in a bit).GetVersion serves a similar purpose but for the version of our mod.GetName() for example allows us to set our mods name as it will appear in game, in the top-left mods list. new public string GetName() => "My First Mod" The Mod class has a few special methods that if provided by out mod allows us to do a few interesting things.public class MyFirstMod : Mod we define a new public class called MyFirstMod that extends the Mod base class, this is the class that will be loaded by the Modding api, and this is where we will tell the game about our mod.Next, we create our own namespace called MyFirstMod this will contain our mod.The first few lines are using statements, where we tell the C# compiler the namespaces that we are going to be using in our file.

hollow knight how to install mod api

it will however take some common things that you will have to do every time you start a project and do them for you, which is nice.

hollow knight how to install mod api

Strictly speaking, there is no need to use a template to create your mod. Tip: if your IDE supports it, using an extension can simplify or eliminate many of the steps below! The video series is especially beginner friendly, so you may want to try that ! Installing the Mod Template A tour of the C# language Article Series.

hollow knight how to install mod api hollow knight how to install mod api

Note : if you prefer to follow along with a video see the modding tutorial Basics of C#īefore we take a deep dive into writing your first mod, we need to take a look at C#, the programming language that we would be using to create our mods, it would certainly be helpful if you know a little bit about programming already, but if not then you can use the resources in this section to get a basic understanding of programming and C#.














Hollow knight how to install mod api