co_ecs 0.9.0
Cobalt ECS
Loading...
Searching...
No Matches
entity_location.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5
6namespace co_ecs {
7
8// forward declaration
9class archetype;
10
13public:
14 // Non-owning pointer to an archetype this entity belongs to
16
17 // Chunk index
18 std::size_t chunk_index{};
19
20 // Entry index in the chunk
21 std::size_t entry_index{};
22};
23
24} // namespace co_ecs
Archetype groups entities that share the same types of components. Archetype has a list of fixed size...
Definition archetype.hpp:15
Entity location.
Definition entity_location.hpp:12
std::size_t chunk_index
Definition entity_location.hpp:18
std::size_t entry_index
Definition entity_location.hpp:21
Definition archetype.hpp:11