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
6#pragma once
7
8namespace flecs {
9
10inline 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}
FLECS_API void FlecsStatsImport(ecs_world_t *world)
Stats module import function.
flecs::entity import()
Import a module.
EcsWorldSummary WorldSummary
Component with world summary stats.
Definition decl.hpp:25
EcsPipelineStats PipelineStats
Component that stores system/pipeline statistics.
Definition decl.hpp:22
EcsWorldStats WorldStats
Component that stores world statistics.
Definition decl.hpp:19
flecs::component< T > component(Args &&... args) const
Find or register component.
The world.
Definition world.hpp:137