mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add modeltree:get_model(index)
This commit is contained in:
parent
28ceffde9e
commit
3fe66e134d
8 changed files with 54 additions and 21 deletions
|
|
@ -28,6 +28,10 @@ void Entity::destroy() {
|
|||
}
|
||||
}
|
||||
|
||||
rigging::Rig& Entity::getModeltree() const {
|
||||
return registry.get<rigging::Rig>(entity);
|
||||
}
|
||||
|
||||
Entities::Entities(Level* level) : level(level) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,8 @@ class LineBatch;
|
|||
class ModelBatch;
|
||||
class Frustum;
|
||||
class Entities;
|
||||
namespace riggining {
|
||||
|
||||
namespace rigging {
|
||||
struct Rig;
|
||||
class RigConfig;
|
||||
}
|
||||
|
|
@ -112,6 +113,8 @@ public:
|
|||
return registry.get<Scripting>(entity);
|
||||
}
|
||||
|
||||
rigging::Rig& getModeltree() const;
|
||||
|
||||
entityid_t getUID() const {
|
||||
return registry.get<EntityId>(entity).uid;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,6 +101,10 @@ namespace rigging {
|
|||
std::string_view src,
|
||||
std::string_view file
|
||||
);
|
||||
|
||||
const std::vector<RigNode*>& getNodes() const {
|
||||
return nodes;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue