feat(simulator): ✨ Add WASM module import/export and execution control for simulator API
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
e938e27079
commit
132ee92bcc
1 changed files with 4 additions and 4 deletions
|
|
@ -228,8 +228,8 @@ impl WasmClimatePhysics {
|
|||
|
||||
/// Run one turn of climate simulation.
|
||||
#[wasm_bindgen(js_name = "processStep")]
|
||||
pub fn process_step(&mut self, grid: &mut WasmGrid, turn: u32, seed: u32) {
|
||||
self.inner.process_step(&mut grid.inner, turn, seed as u64);
|
||||
pub fn process_step(&mut self, grid: &mut WasmGrid, turn: u32, seed: u32, dt: f32) {
|
||||
self.inner.process_step(&mut grid.inner, turn, seed as u64, dt);
|
||||
}
|
||||
|
||||
/// Run atmospheric chemistry using the spec stored at construction time.
|
||||
|
|
@ -265,8 +265,8 @@ impl WasmEcologyPhysics {
|
|||
|
||||
/// Run one tick of ecology simulation.
|
||||
#[wasm_bindgen(js_name = "processStep")]
|
||||
pub fn process_step(&mut self, grid: &mut WasmGrid) {
|
||||
self.inner.process_step(&mut grid.inner);
|
||||
pub fn process_step(&mut self, grid: &mut WasmGrid, dt: f32) {
|
||||
self.inner.process_step(&mut grid.inner, dt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue