Skip to content

File PrefabSpawner.hpp

File List > Engine > include > Resources > PrefabSpawner.hpp

Go to the documentation of this file

#ifndef ENGINE_RESOURCES_PREFABSPAWNER_HPP_
#define ENGINE_RESOURCES_PREFABSPAWNER_HPP_

#include "ECS/Entity.hpp"
#include "ECS/Registry.hpp"
#include <functional>
#include <string>

namespace Engine {

struct PrefabSpawner {
    std::function<Entity(Registry&, const std::string&)> Spawn;
};

} // namespace Engine

#endif // ENGINE_RESOURCES_PREFABSPAWNER_HPP_