Class ModRegistry
The singleton which handles mod loading. As it stands, this mostly only supports resource swapping and GDScript. You would need to compile with unsafe code enabled to be able to load C# assembly files at runtime. I'm gonna assume that if you're smart enough to make that work, you're smart enough to add that feature too because I could only get part way. See commented out code for my attempts (T.T)
Also an important note, all of the methods in this are called internally. Basically no touchey my stuffey!
public static class ModRegistry
- Inheritance
-
ModRegistry
- Inherited Members
Fields
MODS_PATH
private const string MODS_PATH = "user://Mods"
Field Value
_mods
private static readonly List<IModificationAdapter> _mods
Field Value
Properties
LoadedMods
A publicly available count of how many mods have been loaded. Not currently used internally but if you find a use for it then enjoy!
public static int LoadedMods { get; private set; }
Property Value
Methods
LoadModFromDir(string)
private static void LoadModFromDir(string directory)
Parameters
directory
string
LoadModsRecursively()
public static void LoadModsRecursively()
OnRegisterMods()
public static void OnRegisterMods()
OnUnRegisterMods()
public static void OnUnRegisterMods()