summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-05-07 08:50:05 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-05-07 08:50:05 -0400
commitc1adf64c1aaecd5a2b9d532d707ef35971f1aa18 (patch)
treefc1050becd0576d75a8d6afb8be09fae80c91541 /src/main.rs
parent9788d9037ad7199701b1710c28559cb96bce5aec (diff)
downloadsystemic4x-c1adf64c1aaecd5a2b9d532d707ef35971f1aa18.tar.gz
systemic4x-c1adf64c1aaecd5a2b9d532d707ef35971f1aa18.tar.bz2
systemic4x-c1adf64c1aaecd5a2b9d532d707ef35971f1aa18.zip
begin work on body info window
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 3 insertions, 2 deletions
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) });
});
}
}