An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
#ifndef GAME_MWWORLD_REGISTEREDCLASS_H
#define GAME_MWWORLD_REGISTEREDCLASS_H
#include "class.hpp"
namespace MWWorld
{
template <class Derived, class Base = Class>
class RegisteredClass : public Base
{
public:
static void registerSelf()
{
static Derived instance;
Base::registerClass(instance);
}
protected:
explicit RegisteredClass(unsigned type)
: Base(type)
{
}
};
}
#endif