Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add _to_string method to extension classes. #129

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/WebRTCLibDataChannel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 4 additions & 0 deletions src/WebRTCLibPeerConnection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down