You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add proxy_to_pthread option to platform=web
Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
This commit is contained in:
@@ -90,6 +90,7 @@ const GodotRTCDataChannel = {
|
||||
},
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_ready_state_get__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_ready_state_get__sig: 'ii',
|
||||
godot_js_rtc_datachannel_ready_state_get: function (p_id) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -110,6 +111,7 @@ const GodotRTCDataChannel = {
|
||||
}
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_send__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_send__sig: 'iiiii',
|
||||
godot_js_rtc_datachannel_send: function (p_id, p_buffer, p_length, p_raw) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -131,16 +133,19 @@ const GodotRTCDataChannel = {
|
||||
return 0;
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_is_ordered__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_is_ordered__sig: 'ii',
|
||||
godot_js_rtc_datachannel_is_ordered: function (p_id) {
|
||||
return GodotRTCDataChannel.get_prop(p_id, 'ordered', true);
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_id_get__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_id_get__sig: 'ii',
|
||||
godot_js_rtc_datachannel_id_get: function (p_id) {
|
||||
return GodotRTCDataChannel.get_prop(p_id, 'id', 65535);
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_max_packet_lifetime_get__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_max_packet_lifetime_get__sig: 'ii',
|
||||
godot_js_rtc_datachannel_max_packet_lifetime_get: function (p_id) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -156,21 +161,25 @@ const GodotRTCDataChannel = {
|
||||
return 65535;
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_max_retransmits_get__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_max_retransmits_get__sig: 'ii',
|
||||
godot_js_rtc_datachannel_max_retransmits_get: function (p_id) {
|
||||
return GodotRTCDataChannel.get_prop(p_id, 'maxRetransmits', 65535);
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_is_negotiated__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_is_negotiated__sig: 'ii',
|
||||
godot_js_rtc_datachannel_is_negotiated: function (p_id) {
|
||||
return GodotRTCDataChannel.get_prop(p_id, 'negotiated', 65535);
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_get_buffered_amount__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_get_buffered_amount__sig: 'ii',
|
||||
godot_js_rtc_datachannel_get_buffered_amount: function (p_id) {
|
||||
return GodotRTCDataChannel.get_prop(p_id, 'bufferedAmount', 0);
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_label_get__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_label_get__sig: 'ii',
|
||||
godot_js_rtc_datachannel_label_get: function (p_id) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -189,12 +198,14 @@ const GodotRTCDataChannel = {
|
||||
return GodotRuntime.allocString(ref.protocol);
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_destroy__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_destroy__sig: 'vi',
|
||||
godot_js_rtc_datachannel_destroy: function (p_id) {
|
||||
GodotRTCDataChannel.close(p_id);
|
||||
IDHandler.remove(p_id);
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_connect__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_connect__sig: 'viiiiii',
|
||||
godot_js_rtc_datachannel_connect: function (p_id, p_ref, p_on_open, p_on_message, p_on_error, p_on_close) {
|
||||
const onopen = GodotRuntime.get_func(p_on_open).bind(null, p_ref);
|
||||
@@ -204,6 +215,7 @@ const GodotRTCDataChannel = {
|
||||
GodotRTCDataChannel.connect(p_id, onopen, onmessage, onerror, onclose);
|
||||
},
|
||||
|
||||
godot_js_rtc_datachannel_close__proxy: 'sync',
|
||||
godot_js_rtc_datachannel_close__sig: 'vi',
|
||||
godot_js_rtc_datachannel_close: function (p_id) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -356,6 +368,7 @@ const GodotRTCPeerConnection = {
|
||||
},
|
||||
},
|
||||
|
||||
godot_js_rtc_pc_create__proxy: 'sync',
|
||||
godot_js_rtc_pc_create__sig: 'iiiiiiii',
|
||||
godot_js_rtc_pc_create: function (p_config, p_ref, p_on_connection_state_change, p_on_ice_gathering_state_change, p_on_signaling_state_change, p_on_ice_candidate, p_on_datachannel) {
|
||||
const wrap = function (p_func) {
|
||||
@@ -371,6 +384,7 @@ const GodotRTCPeerConnection = {
|
||||
);
|
||||
},
|
||||
|
||||
godot_js_rtc_pc_close__proxy: 'sync',
|
||||
godot_js_rtc_pc_close__sig: 'vi',
|
||||
godot_js_rtc_pc_close: function (p_id) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -380,11 +394,13 @@ const GodotRTCPeerConnection = {
|
||||
ref.close();
|
||||
},
|
||||
|
||||
godot_js_rtc_pc_destroy__proxy: 'sync',
|
||||
godot_js_rtc_pc_destroy__sig: 'vi',
|
||||
godot_js_rtc_pc_destroy: function (p_id) {
|
||||
GodotRTCPeerConnection.destroy(p_id);
|
||||
},
|
||||
|
||||
godot_js_rtc_pc_offer_create__proxy: 'sync',
|
||||
godot_js_rtc_pc_offer_create__sig: 'viiii',
|
||||
godot_js_rtc_pc_offer_create: function (p_id, p_obj, p_on_session, p_on_error) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -400,6 +416,7 @@ const GodotRTCPeerConnection = {
|
||||
});
|
||||
},
|
||||
|
||||
godot_js_rtc_pc_local_description_set__proxy: 'sync',
|
||||
godot_js_rtc_pc_local_description_set__sig: 'viiiii',
|
||||
godot_js_rtc_pc_local_description_set: function (p_id, p_type, p_sdp, p_obj, p_on_error) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -417,6 +434,7 @@ const GodotRTCPeerConnection = {
|
||||
});
|
||||
},
|
||||
|
||||
godot_js_rtc_pc_remote_description_set__proxy: 'sync',
|
||||
godot_js_rtc_pc_remote_description_set__sig: 'viiiiii',
|
||||
godot_js_rtc_pc_remote_description_set: function (p_id, p_type, p_sdp, p_obj, p_session_created, p_on_error) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -442,6 +460,7 @@ const GodotRTCPeerConnection = {
|
||||
});
|
||||
},
|
||||
|
||||
godot_js_rtc_pc_ice_candidate_add__proxy: 'sync',
|
||||
godot_js_rtc_pc_ice_candidate_add__sig: 'viiii',
|
||||
godot_js_rtc_pc_ice_candidate_add: function (p_id, p_mid_name, p_mline_idx, p_sdp) {
|
||||
const ref = IDHandler.get(p_id);
|
||||
@@ -458,6 +477,7 @@ const GodotRTCPeerConnection = {
|
||||
},
|
||||
|
||||
godot_js_rtc_pc_datachannel_create__deps: ['$GodotRTCDataChannel'],
|
||||
godot_js_rtc_pc_datachannel_create__proxy: 'sync',
|
||||
godot_js_rtc_pc_datachannel_create__sig: 'iiii',
|
||||
godot_js_rtc_pc_datachannel_create: function (p_id, p_label, p_config) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user