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
6
namespace
co_ecs
{
7
8
// forward declaration
9
class
archetype;
10
12
class
entity_location
{
13
public
:
14
// Non-owning pointer to an archetype this entity belongs to
15
co_ecs::archetype
*
archetype
{};
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
co_ecs::archetype
Archetype groups entities that share the same types of components. Archetype has a list of fixed size...
Definition
archetype.hpp:15
co_ecs::entity_location
Entity location.
Definition
entity_location.hpp:12
co_ecs::entity_location::chunk_index
std::size_t chunk_index
Definition
entity_location.hpp:18
co_ecs::entity_location::entry_index
std::size_t entry_index
Definition
entity_location.hpp:21
co_ecs
Definition
archetype.hpp:11
include
co_ecs
entity_location.hpp
Generated by
1.10.0