30 const char* class_name = NULL);
42 #define DECLARES_REGISTER_WORLD_ELEMENT(CLASS_NAME) \ 43 DECLARES_REGISTER_CLASS2( \ 44 CLASS_NAME, WorldElementBase, World*, const rapidxml::xml_node<char>*) 46 #define REGISTER_WORLD_ELEMENT(TEXTUAL_NAME, CLASS_NAME) \ 48 TClassFactory_worldElements, classFactory_worldElements, TEXTUAL_NAME, \
static WorldElementBase * factory(World *parent, const rapidxml::xml_node< char > *xml_node, const char *class_name=NULL)
WorldElementBase(World *parent)
TClassFactory_worldElements classFactory_worldElements
virtual void loadConfigFrom(const rapidxml::xml_node< char > *root)=0
virtual ~WorldElementBase()
ClassFactory< WorldElementBase, World *, const rapidxml::xml_node< char > * > TClassFactory_worldElements