21 lines
448 B
C++
21 lines
448 B
C++
#pragma once
|
|
|
|
#include <unordered_map>
|
|
|
|
#include <QObject>
|
|
|
|
#include "xml/tinyxml2.h"
|
|
|
|
class ComponentFactory : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ComponentFactory(QObject* parent = nullptr) : QObject(parent) {}
|
|
virtual ~ComponentFactory() = default;
|
|
|
|
//virtual void Serialize(const tinyxml2::XMLElement* element);
|
|
static class SceneComponent* Create(const QString& name, class SceneComponent* parenet);
|
|
|
|
protected:
|
|
QString name_;
|
|
}; |