You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Improve some signal bindings to use specific Object subtypes
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
</methods>
|
||||
<signals>
|
||||
<signal name="data_channel_received">
|
||||
<argument index="0" name="channel" type="Object" />
|
||||
<argument index="0" name="channel" type="WebRTCDataChannel" />
|
||||
<description>
|
||||
Emitted when a new in-band channel is received, i.e. when the channel was created with [code]negotiated: false[/code] (default).
|
||||
The object will be an instance of [WebRTCDataChannel]. You must keep a reference of it or it will be closed automatically. See [method create_data_channel].
|
||||
|
||||
@@ -69,7 +69,7 @@ void WebRTCPeerConnection::_bind_methods() {
|
||||
|
||||
ADD_SIGNAL(MethodInfo("session_description_created", PropertyInfo(Variant::STRING, "type"), PropertyInfo(Variant::STRING, "sdp")));
|
||||
ADD_SIGNAL(MethodInfo("ice_candidate_created", PropertyInfo(Variant::STRING, "media"), PropertyInfo(Variant::INT, "index"), PropertyInfo(Variant::STRING, "name")));
|
||||
ADD_SIGNAL(MethodInfo("data_channel_received", PropertyInfo(Variant::OBJECT, "channel")));
|
||||
ADD_SIGNAL(MethodInfo("data_channel_received", PropertyInfo(Variant::OBJECT, "channel", PROPERTY_HINT_RESOURCE_TYPE, "WebRTCDataChannel")));
|
||||
|
||||
BIND_ENUM_CONSTANT(STATE_NEW);
|
||||
BIND_ENUM_CONSTANT(STATE_CONNECTING);
|
||||
|
||||
Reference in New Issue
Block a user