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
Bond.hpp File Reference

Defines the Bond class which will be a permanent group of component pools that are kept sorted so that the entities with every component in the Bond sit at the front. More...

#include <vector>
#include <cstddef>
#include "Imago/ECS/Entity.hpp"
#include "Imago/ECS/SparseSetBase.hpp"
Include dependency graph for Bond.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Imago::ECS::Bond
 A Bond permanently reorders every pool within it so that every Entity that has all of the components in the Bond sits at the front of every pool, in the same index at each. Bonds should be used for iterative systems that will execute every frame in every situation (Rendering, Physics, ect.) becuase the time save from no longer checking whether or not each Entity has every component starts to become significant for these systems. More...

Detailed Description

Defines the Bond class which will be a permanent group of component pools that are kept sorted so that the entities with every component in the Bond sit at the front.

Author
Shane David