From c1adf64c1aaecd5a2b9d532d707ef35971f1aa18 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Thu, 7 May 2026 08:50:05 -0400 Subject: begin work on body info window --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 923f357..d7c76bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,7 @@ mod texture; mod solar_system; mod known_stars; mod timeman; +mod ntree; use std::cell::RefCell; use std::thread; @@ -68,7 +69,7 @@ impl GameState Err(e) => panic!("Unable to create sol system : {}", e) }; - sol_system.update(timeman.seconds()); + sol_system.tick(timeman.seconds()); Self { timeman: timeman, @@ -91,7 +92,7 @@ impl GameState { let ticks = self.timeman.update(); ticks.iter().for_each(|time| { - self.solar_systems.iter_mut().for_each(|system| { system.update(*time) }); + self.solar_systems.iter_mut().for_each(|system| { system.tick(*time) }); }); } } -- cgit v1.2.3