godot/scene/main
Fabio Alessandrelli 9fcf3b5a9c [Net] Basic extensible MultiplayerAPI spawn/despawn.
`PackedScene`s can be configured to be spawnable via a new
`MultiplayerAPI.spawnable_config` method.
They can be configured either to be spawned automatically when coming
from the server or to always require verification.
Another method, `MultiplayerAPI.send_spawn` lets you request a spawn on
the remote peers.
When a peer receive a spawn request:
- If it comes from the server and the scene is configured as
  `SPAWN_MODE_SERVER`:
  - Spawn the scene (instantiate it, add it to tree).
  - Emit signal `network_spawn`.
- Else:
  - Emit signal `network_spawn_request`.

In a similar way, `despawn`s are handled automatically in
`SPAWN_MODE_SERVER`.

In `SPAWN_MODE_SERVER`, when a new client connects it will also receive,
from the server all the spawned (and not yet despawned) instances.
2021-08-09 16:34:40 +02:00
..
canvas_item.cpp Use C++ iterators for Lists in many situations 2021-07-23 17:38:28 -04:00
canvas_item.h Editor StringName and Viewport optimizations 2021-07-20 20:35:41 +02:00
canvas_layer.cpp Fix editor suffixes and degrees conversion 2021-06-30 12:38:25 -03:00
canvas_layer.h Fix editor suffixes and degrees conversion 2021-06-30 12:38:25 -03:00
http_request.cpp Use const references where possible for List range iterators 2021-07-25 12:22:25 +02:00
http_request.h Core: Move DirAccess and FileAccess to core/io 2021-06-11 14:52:39 +02:00
instance_placeholder.cpp Use const references where possible for List range iterators 2021-07-25 12:22:25 +02:00
instance_placeholder.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
node.cpp [Net] Basic extensible MultiplayerAPI spawn/despawn. 2021-08-09 16:34:40 +02:00
node.h [Net] Basic extensible MultiplayerAPI spawn/despawn. 2021-08-09 16:34:40 +02:00
resource_preloader.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
resource_preloader.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
scene_tree.cpp Merge pull request #50899 from akien-mga/refref 2021-07-26 19:45:04 +02:00
scene_tree.h Use doubles for time everywhere in Timer/SceneTree 2021-07-26 02:00:48 -04:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
shader_globals_override.cpp Fix Command Queue Crash 2021-07-07 10:57:56 -03:00
shader_globals_override.h Use Array for node configuration warnings 2021-04-11 23:25:38 -05:00
timer.cpp Use doubles for time everywhere in Timer/SceneTree 2021-07-26 02:00:48 -04:00
timer.h Use doubles for time everywhere in Timer/SceneTree 2021-07-26 02:00:48 -04:00
viewport.cpp Add auto_translate toggle for automatic translation 2021-07-29 18:30:34 -03:00
viewport.h Show tooltips even when paused or time_scale is 0 2021-07-23 17:49:30 +02:00
window.cpp Add auto_translate toggle for automatic translation 2021-07-29 18:30:34 -03:00
window.h Add auto_translate toggle for automatic translation 2021-07-29 18:30:34 -03:00