Level Editor Import Objects (Classes)

Viewed 20

i was working on making my own game tools in c++ to expand my knowledge on problem solving. But i was stuck thinking on the design of my level editor. I want to be able to import any header that by default will be assumed to contain one class and instantiate an object from it. Now i don't know how to allocate those custom classes on the scene as each class is considered different from the others so i can't use a vector to put them all there.

Now i wanted to know whether making a base class like EmptyGameObject and then making each class inherit from it will solve the problem. But then i encountered another problem.

How do we construct a class depending on its name ?

like:

class name : CustomClass, imported from custom_class.h

thanks you for your help in advance.

0 Answers
Related