change: skeletons are assets now, not content units

This commit is contained in:
MihailRis 2026-01-16 00:34:20 +03:00
parent 587c140a6b
commit 42c4716be2
17 changed files with 144 additions and 120 deletions

View file

@ -1,17 +1,11 @@
#include "ContentBuilder.hpp"
#include "objects/rigging.hpp"
ContentBuilder::~ContentBuilder() = default;
void ContentBuilder::add(std::unique_ptr<ContentPackRuntime> pack) {
packs[pack->getId()] = std::move(pack);
}
void ContentBuilder::add(std::unique_ptr<rigging::SkeletonConfig> skeleton) {
skeletons[skeleton->getName()] = std::move(skeleton);
}
BlockMaterial& ContentBuilder::createBlockMaterial(const std::string& id) {
blockMaterials[id] = std::make_unique<BlockMaterial>();
auto& material = *blockMaterials[id];
@ -98,7 +92,6 @@ std::unique_ptr<Content> ContentBuilder::build() {
generators.build(),
std::move(packs),
std::move(blockMaterials),
std::move(skeletons),
std::move(resourceIndices),
std::move(defaults),
std::move(tags.map)