23#include <utility/demangle.hpp>
25#include "guillaume/ecs/component_registry.hpp"
32 for (
const auto &[typeIndex, storage]: _storages) {
33 if (storage->hasChanged(entityIdentifier)) {
42 for (
auto &[typeIndex, storage]: _storages) {
44 storage->resetChangedFlags();
51 for (
auto &[type, storage]: _storages) {
52 if (storage->has(entityIdentifier)) {
53 storage->remove(entityIdentifier);
void removeEntity(const Entity::Identifier &entityIdentifier)
Delete every component of an entity, of every type.
void resetChangedFlags(void)
Mark every component of every entity as unchanged.
bool hasChanged(const Entity::Identifier &entityIdentifier) const
Tell whether at least one component of an entity was modified since the flags were last reset.
std::size_t Identifier
The key under which an entity's components are stored. Systems and components refer to entities by th...
The entity-component-system core, independent of any widget.