diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-10-08 14:13:06 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-02-04 14:56:30 +0100 |
commit | d219547c96ce66a6f54d9d9d7ae431e9b115221f (patch) | |
tree | e9390f9b7e8bebda4a21ae686595db77230ba141 /scene/SCsub | |
parent | 2e320dcf8796d77b6196ef93d4ea304bf5bcb3d4 (diff) |
[Net] New replication interface, spawner and synchronizer nodes.
Initial implementation of the MultiplayerReplicationInterface and its
default implementation (SceneReplicationInterface).
New MultiplayerSpawner node helps dealing with instantiation of scenes
on remote peers (e.g. clients).
It supports both custom spawns via a `_spawn_custom` virtual function,
and optional auto-spawn of known scenes via a TypedArray<PackedScenes>
property.
New MultiplayerSynchornizer helps synchronizing states between the local
and remote peers, supports both sync and spawn properties and is
configured via a `SceneReplicationConfig` resource.
It can also sync via path (i.e. without being spawned by a
MultiplayerSpawner if both peers has it in tree, but will not send the
spawn state in that case, only the sync one.
Diffstat (limited to 'scene/SCsub')
-rw-r--r-- | scene/SCsub | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/SCsub b/scene/SCsub index 92288211bb..a7b23af598 100644 --- a/scene/SCsub +++ b/scene/SCsub @@ -9,6 +9,7 @@ env.add_source_files(env.scene_sources, "*.cpp") # Chain load SCsubs SConscript("main/SCsub") +SConscript("multiplayer/SCsub") SConscript("gui/SCsub") if not env["disable_3d"]: SConscript("3d/SCsub") |