]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
Fix method name to be consistent with others
authorZack Mulgrew <zack@zackthehuman.com>
Thu, 4 Feb 2016 08:04:46 +0000 (00:04 -0800)
committerZack Mulgrew <zack@zackthehuman.com>
Thu, 4 Feb 2016 08:04:46 +0000 (00:04 -0800)
entityx/Entity.h
entityx/help/Pool.h

index 2ef01f77d01fb38cd27028e9719aa3374327f04e..5e9b17d06b10d8b2b4312a0a010170671039e344 100644 (file)
@@ -384,7 +384,7 @@ class EntityManager : entityx::help::NonCopyable {
     for (size_t i = 0; i < component_pools_.size(); i++) {
       BasePool *pool = component_pools_[i];
       if (pool && mask.test(i)) {
-        pool->removeComponent(Entity(this, entity));
+        pool->remove_component(Entity(this, entity));
         pool->destroy(index);
       }
     }
index c4b7d83d1c3c86e95c92de570521763bda208540..b28e4e7560d73824eadb0c00764e791fc3b2e8b6 100644 (file)
@@ -65,7 +65,7 @@ class BasePool {
   }
 
   virtual void destroy(std::size_t n) = 0;
-  virtual void removeComponent(Entity entity) = 0;
+  virtual void remove_component(Entity entity) = 0;
 
  protected:
   std::vector<char *> blocks_;
@@ -94,7 +94,7 @@ class Pool : public BasePool {
     ptr->~T();
   }
 
-  virtual void removeComponent(Entity entity) override {
+  virtual void remove_component(Entity entity) override {
     entity.remove<T>();
   }
 };