summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-12-19 19:43:42 +0100
committerGitHub <noreply@github.com>2023-12-19 19:43:42 +0100
commitd768508435cfb0b940486b4fec54339f5d9c096f (patch)
tree3042547b1e38b63ff7d3b62c3d361af4c82d0a6a
parentcf23e5e74038249e6c050c5610db108efd86ae85 (diff)
parentfb2c9c3687342240dd2f2fb10bfdd93da046cd5a (diff)
downloadfork-godot-webrtc-native-d768508435cfb0b940486b4fec54339f5d9c096f.tar.gz
fork-godot-webrtc-native-d768508435cfb0b940486b4fec54339f5d9c096f.tar.bz2
fork-godot-webrtc-native-d768508435cfb0b940486b4fec54339f5d9c096f.zip
Merge pull request #129 from Faless/spike/to_string
Add _to_string method to extension classes.
-rw-r--r--src/WebRTCLibDataChannel.hpp4
-rw-r--r--src/WebRTCLibPeerConnection.hpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/WebRTCLibDataChannel.hpp b/src/WebRTCLibDataChannel.hpp
index 1c69997..3524e02 100644
--- a/src/WebRTCLibDataChannel.hpp
+++ b/src/WebRTCLibDataChannel.hpp
@@ -74,6 +74,10 @@ private:
protected:
static void _bind_methods() {}
+ godot::String _to_string() const {
+ return "WebRTCLibDataChannel";
+ }
+
public:
static WebRTCLibDataChannel *new_data_channel(std::shared_ptr<rtc::DataChannel> p_channel, bool p_negotiated);
diff --git a/src/WebRTCLibPeerConnection.hpp b/src/WebRTCLibPeerConnection.hpp
index 6608735..1bcb29e 100644
--- a/src/WebRTCLibPeerConnection.hpp
+++ b/src/WebRTCLibPeerConnection.hpp
@@ -67,6 +67,10 @@ private:
protected:
static void _bind_methods() {}
+ godot::String _to_string() const {
+ return "WebRTCLibPeerConnection";
+ }
+
public:
static void _register_methods() {}
static void initialize_signaling();