diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-01 17:00:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-01 17:00:40 +0200 |
commit | e3bd84fa571661d76fc8458d65bb053988e934a6 (patch) | |
tree | cbf6ead84d9e62d331f5399e6407f9e6777425a3 /core/io/multiplayer_api.h | |
parent | e91844e8dca5d03eabd33e867fdbceb18db60cff (diff) | |
parent | 393e62b98a5a37ccdd7d860571e2f8cc7b970fe4 (diff) | |
download | redot-engine-e3bd84fa571661d76fc8458d65bb053988e934a6.tar.gz |
Merge pull request #27485 from Faless/io/encode_decode_safety_pr
Safer encode/decode variant.
Diffstat (limited to 'core/io/multiplayer_api.h')
-rw-r--r-- | core/io/multiplayer_api.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/io/multiplayer_api.h b/core/io/multiplayer_api.h index a9cf77aaba..779dd043bd 100644 --- a/core/io/multiplayer_api.h +++ b/core/io/multiplayer_api.h @@ -63,6 +63,7 @@ private: int last_send_cache_id; Vector<uint8_t> packet_cache; Node *root_node; + bool allow_object_decoding; protected: static void _bind_methods(); @@ -126,6 +127,9 @@ public: void set_refuse_new_network_connections(bool p_refuse); bool is_refusing_new_network_connections() const; + void set_allow_object_decoding(bool p_enable); + bool is_object_decoding_allowed() const; + MultiplayerAPI(); ~MultiplayerAPI(); }; |