Testbed: add a constructor that calls a custom closure with bevy’s App
This commit is contained in:
committed by
Sébastien Crozet
parent
0ef55c7df7
commit
22f21c14b8
@@ -18,7 +18,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
||||
* Set up the testbed.
|
||||
*/
|
||||
let bytes = std::fs::read("state.bin").unwrap();
|
||||
let mut state: State = bincode::deserialize(&bytes).unwrap();
|
||||
let state: State = bincode::deserialize(&bytes).unwrap();
|
||||
|
||||
testbed.set_world(
|
||||
state.bodies,
|
||||
|
||||
Reference in New Issue
Block a user