Skip to content

Commit

Permalink
Merge pull request #49 from dojoengine/prepare-release
Browse files Browse the repository at this point in the history
feat: update dojo.c for new release
  • Loading branch information
Larkooo authored Jun 14, 2024
2 parents 28a840f + a90885f commit feee095
Show file tree
Hide file tree
Showing 27 changed files with 29,620 additions and 27,811 deletions.
Binary file modified Assets/Dojo/Plugins/Linux/libdojo_c.so
Binary file not shown.
4 changes: 2 additions & 2 deletions Assets/Dojo/Plugins/Windows/libdojo_c.dll
Git LFS file not shown
4 changes: 2 additions & 2 deletions Assets/Dojo/Plugins/iOS/libdojo_c.a
Git LFS file not shown
Binary file modified Assets/Dojo/Plugins/macOS/libdojo_c.bundle
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// To disable generating this file set `isEnabledGenerateAssemblyAttributes` to `false` in the config file for generating C# code.
// <auto-generated>
// This code was generated by the following tool on 2024-06-03 10:04:24 GMT-04:00:
// This code was generated by the following tool on 2024-06-14 09:53:45 GMT-04:00:
// https://github.com/bottlenoselabs/c2cs (v0.0.0.0)
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
2 changes: 1 addition & 1 deletion Assets/Dojo/Runtime/bindings/client/Runtime.gen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// To disable generating this file set `isEnabledGeneratingRuntimeCode` to `false` in the config file for generating C# code.

// <auto-generated>
// This code was generated by the following tool on 2024-06-03 10:04:24 GMT-04:00:
// This code was generated by the following tool on 2024-06-14 09:53:45 GMT-04:00:
// https://github.com/bottlenoselabs/c2cs (v0.0.0.0)
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
2 changes: 1 addition & 1 deletion Assets/Dojo/Runtime/bindings/client/dojo.gen.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// <auto-generated>
// This code was generated by the following tool on 2024-06-03 10:04:24 GMT-04:00:
// This code was generated by the following tool on 2024-06-14 09:53:45 GMT-04:00:
// https://github.com/bottlenoselabs/c2cs (v0.0.0.0)
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
2 changes: 1 addition & 1 deletion Assets/WebGLTemplates/Dojo/TemplateData/dojo.js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cargo build --release --target x86_64-unknown-linux-gnu
# Building wasm32 binary
cargo build --release --target wasm32-unknown-unknown
# Building using wasm-pack
bunx wasm-pack build --release --target web
bunx wasm-pack build --release
```

## Running
Expand Down

This file was deleted.

7 changes: 7 additions & 0 deletions Assets/WebGLTemplates/Dojo/TemplateData/dojo.js/dojo_c.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ declare namespace wasm_bindgen {
*/
getEntities(query: Query): Promise<any>;
/**
* @param {number} limit
* @param {number} offset
* @returns {Promise<any>}
*/
getAllEntities(limit: number, offset: number): Promise<any>;
/**
* @param {Query} query
* @returns {Promise<any>}
*/
Expand Down Expand Up @@ -359,6 +365,7 @@ declare interface InitOutput {
readonly byteArraySerialize: (a: number, b: number, c: number) => void;
readonly byteArrayDeserialize: (a: number, b: number, c: number) => void;
readonly client_getEntities: (a: number, b: number) => number;
readonly client_getAllEntities: (a: number, b: number, c: number) => number;
readonly client_getEventMessages: (a: number, b: number) => number;
readonly client_getModelValue: (a: number, b: number, c: number, d: number, e: number) => number;
readonly client_addModelsToSync: (a: number, b: number) => number;
Expand Down

This file was deleted.

63 changes: 36 additions & 27 deletions Assets/WebGLTemplates/Dojo/TemplateData/dojo.js/dojo_c.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ function getArrayU8FromWasm0(ptr, len) {
ptr = ptr >>> 0;
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
}
function __wbg_adapter_274(arg0, arg1, arg2, arg3) {
function __wbg_adapter_275(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__hee2649badc712846(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

Expand Down Expand Up @@ -697,6 +697,15 @@ class Client {
return takeObject(ret);
}
/**
* @param {number} limit
* @param {number} offset
* @returns {Promise<any>}
*/
getAllEntities(limit, offset) {
const ret = wasm.client_getAllEntities(this.__wbg_ptr, limit, offset);
return takeObject(ret);
}
/**
* @param {Query} query
* @returns {Promise<any>}
*/
Expand Down Expand Up @@ -1178,6 +1187,10 @@ function __wbg_get_imports() {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
};
imports.wbg.__wbg_client_new = function(arg0) {
const ret = Client.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_log_8a1f28f53967b0c1 = function(arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
};
Expand All @@ -1189,19 +1202,6 @@ function __wbg_get_imports() {
const ret = Account.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_client_new = function(arg0) {
const ret = Client.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_cb_drop = function(arg0) {
const obj = takeObject(arg0).original;
if (obj.cnt-- == 1) {
obj.a = 0;
return true;
}
const ret = false;
return ret;
};
imports.wbg.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
Expand All @@ -1214,6 +1214,15 @@ function __wbg_get_imports() {
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbindgen_cb_drop = function(arg0) {
const obj = takeObject(arg0).original;
if (obj.cnt-- == 1) {
obj.a = 0;
return true;
}
const ret = false;
return ret;
};
imports.wbg.__wbg_clearTimeout_76877dbc010e786d = function(arg0) {
const ret = clearTimeout(takeObject(arg0));
return addHeapObject(ret);
Expand Down Expand Up @@ -1625,7 +1634,7 @@ function __wbg_get_imports() {
const a = state0.a;
state0.a = 0;
try {
return __wbg_adapter_274(a, state0.b, arg0, arg1);
return __wbg_adapter_275(a, state0.b, arg0, arg1);
} finally {
state0.a = a;
}
Expand Down Expand Up @@ -1712,28 +1721,28 @@ function __wbg_get_imports() {
const ret = wasm.memory;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2640 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 859, __wbg_adapter_30);
imports.wbg.__wbindgen_closure_wrapper2650 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 862, __wbg_adapter_30);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2641 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 859, __wbg_adapter_30);
imports.wbg.__wbindgen_closure_wrapper2651 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 862, __wbg_adapter_30);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper2642 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 859, __wbg_adapter_30);
imports.wbg.__wbindgen_closure_wrapper2652 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 862, __wbg_adapter_30);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper4310 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 1644, __wbg_adapter_37);
imports.wbg.__wbindgen_closure_wrapper4320 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 1647, __wbg_adapter_37);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper5139 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 1946, __wbg_adapter_40);
imports.wbg.__wbindgen_closure_wrapper5150 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 1949, __wbg_adapter_40);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper5849 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 2271, __wbg_adapter_43);
imports.wbg.__wbindgen_closure_wrapper5865 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 2276, __wbg_adapter_43);
return addHeapObject(ret);
};

Expand Down

This file was deleted.

Loading

0 comments on commit feee095

Please sign in to comment.