diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-02-20 14:46:39 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-02-20 14:46:39 +0100 |
commit | 522bddf63d83e51b35172afa3400b4aaade9b112 (patch) | |
tree | 1c877ee786e32852da92f32c6650e3f32852b89c /modules/multiplayer/multiplayer_synchronizer.cpp | |
parent | 6f64349bfe42b795a6c50e9c2093d38e7a992e7a (diff) | |
download | redot-engine-522bddf63d83e51b35172afa3400b4aaade9b112.tar.gz |
[MP] Add a "synchronized" signal to MultiplayerSynchronized.
Emitted upon receiving a valid sync packet after setting the variables
state.
Diffstat (limited to 'modules/multiplayer/multiplayer_synchronizer.cpp')
-rw-r--r-- | modules/multiplayer/multiplayer_synchronizer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/multiplayer/multiplayer_synchronizer.cpp b/modules/multiplayer/multiplayer_synchronizer.cpp index 10714db6df..458b6a664a 100644 --- a/modules/multiplayer/multiplayer_synchronizer.cpp +++ b/modules/multiplayer/multiplayer_synchronizer.cpp @@ -268,6 +268,7 @@ void MultiplayerSynchronizer::_bind_methods() { BIND_ENUM_CONSTANT(VISIBILITY_PROCESS_PHYSICS); BIND_ENUM_CONSTANT(VISIBILITY_PROCESS_NONE); + ADD_SIGNAL(MethodInfo("synchronized")); ADD_SIGNAL(MethodInfo("visibility_changed", PropertyInfo(Variant::INT, "for_peer"))); } |