summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-10-08 14:13:06 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-04 14:56:30 +0100
commitd219547c96ce66a6f54d9d9d7ae431e9b115221f (patch)
treee9390f9b7e8bebda4a21ae686595db77230ba141 /servers
parent2e320dcf8796d77b6196ef93d4ea304bf5bcb3d4 (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 'servers')
0 files changed, 0 insertions, 0 deletions