Flecs: include/flecs/addons/cpp/mixins/stats/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
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}
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:113
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 component.
Definition impl.hpp:11
flecs::world
The world.
Definition world.hpp:137