Skip to content

Commit

Permalink
Merge pull request #129 from Faless/spike/to_string
Browse files Browse the repository at this point in the history
Add _to_string method to extension classes.
Faless authored Dec 19, 2023
2 parents cf23e5e + fb2c9c3 commit d768508
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/WebRTCLibDataChannel.hpp
Original file line number Diff line number Diff line change
@@ -74,6 +74,10 @@ class WebRTCLibDataChannel : public godot::WebRTCDataChannelExtension {
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);

4 changes: 4 additions & 0 deletions src/WebRTCLibPeerConnection.hpp
Original file line number Diff line number Diff line change
@@ -67,6 +67,10 @@ class WebRTCLibPeerConnection : public godot::WebRTCPeerConnectionExtension {
protected:
static void _bind_methods() {}

godot::String _to_string() const {
return "WebRTCLibPeerConnection";
}

public:
static void _register_methods() {}
static void initialize_signaling();

0 comments on commit d768508

Please sign in to comment.