Flecs
v4.1
A fast entity component system (ECS) for C & C++
Toggle main menu visibility
Loading...
Searching...
No Matches
impl.hpp
Go to the documentation of this file.
1
5
6
#pragma once
7
8
namespace
flecs {
9
10
inline
stats::stats
(
flecs::world
&
world
) {
11
#ifdef FLECS_UNITS
12
world
.
import
<
flecs::units
>();
13
#endif
14
15
// Import C module.
16
FlecsStatsImport
(
world
);
17
18
world
.
component
<
WorldSummary
>();
19
world
.
component
<
WorldStats
>();
20
world
.
component
<
PipelineStats
>();
21
}
22
23
}
FlecsStatsImport
FLECS_API void FlecsStatsImport(ecs_world_t *world)
Stats module import function.
flecs::world::import
flecs::entity import()
Import a module.
Definition
impl.hpp:107
flecs::WorldSummary
EcsWorldSummary WorldSummary
Component with world summary stats.
Definition
decl.hpp:25
flecs::PipelineStats
EcsPipelineStats PipelineStats
Component that stores system/pipeline statistics.
Definition
decl.hpp:22
flecs::WorldStats
EcsWorldStats WorldStats
Component that stores world statistics.
Definition
decl.hpp:19
flecs::world::component
flecs::component< T > component(Args &&... args) const
Find or register a component.
Definition
impl.hpp:11
flecs::stats::stats
stats(flecs::world &world)
Construct the stats module.
Definition
impl.hpp:10
flecs::units
Units module.
Definition
decl.hpp:10
flecs::world
The world.
Definition
world.hpp:246