C and JS interface, untested

This commit is contained in:
msqr1
2024-01-15 23:36:20 -08:00
parent db2acc30be
commit ab8d869dd9
22 changed files with 7862 additions and 1 deletions

10
src/spkModel.js Normal file
View File

@@ -0,0 +1,10 @@
class SpkModel extends EventTarget{
constructor(url, storepath, id) {
super()
this.obj = new Module.__SpkModel__(url, storepath, id, __GenericObj__.objects.length)
__GenericObj__.objects.push(this)
}
delete() {
this.obj.delete()
}
}