2013-09-29 07:11:57 +00:00
|
|
|
#ifndef CONTENTLOADER_HPP
|
|
|
|
#define CONTENTLOADER_HPP
|
|
|
|
|
2022-06-08 21:25:50 +00:00
|
|
|
#include <filesystem>
|
2013-09-29 07:11:57 +00:00
|
|
|
|
2021-11-23 14:15:22 +00:00
|
|
|
namespace Loading
|
|
|
|
{
|
|
|
|
class Listener;
|
|
|
|
}
|
2013-09-29 07:11:57 +00:00
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
|
|
|
|
struct ContentLoader
|
|
|
|
{
|
2021-11-23 14:15:22 +00:00
|
|
|
virtual ~ContentLoader() = default;
|
2013-09-29 07:11:57 +00:00
|
|
|
|
2022-06-08 21:25:50 +00:00
|
|
|
virtual void load(const std::filesystem::path& filepath, int& index, Loading::Listener* listener) = 0;
|
2013-09-29 07:11:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace MWWorld */
|
|
|
|
|
|
|
|
#endif /* CONTENTLOADER_HPP */
|