[WebRTC] Static extension registration.
This commit is contained in:
@ -31,8 +31,6 @@
|
||||
#include "webrtc_peer_connection_extension.h"
|
||||
|
||||
void WebRTCPeerConnectionExtension::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("make_default"), &WebRTCPeerConnectionExtension::make_default);
|
||||
|
||||
GDVIRTUAL_BIND(_get_connection_state);
|
||||
GDVIRTUAL_BIND(_initialize, "p_config");
|
||||
GDVIRTUAL_BIND(_create_data_channel, "p_label", "p_config");
|
||||
@ -44,11 +42,6 @@ void WebRTCPeerConnectionExtension::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_close);
|
||||
}
|
||||
|
||||
void WebRTCPeerConnectionExtension::make_default() {
|
||||
ERR_FAIL_COND_MSG(!_get_extension(), vformat("Can't make %s the default without extending it.", get_class()));
|
||||
WebRTCPeerConnection::set_default_extension(get_class());
|
||||
}
|
||||
|
||||
WebRTCPeerConnection::ConnectionState WebRTCPeerConnectionExtension::get_connection_state() const {
|
||||
int state;
|
||||
if (GDVIRTUAL_CALL(_get_connection_state, state)) {
|
||||
|
||||
Reference in New Issue
Block a user