mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
Items intruduced (WIP)
This commit is contained in:
parent
4f6ba8cca6
commit
4a57e71e81
12 changed files with 269 additions and 58 deletions
|
|
@ -5,16 +5,28 @@
|
|||
#include <filesystem>
|
||||
|
||||
class Block;
|
||||
class ItemDef;
|
||||
class ContentPack;
|
||||
class ContentBuilder;
|
||||
|
||||
namespace json {
|
||||
class JObject;
|
||||
}
|
||||
|
||||
class ContentLoader {
|
||||
const ContentPack* pack;
|
||||
|
||||
Block* loadBlock(std::string name);
|
||||
ItemDef* loadItem(std::string name);
|
||||
public:
|
||||
ContentLoader(ContentPack* pack);
|
||||
|
||||
bool fixPackIndices(std::filesystem::path folder,
|
||||
json::JObject* indicesRoot,
|
||||
std::string contentSection);
|
||||
void fixPackIndices();
|
||||
Block* loadBlock(std::string name, std::filesystem::path file);
|
||||
ItemDef* loadItem(std::string name, std::filesystem::path file);
|
||||
void load(ContentBuilder* builder);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue