ImagoEngine
A C++ 2D game engine built on a sparse-set ECS, with scenes, scheduled systems, events, and action-based input
Loading...
Searching...
No Matches
Nexus.hpp File Reference

Defines the Nexus, the brain of the ECS world. More...

#include <cstdint>
#include <unordered_map>
#include <array>
#include <memory>
#include <utility>
#include <cassert>
#include <cstdlib>
#include <vector>
#include "Imago/ECS/Entity.hpp"
#include "Imago/ECS/EntityManager.hpp"
#include "Imago/ECS/SparseSet.hpp"
#include "Imago/ECS/SparseSetBase.hpp"
#include "Imago/ECS/SurveyHandle.hpp"
#include "Imago/ECS/CommandBuffer.hpp"
#include "Imago/ECS/Bond.hpp"
#include "Imago/ECS/BondHandle.hpp"
Include dependency graph for Nexus.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Imago::ECS::Nexus
 the Nexus is the brain of the ECS world. It is the object the user will use to interact with everything ECS related within systems. More...

Typedefs

using Imago::ECS::ComponentTypeId = uint32_t
 alias for component ids for pool storage

Functions

template<typename T>
ComponentTypeId Imago::ECS::get_component_type_id ()
 returns the ComponenTypeId for component of type T.

Detailed Description

Defines the Nexus, the brain of the ECS world.

Author
Shane David

Function Documentation

◆ get_component_type_id()

template<typename T>
ComponentTypeId Imago::ECS::get_component_type_id ( )

returns the ComponenTypeId for component of type T.

The id is assigned the first time this is called for a given component of type T. Sice the id is static the id is the same for every following call with that component type.

Template Parameters
Thecomponent type.
Returns
The id for that component type.