mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
Revert "RPCMode refactor, more sync modes"
This commit is contained in:
parent
d0b62ce155
commit
4c69a495c9
30 changed files with 333 additions and 319 deletions
|
|
@ -1971,11 +1971,11 @@ Ref<Script> VisualScriptInstance::get_script() const {
|
|||
return script;
|
||||
}
|
||||
|
||||
MultiplayerAPI::RPCMode VisualScriptInstance::get_rpc_mode(const StringName &p_method) const {
|
||||
ScriptInstance::RPCMode VisualScriptInstance::get_rpc_mode(const StringName &p_method) const {
|
||||
|
||||
const Map<StringName, VisualScript::Function>::Element *E = script->functions.find(p_method);
|
||||
if (!E) {
|
||||
return MultiplayerAPI::RPC_MODE_DISABLED;
|
||||
return RPC_MODE_DISABLED;
|
||||
}
|
||||
|
||||
if (E->get().function_id >= 0 && E->get().nodes.has(E->get().function_id)) {
|
||||
|
|
@ -1987,12 +1987,12 @@ MultiplayerAPI::RPCMode VisualScriptInstance::get_rpc_mode(const StringName &p_m
|
|||
}
|
||||
}
|
||||
|
||||
return MultiplayerAPI::RPC_MODE_DISABLED;
|
||||
return RPC_MODE_DISABLED;
|
||||
}
|
||||
|
||||
MultiplayerAPI::RPCMode VisualScriptInstance::get_rset_mode(const StringName &p_variable) const {
|
||||
ScriptInstance::RPCMode VisualScriptInstance::get_rset_mode(const StringName &p_variable) const {
|
||||
|
||||
return MultiplayerAPI::RPC_MODE_DISABLED;
|
||||
return RPC_MODE_DISABLED;
|
||||
}
|
||||
|
||||
void VisualScriptInstance::create(const Ref<VisualScript> &p_script, Object *p_owner) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue