mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add drop.json
This commit is contained in:
parent
8d41f6af11
commit
20ab48ecab
8 changed files with 28 additions and 13 deletions
|
|
@ -28,6 +28,7 @@ class LineBatch;
|
|||
class ModelBatch;
|
||||
class Frustum;
|
||||
class Rig;
|
||||
struct EntityDef;
|
||||
|
||||
class Entity {
|
||||
entt::registry& registry;
|
||||
|
|
@ -65,7 +66,7 @@ public:
|
|||
void renderDebug(LineBatch& batch);
|
||||
void render(Assets* assets, ModelBatch& batch, Frustum& frustum);
|
||||
|
||||
entityid_t drop(glm::vec3 pos);
|
||||
entityid_t spawn(EntityDef& def, glm::vec3 pos);
|
||||
|
||||
std::optional<Entity> get(entityid_t id) {
|
||||
const auto& found = entities.find(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue