Added system name

master
Mark 2023-12-25 09:01:59 -08:00
parent 619b8ae797
commit 5b65d8adc3
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@ pub struct StarfieldStar {
}
pub struct System {
pub name: String,
bodies: Vec<Doodad>,
pub starfield: Vec<StarfieldStar>,
}
@ -29,6 +30,7 @@ impl System {
let mut rng = rand::thread_rng();
let sz = STARFIELD_SIZE as f32 / 2.0;
let mut s = System {
name: ct.name.clone(),
bodies: Vec::new(),
starfield: (0..STARFIELD_COUNT)
.map(|_| StarfieldStar {