64b9f30b92
This commit completely removes the RPC_MODE_MASTER ("master" keyword), and renames the RPC_MODE_PUPPET to RPC_MODE_AUTHORITY ("auth" keyword). This commit also renames the "Node.[get|set]_network_master" methods to "Node.[get|set]_network_authority". This commit also renames the RPC_MODE_REMOTE constant to RPC_MODE_ANY. RPC_MODE_MASTER in Godot 3.x meant that a given RPC would be callable by any puppet peer on the master, while RPC_MODE_PUPPET meant that it would be callable by the master on any puppet. Beside proving to be very confusing to the user (referring to where it could be called instead of who can call it) the RPC_MODE_MASTER is quite useless. It is almost the same as RPC_MODE_REMOTE (anyone can call) with the exception that the network master cannot. While this could be useful to check in some case, in such a function you would anyway need to check in code who is the caller via get_rpc_sender_id(), so adding the check there for those rare cases does not warrants a dedicated mode. |
||
---|---|---|
.. | ||
build_scripts | ||
doc_classes | ||
editor | ||
glue | ||
icons | ||
mono_gd | ||
utils | ||
.editorconfig | ||
.gitignore | ||
__init__.py | ||
class_db_api_json.cpp | ||
class_db_api_json.h | ||
config.py | ||
csharp_script.cpp | ||
csharp_script.h | ||
Directory.Build.props | ||
godotsharp_defs.h | ||
godotsharp_dirs.cpp | ||
godotsharp_dirs.h | ||
managed_callable.cpp | ||
managed_callable.h | ||
mono_gc_handle.cpp | ||
mono_gc_handle.h | ||
register_types.cpp | ||
register_types.h | ||
SCsub | ||
SdkPackageVersions.props | ||
signal_awaiter_utils.cpp | ||
signal_awaiter_utils.h |