mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add block.reload_script, item.reload_script
This commit is contained in:
parent
1bb25e99c6
commit
4400f7fbfb
7 changed files with 77 additions and 19 deletions
|
|
@ -484,6 +484,10 @@ const Content* Engine::getContent() const {
|
|||
return content.get();
|
||||
}
|
||||
|
||||
Content* Engine::getWriteableContent() {
|
||||
return content.get();
|
||||
}
|
||||
|
||||
std::vector<ContentPack> Engine::getAllContentPacks() {
|
||||
auto packs = getContentPacks();
|
||||
packs.insert(packs.begin(), ContentPack::createCore(paths));
|
||||
|
|
|
|||
|
|
@ -151,6 +151,8 @@ public:
|
|||
/// @brief Get current Content instance
|
||||
const Content* getContent() const;
|
||||
|
||||
Content* getWriteableContent();
|
||||
|
||||
/// @brief Get selected content packs
|
||||
std::vector<ContentPack>& getContentPacks();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue