(Entity) Changed handle storage from a set to a vector
For performances reasons (creating handles no longer require any memory allocation) Former-commit-id: 76d705997c7fa3be78b063c6d602b09c7c20b2fd
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#define NDK_ENTITY_HPP
|
||||
|
||||
#include <NDK/Prerequesites.hpp>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
namespace Ndk
|
||||
{
|
||||
@@ -48,7 +48,7 @@ namespace Ndk
|
||||
void RegisterHandle(EntityHandle* handle);
|
||||
void UnregisterHandle(EntityHandle* handle);
|
||||
|
||||
std::set<EntityHandle*> m_handles;
|
||||
std::vector<EntityHandle*> m_handles;
|
||||
Id m_id;
|
||||
World* m_world;
|
||||
bool m_valid;
|
||||
|
||||
Reference in New Issue
Block a user