With runtime registration so that new IGameStateReaders can be added without requiring the factory to have compile time knowledge of the derived classes.
Todo: The implementation could probably be improved (factory should return instances with std::auto_ptr?). Perhaps libdeng2 could provide the abstract components necessary for building a factory?
libcommon: Added a basic GameStateReaderFactory
With runtime registration so that new IGameStateReaders can be added
without requiring the factory to have compile time knowledge of the
derived classes.
Todo: The implementation could probably be improved (factory should
return instances with std::auto_ptr?). Perhaps libdeng2 could provide
the abstract components necessary for building a factory?