summaryrefslogtreecommitdiff
path: root/src/WebRTCLibPeerConnection.hpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-12-19 12:01:54 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-12-19 12:01:54 +0100
commitfb2c9c3687342240dd2f2fb10bfdd93da046cd5a (patch)
tree3042547b1e38b63ff7d3b62c3d361af4c82d0a6a /src/WebRTCLibPeerConnection.hpp
parentcf23e5e74038249e6c050c5610db108efd86ae85 (diff)
downloadfork-godot-webrtc-native-fb2c9c3687342240dd2f2fb10bfdd93da046cd5a.tar.gz
fork-godot-webrtc-native-fb2c9c3687342240dd2f2fb10bfdd93da046cd5a.tar.bz2
fork-godot-webrtc-native-fb2c9c3687342240dd2f2fb10bfdd93da046cd5a.zip
Add _to_string method to extension classes.
So printing them in Godot shows the proper class name instead of "Wrapped".
Diffstat (limited to 'src/WebRTCLibPeerConnection.hpp')
-rw-r--r--src/WebRTCLibPeerConnection.hpp4
1 files changed, 4 insertions, 0 deletions
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();