Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
entity.hpp File Reference

Generational entity handle: an index into the component pools plus a generation. More...

#include <compare>
#include <cstddef>
#include <cstdint>
#include <format>
#include <functional>
#include <string>

Go to the source code of this file.

Classes

class  aegis2d::ecs::Entity
 Handle to an entity: 32 bits made of a 24-bit index and an 8-bit generation. More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::ecs
 Entity-Component-System used by client and server.
 

Functions

std::string aegis2d::ecs::to_string (Entity entity)
 Text form of a handle, for logs: Entity(3, 1) (index, generation) or Entity(null).
 

Detailed Description

Generational entity handle: an index into the component pools plus a generation.