add drop.json

This commit is contained in:
MihailRis
2024-06-27 03:09:16 +03:00
parent 8d41f6af11
commit 20ab48ecab
8 changed files with 28 additions and 13 deletions
+2 -1
View File
@@ -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);