feat: world script reloading

This commit is contained in:
MihailRis
2025-03-14 17:07:10 +03:00
parent bcbfdd50c7
commit f9998f0a93
10 changed files with 56 additions and 13 deletions
+8
View File
@@ -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;
}