feat(api-wasm): ✨ Implement Default trait for WasmEcologyPhysics to enable default construction in WASM API contexts
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
2e799a27c8
commit
3d08fea8ec
1 changed files with 6 additions and 0 deletions
|
|
@ -254,6 +254,12 @@ pub struct WasmEcologyPhysics {
|
|||
inner: EcologyPhysics,
|
||||
}
|
||||
|
||||
impl Default for WasmEcologyPhysics {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[wasm_bindgen]
|
||||
impl WasmEcologyPhysics {
|
||||
#[wasm_bindgen(constructor)]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue