Added system name
parent
619b8ae797
commit
5b65d8adc3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue