Merge pull request #53536 from Faless/mp/4.x_rpc_config

[Net] Add call_local argument to Node.rpc_config.
This commit is contained in:
Max Hilbrunner 2021-10-08 14:15:01 +02:00 committed by GitHub
commit 5733c13f53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 11 deletions

View file

@ -3490,9 +3490,9 @@ bool GDScriptParser::network_annotations(const AnnotationNode *p_annotation, Nod
} else if (mode == "authority") {
rpc_config.rpc_mode = Multiplayer::RPC_MODE_AUTHORITY;
} else if (mode == "call_local") {
rpc_config.sync = true;
rpc_config.call_local = true;
} else if (mode == "call_remote") {
rpc_config.sync = false;
rpc_config.call_local = false;
} else if (mode == "reliable") {
rpc_config.transfer_mode = Multiplayer::TRANSFER_MODE_RELIABLE;
} else if (mode == "unreliable") {