Change functions names in ECS
This commit is contained in:
		
							parent
							
								
									a206123854
								
							
						
					
					
						commit
						3917b4c966
					
				|  | @ -21,7 +21,7 @@ | ||||||
| #include <vector> | #include <vector> | ||||||
| #include "../ChannelManager.hpp" | #include "../ChannelManager.hpp" | ||||||
| 
 | 
 | ||||||
| using std::bitset, std::array, std::vector, std::unique_ptr, std::make_unique, std::move, std::forward, std::runtime_error, std::sort; | using std::bitset, std::array, std::vector, std::unique_ptr, std::make_unique, std::move, std::forward, std::runtime_error, std::sort, std::remove_if; | ||||||
| 
 | 
 | ||||||
| class Component; | class Component; | ||||||
| class Entity; | class Entity; | ||||||
|  | @ -175,7 +175,7 @@ class Manager { | ||||||
| 
 | 
 | ||||||
|     void refresh() |     void refresh() | ||||||
|     { |     { | ||||||
|         m_entities.erase(std::remove_if(m_entities.begin(), m_entities.end(), |         m_entities.erase(remove_if(m_entities.begin(), m_entities.end(), | ||||||
|         [](const unique_ptr<Entity> &mEntity) { |         [](const unique_ptr<Entity> &mEntity) { | ||||||
|             return !mEntity->isActive(); |             return !mEntity->isActive(); | ||||||
|         }), |         }), | ||||||
|  | @ -195,7 +195,7 @@ class Manager { | ||||||
|         return m_entities.size(); |         return m_entities.size(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void erase(std::size_t index) |     void destroy(std::size_t index) | ||||||
|     { |     { | ||||||
|         m_entities.at(index).get()->destroy(); |         m_entities.at(index).get()->destroy(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue