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:
commit
5733c13f53
6 changed files with 14 additions and 11 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue