Skip to content

Commit

Permalink
Timer addon
Browse files Browse the repository at this point in the history
Introduces the TImer addon / plugin.

Not all tests are ported yet.
  • Loading branch information
Indra-db committed Jul 19, 2024
1 parent 3d41a15 commit aba74f6
Show file tree
Hide file tree
Showing 6 changed files with 496 additions and 99 deletions.
3 changes: 3 additions & 0 deletions flecs_ecs/src/addons/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ pub mod pipeline;

#[cfg(feature = "flecs_stats")]
pub mod stats;

#[cfg(feature = "flecs_timer")]
pub mod timer;
2 changes: 1 addition & 1 deletion flecs_ecs/src/addons/system/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::sys;
/// Systems are a query + function that can be ran manually or by a pipeline.
#[derive(Clone, Copy)]
pub struct System<'a> {
entity: EntityView<'a>,
pub(crate) entity: EntityView<'a>,
}

impl<'a> Deref for System<'a> {
Expand Down
2 changes: 1 addition & 1 deletion flecs_ecs/src/addons/system/system_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub struct SystemBuilder<'a, T>
where
T: QueryTuple,
{
desc: sys::ecs_system_desc_t,
pub(crate) desc: sys::ecs_system_desc_t,
term_builder: TermBuilder,
world: WorldRef<'a>,
is_instanced: bool,
Expand Down
Loading

0 comments on commit aba74f6

Please sign in to comment.