Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Assets/Dojo/Plugins/Linux/libdojo_c.so
Git LFS file not shown
56 changes: 1 addition & 55 deletions Assets/Dojo/Plugins/WebGL/torii_c.jslib
Original file line number Diff line number Diff line change
Expand Up @@ -86,24 +86,6 @@ mergeInto(LibraryManager.library, {
client.__destroy_into_raw();
dynCall_vi(cb, buffer);
},
// Get the value of a model for a specific set of keys
GetModelValue: async function (clientPtr, model, keys, cb) {
let client = wasm_bindgen.ToriiClient.__wrap(clientPtr);
let modelValue = await client.getModelValue(
UTF8ToString(model),
JSON.parse(UTF8ToString(keys))
);

// stringify the model value
let modelValueString = JSON.stringify(modelValue);
// return buffer
let bufferSize = lengthBytesUTF8(modelValueString) + 1;
let buffer = _malloc(bufferSize);
stringToUTF8(modelValueString, buffer, bufferSize);

client.__destroy_into_raw();
dynCall_vi(cb, buffer);
},
OnTokenUpdated: async function (clientPtr, contractAddresses, tokenIds, cb, subCb) {
const client = wasm_bindgen.ToriiClient.__wrap(clientPtr);
const subscription = await client.onTokenUpdated(
Expand Down Expand Up @@ -200,42 +182,6 @@ mergeInto(LibraryManager.library, {
client.__destroy_into_raw();
subscription.__destroy_into_raw();
},
AddModelsToSync: function (clientPtr, models) {
let client = wasm_bindgen.ToriiClient.__wrap(clientPtr);
let modelsString = UTF8ToString(models);
let modelsArray = JSON.parse(modelsString);

client.__destroy_into_raw();
client.addModelsToSync(modelsArray);
},
RemoveModelsToSync: function (clientPtr, models) {
let client = wasm_bindgen.ToriiClient.__wrap(clientPtr);
let modelsString = UTF8ToString(models);
let modelsArray = JSON.parse(modelsString);

client.__destroy_into_raw();
client.removeModelsToSync(modelsArray);
},
OnSyncModelChange: async function (
clientPtr,
models,
callbackObjectName,
callbackMethodName
) {
let client = wasm_bindgen.ToriiClient.__wrap(clientPtr);
let modelsString = UTF8ToString(models);
let modelsArray = JSON.parse(modelsString);

const subscription = await client.onSyncModelChange(modelsArray, () => {
gameInstance.SendMessage(
UTF8ToString(callbackObjectName),
UTF8ToString(callbackMethodName)
);
});
subscription.__destroy_into_raw();

client.__destroy_into_raw();
},
// Encode typed data with the corresponding address and return the message hash
// typedData: JSON string
// address: string
Expand Down Expand Up @@ -268,4 +214,4 @@ mergeInto(LibraryManager.library, {
client.__destroy_into_raw();
dynCall_vi(cb, buffer);
},
});
});
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
4 changes: 2 additions & 2 deletions Assets/Dojo/Plugins/macOS/libdojo_c.bundle
Git LFS file not shown
2 changes: 1 addition & 1 deletion Assets/Dojo/Runtime/Bindings/AssemblyAttributes.gen.cs
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 2025-09-05 15:56:58 GMT+01:00:
// This code was generated by the following tool on 2025-09-22 15:58:21 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/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 2025-09-05 15:56:58 GMT+01:00:
// This code was generated by the following tool on 2025-09-22 15:58:21 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
Loading