Added system name
parent
619b8ae797
commit
5b65d8adc3
|
@ -20,6 +20,7 @@ pub struct StarfieldStar {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct System {
|
pub struct System {
|
||||||
|
pub name: String,
|
||||||
bodies: Vec<Doodad>,
|
bodies: Vec<Doodad>,
|
||||||
pub starfield: Vec<StarfieldStar>,
|
pub starfield: Vec<StarfieldStar>,
|
||||||
}
|
}
|
||||||
|
@ -29,6 +30,7 @@ impl System {
|
||||||
let mut rng = rand::thread_rng();
|
let mut rng = rand::thread_rng();
|
||||||
let sz = STARFIELD_SIZE as f32 / 2.0;
|
let sz = STARFIELD_SIZE as f32 / 2.0;
|
||||||
let mut s = System {
|
let mut s = System {
|
||||||
|
name: ct.name.clone(),
|
||||||
bodies: Vec::new(),
|
bodies: Vec::new(),
|
||||||
starfield: (0..STARFIELD_COUNT)
|
starfield: (0..STARFIELD_COUNT)
|
||||||
.map(|_| StarfieldStar {
|
.map(|_| StarfieldStar {
|
||||||
|
|
Loading…
Reference in New Issue