(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:
Lynix
2015-02-19 23:35:15 +01:00
parent 86fbb310c3
commit 924d10e61c
2 changed files with 12 additions and 4 deletions

View File

@@ -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;