Skip to content

Commit

Permalink
Inline accessor methods
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-i-cecile authored Mar 9, 2022
1 parent 6890468 commit 33ccf7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bevy_ecs/src/system/system_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,11 +1171,13 @@ pub struct SystemChangeTick {

impl SystemChangeTick {
/// Returns the current [`World`] change tick seen by the system.
#[inline]
pub fn change_tick(&self) -> u32 {
self.change_tick
}

/// Returns the [`World`] change tick seen by the system the previous time it ran.
#[inline]
pub fn last_change_tick(&self) -> u32 {
self.last_change_tick
}
Expand Down

0 comments on commit 33ccf7d

Please sign in to comment.