box collider

This commit is contained in:
2026-04-13 14:03:59 +02:00
parent 0f776347f4
commit dc55af5323
8 changed files with 67 additions and 5 deletions

View File

@@ -26,8 +26,8 @@ namespace Game::State {
// Update entity at index, by REFERENCE.
Object::Entity* getAtIndex(size_t at);
// Add an entity to the gamestate.
void addEntity(std::unique_ptr<Object::Entity> entity);
// Add an entity to the gamestate; Returns a temporary pointer to the entity added. Note that the validity of this pointer cannot be guaranteed after the first call.
Object::Entity* addEntity(std::unique_ptr<Object::Entity> entity);
bool removeEntity(const std::string& name);
private: