I’m looking to design a multi purpose RPG engine for myself in XNA, and would like to make it reliant on plugins. For the most part, I understand the whole general concept… and I have a basic IPlugin interface.
However, the problem arises when you realize you need several types of plugins for different systems, and a way to accommodate it all. In fact, you could say I’m trying to make everything modulated. Should I use multiple interfaces, that implement different things? Different host interfaces? Any tips are appreciated. 🙂
Depends how you gonna manage and also look from performance perspective on this. BUt yu can do something like this. Pseudocode:
Very basic idea. But it for sure will become more complicated in real implementation, and can easily become much more complicated after. Keep attention on complexity as it affects performance cause it’s something that easily can be missed following “maximum flexibility” pattern.
Regards.