voxelcore/src/content/ContentLoader.h

21 lines
459 B
C++

#ifndef CONTENT_CONTENT_LOADER_H_
#define CONTENT_CONTENT_LOADER_H_
#include <string>
#include <filesystem>
class Block;
class ContentPack;
class ContentBuilder;
class ContentLoader {
const ContentPack* pack;
public:
ContentLoader(ContentPack* pack);
void fixPackIndices();
Block* loadBlock(std::string name, std::filesystem::path file);
void load(ContentBuilder* builder);
};
#endif // CONTENT_CONTENT_LOADER_H_