mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 06:33:16 +00:00
d219547c96
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.
6 lines
87 B
Python
6 lines
87 B
Python
#!/usr/bin/env python
|
|
|
|
Import("env")
|
|
|
|
env.add_source_files(env.scene_sources, "*.cpp")
|