Skip to content

File PrefabInstance.hpp

File List > Components > PrefabInstance.hpp

Go to the documentation of this file

#ifndef ENGINE_COMPONENTS_PREFABINSTANCE_HPP_
#define ENGINE_COMPONENTS_PREFABINSTANCE_HPP_

#include <string>
#include <utility>

namespace Engine {
struct PrefabInstance {
    std::string prefabPath;

    static PrefabInstance Create(std::string path = "") {
        PrefabInstance instance;
        instance.prefabPath = std::move(path);
        return instance;
    }
};
} // namespace Engine

#endif // ENGINE_COMPONENTS_PREFABINSTANCE_HPP_