javascript constructor
This commit is contained in:
1 parent
a473b78756
commit
a0a125b61c
2 files changed
+2
-1
No files matched your search
@@ -22,6 +22,7 @@ pub struct Universe {
|
||||
|
||||
#[wasm_bindgen]
|
||||
impl Universe {
|
||||
#[wasm_bindgen(constructor)]
|
||||
pub fn new(width: u32, height: u32) -> Self {
|
||||
Self {
|
||||
sys: (System::new(width, height), System::new(width, height)),
|
||||
|
||||
Reference in new issue
Block a user