feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -28,12 +28,9 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef WEBRTC_REGISTER_TYPES_H
|
||||
#define WEBRTC_REGISTER_TYPES_H
|
||||
#pragma once
|
||||
|
||||
#include "modules/register_module_types.h"
|
||||
|
||||
void initialize_webrtc_module(ModuleInitializationLevel p_level);
|
||||
void uninitialize_webrtc_module(ModuleInitializationLevel p_level);
|
||||
|
||||
#endif // WEBRTC_REGISTER_TYPES_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef WEBRTC_DATA_CHANNEL_H
|
||||
#define WEBRTC_DATA_CHANNEL_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/packet_peer.h"
|
||||
|
||||
|
|
@ -79,5 +78,3 @@ public:
|
|||
|
||||
VARIANT_ENUM_CAST(WebRTCDataChannel::WriteMode);
|
||||
VARIANT_ENUM_CAST(WebRTCDataChannel::ChannelState);
|
||||
|
||||
#endif // WEBRTC_DATA_CHANNEL_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef WEBRTC_DATA_CHANNEL_EXTENSION_H
|
||||
#define WEBRTC_DATA_CHANNEL_EXTENSION_H
|
||||
#pragma once
|
||||
|
||||
#include "webrtc_data_channel.h"
|
||||
|
||||
|
|
@ -74,5 +73,3 @@ public:
|
|||
|
||||
WebRTCDataChannelExtension() {}
|
||||
};
|
||||
|
||||
#endif // WEBRTC_DATA_CHANNEL_EXTENSION_H
|
||||
|
|
|
|||
|
|
@ -198,12 +198,14 @@ WebRTCDataChannelJS::WebRTCDataChannelJS(int js_id) {
|
|||
// Parse label
|
||||
char *label = godot_js_rtc_datachannel_label_get(js_id);
|
||||
if (label) {
|
||||
_label.parse_utf8(label);
|
||||
_label.clear();
|
||||
_label.append_utf8(label);
|
||||
free(label);
|
||||
}
|
||||
char *protocol = godot_js_rtc_datachannel_protocol_get(js_id);
|
||||
if (protocol) {
|
||||
_protocol.parse_utf8(protocol);
|
||||
_protocol.clear();
|
||||
_protocol.append_utf8(protocol);
|
||||
free(protocol);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef WEBRTC_DATA_CHANNEL_JS_H
|
||||
#define WEBRTC_DATA_CHANNEL_JS_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WEB_ENABLED
|
||||
|
||||
|
|
@ -90,5 +89,3 @@ public:
|
|||
};
|
||||
|
||||
#endif // WEB_ENABLED
|
||||
|
||||
#endif // WEBRTC_DATA_CHANNEL_JS_H
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ bool WebRTCMultiplayerPeer::is_server() const {
|
|||
}
|
||||
|
||||
void WebRTCMultiplayerPeer::poll() {
|
||||
if (peer_map.size() == 0) {
|
||||
if (peer_map.is_empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef WEBRTC_MULTIPLAYER_PEER_H
|
||||
#define WEBRTC_MULTIPLAYER_PEER_H
|
||||
#pragma once
|
||||
|
||||
#include "webrtc_peer_connection.h"
|
||||
|
||||
|
|
@ -123,5 +122,3 @@ public:
|
|||
|
||||
virtual ConnectionStatus get_connection_status() const override;
|
||||
};
|
||||
|
||||
#endif // WEBRTC_MULTIPLAYER_PEER_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef WEBRTC_PEER_CONNECTION_H
|
||||
#define WEBRTC_PEER_CONNECTION_H
|
||||
#pragma once
|
||||
|
||||
#include "webrtc_data_channel.h"
|
||||
|
||||
|
|
@ -92,5 +91,3 @@ public:
|
|||
VARIANT_ENUM_CAST(WebRTCPeerConnection::ConnectionState);
|
||||
VARIANT_ENUM_CAST(WebRTCPeerConnection::GatheringState);
|
||||
VARIANT_ENUM_CAST(WebRTCPeerConnection::SignalingState);
|
||||
|
||||
#endif // WEBRTC_PEER_CONNECTION_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef WEBRTC_PEER_CONNECTION_EXTENSION_H
|
||||
#define WEBRTC_PEER_CONNECTION_EXTENSION_H
|
||||
#pragma once
|
||||
|
||||
#include "webrtc_peer_connection.h"
|
||||
|
||||
|
|
@ -58,5 +57,3 @@ public:
|
|||
|
||||
WebRTCPeerConnectionExtension() {}
|
||||
};
|
||||
|
||||
#endif // WEBRTC_PEER_CONNECTION_EXTENSION_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef WEBRTC_PEER_CONNECTION_JS_H
|
||||
#define WEBRTC_PEER_CONNECTION_JS_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WEB_ENABLED
|
||||
|
||||
|
|
@ -89,5 +88,3 @@ public:
|
|||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif // WEBRTC_PEER_CONNECTION_JS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue