I making now engine for my game, it is based on component system ( every game object is a set of some components like: render, physics, ai etc ). I want to make my game extensible, i now how to make plugin system with .net but how to make game able to add at runtime new resurces from plugins ( like graphics, sounds, etc ) ? And how plugin that store content can look ? I want to make simple system like Total Annihilation have, to be able to add new units.
You can create as many instances of
For example, you could organise your plugin directory like this:
Presumably your plugin will have some kind of plugin object that you can use reflection to find and instance. Tell it its base path, so then you can have it create a content manager (or something like this - it depends on your implementation). For example:
Once you have something like this working, you could expand it with other clever things. One possible example is to use