mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add modeltree component
This commit is contained in:
parent
824231bfd6
commit
8e08f79b54
5 changed files with 53 additions and 13 deletions
|
|
@ -137,7 +137,11 @@ public:
|
|||
void renderDebug(LineBatch& batch, const Frustum& frustum);
|
||||
void render(Assets* assets, ModelBatch& batch, const Frustum& frustum);
|
||||
|
||||
entityid_t spawn(EntityDef& def, glm::vec3 pos, dynamic::Value args=dynamic::NONE);
|
||||
entityid_t spawn(
|
||||
Assets* assets,
|
||||
EntityDef& def,
|
||||
glm::vec3 pos,
|
||||
dynamic::Value args=dynamic::NONE);
|
||||
|
||||
std::optional<Entity> get(entityid_t id) {
|
||||
const auto& found = entities.find(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue