flecs_ecs 0.2.0

Rust API for the C/CPP flecs ECS library <https://github.com/SanderMertens/flecs>
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{addons::metrics::MetricBuilder, core::World};

impl World {
    /// Creates a new [`MetricBuilder`] instance.
    ///
    /// # See also
    ///
    /// * [`UntypedComponent::metric`](crate::core::UntypedComponent::metric)
    pub fn metric(&self, entity: impl crate::core::IntoEntity) -> MetricBuilder<'_> {
        MetricBuilder::new(self, entity.into_entity(self))
    }
}