mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
[MP] Add a "synchronized" signal to MultiplayerSynchronized.
Emitted upon receiving a valid sync packet after setting the variables state.
This commit is contained in:
parent
6f64349bfe
commit
522bddf63d
3 changed files with 7 additions and 0 deletions
|
@ -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")));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue