Flecs: include/flecs/addons/cpp/mixins/pipeline/builder.hpp Source File
Description: A fast entity component system (ECS) for C & C++

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

Loading...
Searching...
No Matches
builder.hpp
Go to the documentation of this file.
1
5
6#pragma once
7
8#include "../../utils/builder.hpp"
9#include "builder_i.hpp"
10
11namespace flecs {
12namespace _ {
13 template <typename ... Components>
14 using pipeline_builder_base = builder<
15 pipeline, ecs_pipeline_desc_t, pipeline_builder<Components...>,
16 pipeline_builder_i, Components ...>;
17}
18
23template <typename ... Components>
24 struct pipeline_builder final : _::pipeline_builder_base<Components...> {
25 pipeline_builder(flecs::world_t* world, flecs::entity_t id = 0)
26 : _::pipeline_builder_base<Components...>(world)
27 {
28 _::sig<Components...>(world).populate(this);
29 this->desc_.entity = id;
30 }
31};
32
33}
ecs_pipeline_desc_t
struct ecs_pipeline_desc_t ecs_pipeline_desc_t
Pipeline descriptor, used with ecs_pipeline_init().
flecs::_
Int to enum.
Definition component.hpp:18
builder_i.hpp
Pipeline builder interface.
flecs::_::builder
Definition builder.hpp:19
flecs::_::sig
Definition signature.hpp:38
flecs::id
Class that wraps around a flecs::id_t.
Definition decl.hpp:27
flecs::world
The world.
Definition world.hpp:158
flecs::world::pipeline
flecs::pipeline_builder pipeline() const
Create a new pipeline.
builder.hpp
Builder base class.