summaryrefslogtreecommitdiff
path: root/core/multiplayer/multiplayer_api.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-07-20 21:18:58 +0200
committerGitHub <noreply@github.com>2022-07-20 21:18:58 +0200
commit1cf7ebda501a1e0fe15d610bded7772324168b6e (patch)
tree102ff5f099b0e2ec99214849fe6c2f5ae96a1aa7 /core/multiplayer/multiplayer_api.cpp
parente1c50152a034e9a6605d113ff6956206caad3a26 (diff)
parentddee5f605018c77e92378b525bd23ba32fb1263a (diff)
Merge pull request #62961 from Faless/mp/4.x_interest
Add peer visibility to MultiplayerSynchronizer.
Diffstat (limited to 'core/multiplayer/multiplayer_api.cpp')
-rw-r--r--core/multiplayer/multiplayer_api.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/multiplayer/multiplayer_api.cpp b/core/multiplayer/multiplayer_api.cpp
index 9605647b3f..6cce31e0d1 100644
--- a/core/multiplayer/multiplayer_api.cpp
+++ b/core/multiplayer/multiplayer_api.cpp
@@ -463,8 +463,12 @@ bool MultiplayerAPI::is_cache_confirmed(NodePath p_path, int p_peer) {
return cache->is_cache_confirmed(p_path, p_peer);
}
-bool MultiplayerAPI::send_object_cache(Object *p_obj, NodePath p_path, int p_peer_id, int &r_id) {
- return cache->send_object_cache(p_obj, p_path, p_peer_id, r_id);
+bool MultiplayerAPI::send_object_cache(Object *p_obj, int p_peer_id, int &r_id) {
+ return cache->send_object_cache(p_obj, p_peer_id, r_id);
+}
+
+int MultiplayerAPI::make_object_cache(Object *p_obj) {
+ return cache->make_object_cache(p_obj);
}
Object *MultiplayerAPI::get_cached_object(int p_from, uint32_t p_cache_id) {