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 /* Import C module */
12 FlecsStatsImport(world);
13
14 world.component<WorldSummary>();
15 world.component<WorldStats>();
16 world.component<PipelineStats>();
17}
18
19}
FLECS_API void FlecsStatsImport(ecs_world_t *world)
Stats module import function.
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