ESL Forum > ESL: Europe ESL Wire & Wire Anti-Cheat Support > ESL Wire Plugins Support & Development > Abstract plugin base class
|Search||Show subscribed forumsJump to first new|
Abstract plugin base class
I was trying to write an abstract base class for my plugins (I plan to do several and wanted to avoid copying/pasting the same code over and over), but I can't get ESL Wire to load the assemblies containing the abstract base and the derived plugin.
The scenario is as follows:
public abstract class PluginBase : Wire.Plugin
//stuff, but no default constructor
public class MyPluginImplementation : PluginBase
//more stuff, with a default constructor
Is it possible that ESL Wire chokes on the abstract type / the missing default constructor and stops iterating through the available types? Or maybe the type checker only checks if the immediate parent class is Wire.Plugin and misses to look further in the type hierarchy?
I am thankful for all hints.
Caught the bug: I was throwing an exception in the constructor which I didn't see, so it had nothing to do with the base class being abstract. I also looked at the disassembly of wire-plugin.exe in Reflector and saw that the plugin assemblies are indeed handled correctly. Sorry about the fuzz --
quickTools - since 2005
[ quote ]