hk-modding/api

IMod instead of Mod

Ruttie2006 opened this issue · 1 comments

ModLoader.cs has the following:

if (!ty.IsClass || ty.IsAbstract || !ty.IsSubclassOf(typeof(Mod)))

Why does this check for typeof(Mod) instead of seeing if it has the IMod interface?
This way, instead of having custom Mod classes that implement IMod, every custom mod class has to derive from Mod, which is quite limiting imo.

IMod is largely just legacy, we rely on it being Mod in order to add members when wanted as well as for other implementation details.