Flecs: include/flecs/addons/cpp/entity_view.hpp File Reference
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.0 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
Classes
entity_view.hpp File Reference

Entity class with only readonly operations. More...

`#include "mixins/json/entity_view.inl"`
`#include "mixins/doc/entity_view.inl"`
`#include "mixins/alerts/entity_view.inl"`
`#include "mixins/enum/entity_view.inl"`
`#include "mixins/event/entity_view.inl"`
Include dependency graph for entity_view.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
struct | flecs::entity_view
| Entity view. More...

## Detailed Description

Entity class with only readonly operations.

This class provides readonly access to entities. Using this class to store entities in components ensures valid handles, as this class will always store the actual world vs. a stage. The constructors of this class will never create a new entity.

To obtain a mutable handle to the entity, use the "mut" function.

Definition in file entity_view.hpp.