Format
This commit is contained in:
parent
46e66aff12
commit
e99adff481
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#ifndef ZECSY_MAX_COMPONENTS
|
#ifndef ZECSY_MAX_COMPONENTS
|
||||||
#define ZECSY_MAX_COMPONENTS 32
|
#define ZECSY_MAX_COMPONENTS 32
|
||||||
#endif // !ZECSY_MAX_COMPONENTS
|
#endif // !ZECSY_MAX_COMPONENTS
|
||||||
|
|
||||||
namespace zecsy
|
namespace zecsy
|
||||||
|
@ -268,7 +268,7 @@ namespace zecsy
|
||||||
}
|
}
|
||||||
|
|
||||||
archetypes[archetype].emplace(e);
|
archetypes[archetype].emplace(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<Component T>
|
template<Component T>
|
||||||
inline void world::set(entity_id e)
|
inline void world::set(entity_id e)
|
||||||
|
@ -297,7 +297,7 @@ namespace zecsy
|
||||||
|
|
||||||
archetype.reset(id);
|
archetype.reset(id);
|
||||||
archetypes[archetype].emplace(e);
|
archetypes[archetype].emplace(e);
|
||||||
|
|
||||||
auto& pool = pools[id];
|
auto& pool = pools[id];
|
||||||
auto index = pool.entity_to_index[e];
|
auto index = pool.entity_to_index[e];
|
||||||
pool.free_list.push_back(index);
|
pool.free_list.push_back(index);
|
||||||
|
|
Loading…
Reference in a new issue