mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 01:43:36 +00:00
Merge pull request #19021 from Faless/rpc_sync_fix
RPCMode refactor, more sync modes
This commit is contained in:
commit
d0b62ce155
30 changed files with 319 additions and 333 deletions
|
|
@ -93,7 +93,7 @@ bool VisualScriptFunction::_set(const StringName &p_name, const Variant &p_value
|
|||
}
|
||||
|
||||
if (p_name == "rpc/mode") {
|
||||
rpc_mode = ScriptInstance::RPCMode(int(p_value));
|
||||
rpc_mode = MultiplayerAPI::RPCMode(int(p_value));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -267,11 +267,11 @@ int VisualScriptFunction::get_argument_count() const {
|
|||
return arguments.size();
|
||||
}
|
||||
|
||||
void VisualScriptFunction::set_rpc_mode(ScriptInstance::RPCMode p_mode) {
|
||||
void VisualScriptFunction::set_rpc_mode(MultiplayerAPI::RPCMode p_mode) {
|
||||
rpc_mode = p_mode;
|
||||
}
|
||||
|
||||
ScriptInstance::RPCMode VisualScriptFunction::get_rpc_mode() const {
|
||||
MultiplayerAPI::RPCMode VisualScriptFunction::get_rpc_mode() const {
|
||||
return rpc_mode;
|
||||
}
|
||||
|
||||
|
|
@ -319,7 +319,7 @@ VisualScriptFunction::VisualScriptFunction() {
|
|||
stack_size = 256;
|
||||
stack_less = false;
|
||||
sequenced = true;
|
||||
rpc_mode = ScriptInstance::RPC_MODE_DISABLED;
|
||||
rpc_mode = MultiplayerAPI::RPC_MODE_DISABLED;
|
||||
}
|
||||
|
||||
void VisualScriptFunction::set_stack_less(bool p_enable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue