feat: automatically loading models used in skeleton

This commit is contained in:
MihailRis
2024-07-17 12:12:40 +03:00
parent 051dc6e05f
commit 739ef49d8f
11 changed files with 43 additions and 32 deletions
+5 -1
View File
@@ -49,7 +49,7 @@ Content::Content(
Content::~Content() {
}
const rigging::SkeletonConfig* Content::getRig(const std::string& id) const {
const rigging::SkeletonConfig* Content::getSkeleton(const std::string& id) const {
auto found = skeletons.find(id);
if (found == skeletons.end()) {
return nullptr;
@@ -80,3 +80,7 @@ const UptrsMap<std::string, BlockMaterial>& Content::getBlockMaterials() const {
const UptrsMap<std::string, ContentPackRuntime>& Content::getPacks() const {
return packs;
}
const UptrsMap<std::string, rigging::SkeletonConfig>& Content::getSkeletons() const {
return skeletons;
}