mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
feat: world script reloading
This commit is contained in:
parent
bcbfdd50c7
commit
f9998f0a93
10 changed files with 56 additions and 13 deletions
|
|
@ -79,6 +79,14 @@ const ContentPackRuntime* Content::getPackRuntime(const std::string& id) const {
|
|||
return found->second.get();
|
||||
}
|
||||
|
||||
ContentPackRuntime* Content::getPackRuntime(const std::string& id) {
|
||||
auto found = packs.find(id);
|
||||
if (found == packs.end()) {
|
||||
return nullptr;
|
||||
}
|
||||
return found->second.get();
|
||||
}
|
||||
|
||||
const UptrsMap<std::string, BlockMaterial>& Content::getBlockMaterials() const {
|
||||
return blockMaterials;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue