Loader - 105-Code/SFS-Modloader GitHub Wiki
This is the main class of ModLoader. this class is injected into the game with the Unity Doorstop injector. Also, this class is used to load and store all mods in the MODS folder.
There are not events for this class.
Name | Description |
---|---|
static main |
This save Loader instance. Used this to use public methods on your mod |
static root |
This save the gameObject that implement Loader class |
static modLoderVersion |
Current Modloader version |
static ModsFolder |
Get folder where mods are |
Get mod instance.
SFSMod anotherMod = Loader.main.getMod("ModId");
Get a list of all loaded mods
SFSMod[] modsList = Loader.main.getMods();