
You are viewing a potentially older version of this package. View Latest Version

A modloader and rudimentary API for Risk Of Rain 2
\Risk of Rain 2\Risk of Rain 2_Data\Managed folder\Risk of Rain 2\Risk of Rain 2_Data\Managed\modsCreating mods for SeikoML is as simple process. First thing first, you'll have to create a C# project in your IDE of choice (We recommend Visual Studio).
After you have your project, make sure you add SeikoML.dll and Assembly-Csharp.dll as your dependencies so you can reference them in your code.
Then you can start creating mods by creating a class that inherits from the ISeikoMod interface:
using System;
using RoR2;
using SeikoML;
namespace MyMod
{
public class MyCoolMod1 : ISeikoML
{
public static void OnStart() //This is inherited from the Interface and is Ran the moment the modloader loads
{
Debug.Log("Hello World!"); //Prints a message in the Game's log file!
}
}
}
This is just the basework, you can head over to the Example mods to see more of how the API works and how you can use it in your own mods!