From 38eccf9535184dc43c8872d191053129a82a2315 Mon Sep 17 00:00:00 2001 From: Rich Churcher Date: Fri, 25 Oct 2024 13:39:15 +1300 Subject: [PATCH] elapsed_seconds -> elapsed_secs See: https://github.com/bevyengine/bevy/pull/15962 --- examples/accessing_tiles.rs | 2 +- examples/game_of_life.rs | 2 +- examples/random_map.rs | 2 +- examples/remove_tiles.rs | 2 +- examples/visibility.rs | 2 +- src/render/extract.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/accessing_tiles.rs b/examples/accessing_tiles.rs index 16929c40..261e4d7a 100644 --- a/examples/accessing_tiles.rs +++ b/examples/accessing_tiles.rs @@ -109,7 +109,7 @@ fn update_map( )>, mut tile_query: Query<&mut TileTextureIndex>, ) { - let current_time = time.elapsed_seconds_f64(); + let current_time = time.elapsed_secs_f64(); for (mut current_color, mut last_update, tile_storage, map_size) in tilemap_query.iter_mut() { if current_time - last_update.0 > 0.1 { current_color.0 += 1; diff --git a/examples/game_of_life.rs b/examples/game_of_life.rs index 6b11cacc..f1e5c978 100644 --- a/examples/game_of_life.rs +++ b/examples/game_of_life.rs @@ -58,7 +58,7 @@ fn update( mut tile_storage_query: Query<(&TileStorage, &TilemapSize, &mut LastUpdate)>, tile_query: Query<(Entity, &TilePos, &TileVisible)>, ) { - let current_time = time.elapsed_seconds_f64(); + let current_time = time.elapsed_secs_f64(); let (tile_storage, map_size, mut last_update) = tile_storage_query.single_mut(); if current_time - last_update.0 > 0.1 { for (entity, position, visibility) in tile_query.iter() { diff --git a/examples/random_map.rs b/examples/random_map.rs index fe32b727..49cadc2f 100644 --- a/examples/random_map.rs +++ b/examples/random_map.rs @@ -57,7 +57,7 @@ struct LastUpdate { // In this example it's better not to use the default `MapQuery` SystemParam as // it's faster to do it this way: fn random(time: ResMut