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
..
2021-07-13 16:34:45 +08:00
2021-01-01 20:19:21 +01:00
2021-07-23 17:38:28 -04:00
2021-06-11 18:48:42 +02:00
2021-07-25 12:22:25 +02:00
2021-06-11 14:52:39 +02:00
2021-06-11 14:52:39 +02:00
2021-06-11 18:48:42 +02:00
2021-05-25 11:54:28 +01:00
2021-06-11 14:52:39 +02:00
2021-06-07 18:34:00 +02:00
2021-06-11 14:52:39 +02:00
2021-06-11 14:52:39 +02:00
2021-06-11 14:52:39 +02:00
2021-06-19 20:49:18 -06:00
2021-06-11 14:52:39 +02:00
2021-06-03 15:19:07 +02:00
2021-06-11 14:52:39 +02:00
2021-06-11 14:52:39 +02:00
2021-05-25 11:54:28 +01:00
2021-08-04 11:53:21 +02:00
2021-06-11 14:52:39 +02:00
2021-07-11 12:14:08 +08:00
2021-06-23 14:10:45 +02:00
2021-07-23 17:38:28 -04:00
2021-06-23 14:10:45 +02:00
2021-07-25 12:22:25 +02:00
2021-06-11 14:52:39 +02:00
2021-06-28 21:17:06 +02:00
2021-06-28 21:17:06 +02:00
2021-05-06 02:52:01 +02:00
2021-05-06 02:52:01 +02:00
2021-08-03 00:24:22 +02:00
2021-06-01 11:24:34 +07:00
2021-07-25 12:22:25 +02:00
2021-06-19 08:01:40 +01:00
2021-06-12 22:55:25 +02:00
2021-06-11 14:52:39 +02:00
2021-08-02 13:35:33 +02:00
2021-07-30 16:13:43 +02:00
2021-08-09 16:34:40 +02:00
2021-08-09 16:34:40 +02:00
2021-07-30 17:29:50 +02:00
2021-07-30 17:29:50 +02:00
2021-01-01 20:19:21 +01:00
2021-06-11 18:48:42 +02:00
2021-07-25 12:22:25 +02:00
2021-06-11 18:48:42 +02:00
2021-06-11 14:52:39 +02:00
2021-01-01 20:19:21 +01:00
2021-05-06 02:52:01 +02:00
2021-05-06 02:52:01 +02:00
2021-06-17 19:10:26 -04:00
2021-06-11 18:48:42 +02:00
2021-06-11 14:52:39 +02:00
2021-06-11 18:48:42 +02:00
2021-07-29 22:25:18 -07:00
2021-07-29 22:24:29 -07:00
2021-07-25 12:22:25 +02:00
2021-07-24 09:16:52 -03:00
2021-07-25 12:22:25 +02:00
2021-07-25 11:21:51 +02:00
2021-07-25 12:22:25 +02:00
2021-07-24 09:16:52 -03:00
2021-07-25 11:55:56 +02:00
2021-07-24 09:16:52 -03:00
2021-08-06 11:03:26 +02:00
2021-07-24 09:16:52 -03:00
2020-03-30 09:05:53 +02:00
2021-01-01 20:19:21 +01:00
2021-01-01 20:19:21 +01:00
2021-05-06 02:52:01 +02:00
2021-05-06 02:52:01 +02:00
2021-06-19 20:49:18 -06:00
2021-06-11 18:48:42 +02:00
2021-06-30 02:39:17 -07:00
2021-06-11 18:48:42 +02:00
2021-06-11 14:52:39 +02:00
2021-06-11 14:52:39 +02:00
2021-06-30 02:39:17 -07:00
2021-06-11 18:48:42 +02:00
2021-05-25 11:54:28 +01:00
2021-06-11 18:48:42 +02:00
2021-05-25 11:54:28 +01:00
2021-06-11 14:52:39 +02:00