Flecs: include/flecs/addons/cpp/mixins/component/impl.hpp Source File
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
impl.hpp
Go to the documentation of this file.
1
5
6#pragma once
7
8namespace flecs {
9
10template <typename T, typename... Args>
11 inline flecs::component<T> world::component(Args &&... args) const {
12 return flecs::component<T>(world_, FLECS_FWD(args)...);
13}
14
15template <typename... Args>
16 inline flecs::untyped_component world::component(Args &&... args) const {
17 return flecs::untyped_component(world_, FLECS_FWD(args)...);
18}
19
20} // namespace flecs
flecs::world::component
flecs::component< T > component(Args &&... args) const
Find or register component.
Definition impl.hpp:11
flecs::component
Component class.
Definition component.hpp:385
flecs::untyped_component
Untyped component class.
Definition component.hpp:296