Hi all,
I'd like to add modding support to my game via dll (aka it would load the dlls on start). Here's my solution right now:
The user will inherit one, and only one IMod class, where it contains an initialization method, the Mod Loader will find the only class that has inherited IMod, and use Activator.CreateInstance(obj) to create that object and box it to an IMod class, then call the Initialization method. The initialization will then pass classes that are inherited from interfaces to the Mod Loader, and it would run the mods.
Is there a better way to approach it, or is it a good method? Thanks everyone ;)
