mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
Base content package + ContentLoader
This commit is contained in:
parent
6708e1ef86
commit
c8a283c645
33 changed files with 318 additions and 112 deletions
19
src/content/ContentLoader.h
Normal file
19
src/content/ContentLoader.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef CONTENT_CONTENT_LOADER_H_
|
||||
#define CONTENT_CONTENT_LOADER_H_
|
||||
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
|
||||
class Block;
|
||||
class ContentBuilder;
|
||||
|
||||
class ContentLoader {
|
||||
std::filesystem::path folder;
|
||||
public:
|
||||
ContentLoader(std::filesystem::path folder);
|
||||
|
||||
Block* loadBlock(std::string name, std::filesystem::path file);
|
||||
void load(ContentBuilder* builder);
|
||||
};
|
||||
|
||||
#endif // CONTENT_CONTENT_LOADER_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue