Made Simulation struct
This commit is contained in:
@@ -6,4 +6,4 @@ edition = "2018"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
hypoloop = "0.1.1"
|
||||
hypoloop = {version = "0.1.1", path = "D:/Code/hypoloop"}
|
||||
@@ -1,3 +1,9 @@
|
||||
use hypoloop::Simulation;
|
||||
|
||||
fn main() {
|
||||
hypoloop::run_simulation();
|
||||
// create sim
|
||||
let mut sim = Simulation::new();
|
||||
|
||||
// run sim
|
||||
sim.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user