mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
37 lines
756 B
C++
37 lines
756 B
C++
#ifndef CONTENTLOADER_HPP
|
|
#define CONTENTLOADER_HPP
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
#include <MyGUI_TextIterator.h>
|
|
|
|
#include <components/debug/debuglog.hpp>
|
|
#include "components/loadinglistener/loadinglistener.hpp"
|
|
|
|
namespace MWWorld
|
|
{
|
|
|
|
struct ContentLoader
|
|
{
|
|
ContentLoader(Loading::Listener& listener)
|
|
: mListener(listener)
|
|
{
|
|
}
|
|
|
|
virtual ~ContentLoader()
|
|
{
|
|
}
|
|
|
|
virtual void load(const boost::filesystem::path& filepath, int& index)
|
|
{
|
|
Log(Debug::Info) << "Loading content file " << filepath.string();
|
|
mListener.setLabel(MyGUI::TextIterator::toTagsString(filepath.string()));
|
|
}
|
|
|
|
protected:
|
|
Loading::Listener& mListener;
|
|
};
|
|
|
|
} /* namespace MWWorld */
|
|
|
|
#endif /* CONTENTLOADER_HPP */
|