diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-29 12:28:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-29 12:28:30 +0200 |
commit | 52355c638b03ff9316ee3f39e32ac968252489d3 (patch) | |
tree | cabf1815270f0b415c3640e680ef40535793dae5 /core/io/multiplayer_api.cpp | |
parent | e222e31fe633f6b4ae0abbc3cb2fb6a80ad2f9cd (diff) | |
parent | 0c4c36d823bb6792917dfac86491f61cec3f9b27 (diff) |
Merge pull request #29380 from bojidar-bg/16086-docs-default-value
Add default values to the editor help, docs, and generated RST
Diffstat (limited to 'core/io/multiplayer_api.cpp')
-rw-r--r-- | core/io/multiplayer_api.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/multiplayer_api.cpp b/core/io/multiplayer_api.cpp index 2779837190..33dc4dbde4 100644 --- a/core/io/multiplayer_api.cpp +++ b/core/io/multiplayer_api.cpp @@ -874,6 +874,7 @@ void MultiplayerAPI::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::BOOL, "allow_object_decoding"), "set_allow_object_decoding", "is_object_decoding_allowed"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "refuse_new_network_connections"), "set_refuse_new_network_connections", "is_refusing_new_network_connections"); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "network_peer", PROPERTY_HINT_RESOURCE_TYPE, "NetworkedMultiplayerPeer", 0), "set_network_peer", "get_network_peer"); + ADD_PROPERTY_DEFAULT("refuse_new_network_connections", false); ADD_SIGNAL(MethodInfo("network_peer_connected", PropertyInfo(Variant::INT, "id"))); ADD_SIGNAL(MethodInfo("network_peer_disconnected", PropertyInfo(Variant::INT, "id"))); |