Simple metadata crawler for your game.
Container currently holds assemblies and allows easy access to all loaded types.
When you register your indexers with the Crawler
(or whatever you used to implemented ICrawlMetadata
), it will be notified when all types are being processed.
You can implement your own metadata indexer, using the IIndexMetadata
interface.
Once your indexer has been added to the crawler, it will be invoked during type processing.
private ICrawlMetadata _crawler;
public void Init()
{
IMetadataContainer container = new MetadataContainer();
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
container.Add(assemblies);
_crawler = new Crawler(container);
var indexer = new YourIndexer();
_crawler.AddIndexer(indexer);
_crawler.Process(); // this is what calls your indexers
}