mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
24 lines
514 B
C++
24 lines
514 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <unordered_map>
|
|
|
|
namespace rigging {
|
|
struct Skeleton;
|
|
class SkeletonConfig;
|
|
}
|
|
|
|
class NamedSkeletons {
|
|
public:
|
|
NamedSkeletons();
|
|
|
|
std::shared_ptr<rigging::Skeleton> createSkeleton(
|
|
const std::string& name,
|
|
std::shared_ptr<const rigging::SkeletonConfig> config
|
|
);
|
|
|
|
rigging::Skeleton* getSkeleton(const std::string& name);
|
|
private:
|
|
std::unordered_map<std::string, std::shared_ptr<rigging::Skeleton>> skeletons;
|
|
};
|