IMod instead of Mod
Ruttie2006 opened this issue · 1 comments
Ruttie2006 commented
ModLoader.cs has the following:
api/Assembly-CSharp/ModLoader.cs
Line 169 in 21ba19b
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.fifty-six commented
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.