Loader - 105-Code/SFS-Modloader GitHub Wiki

Loader

Description

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.

Events

There are not events for this class.

Properties

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

Public Methods

SFSMod getMod( string modId);

Get mod instance.

  SFSMod anotherMod = Loader.main.getMod("ModId");

SFSMod[] getMods();

Get a list of all loaded mods

  SFSMod[] modsList = Loader.main.getMods();

⚠️ **GitHub.com Fallback** ⚠️