mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
Generated items
This commit is contained in:
parent
e4f7b6d97c
commit
dd5cd55aeb
5 changed files with 75 additions and 28 deletions
|
|
@ -16,8 +16,8 @@ namespace json {
|
|||
class ContentLoader {
|
||||
const ContentPack* pack;
|
||||
|
||||
Block* loadBlock(std::string name);
|
||||
ItemDef* loadItem(std::string name);
|
||||
void loadBlock(Block* def, std::string full, std::string name);
|
||||
void loadItem(ItemDef* def, std::string full, std::string name);
|
||||
public:
|
||||
ContentLoader(ContentPack* pack);
|
||||
|
||||
|
|
@ -25,8 +25,8 @@ public:
|
|||
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 loadBlock(Block* def, std::string name, std::filesystem::path file);
|
||||
void loadItem(ItemDef* def, std::string name, std::filesystem::path file);
|
||||
void load(ContentBuilder* builder);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue