Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
builder.hpp
Go to the documentation of this file.
1
6#pragma once
7
9#include "builder_i.hpp"
10
11namespace flecs {
12namespace _ {
13 template <typename ... Components>
14 using observer_builder_base = node_builder<
15 observer, ecs_observer_desc_t, observer_builder<Components...>,
16 observer_builder_i, Components ...>;
17}
18
23template <typename ... Components>
24struct observer_builder final : _::observer_builder_base<Components...> {
25 observer_builder(flecs::world_t* world, const char *name = nullptr)
26 : _::observer_builder_base<Components...>(world, name)
27 {
28 _::sig<Components...>(world).populate(this);
29 }
30};
31
32}
struct ecs_observer_desc_t ecs_observer_desc_t
Used with ecs_observer_init().
Base builder class for node objects, like systems, observers.
Observer builder interface.
Observer builder.
Definition builder.hpp:24
The world.
Definition world.hpp:137