virtualx-engine/modules/multiplayer
Fabio Alessandrelli 9773803e4e [MP] Add optional authentication to SceneMultiplayer.
Add few methods to allow peers to exchange authentication information.

- `set_auth_callback(callback)`: Enable the authentication features.
  The callback is a `Callable` that accepts an `int` (the peer ID), and
  a `PackedByteArray` of data.
- The `peer_authenticating(id)` signal will be emitted instead of
  `peer_connected` when a new peer connects.
- Use `send_auth(id: int, data: PackedByteArray)` to exchange data.
- Call `complete_auth(id: int)` when the authentication process is
  complete and you expect to start receiving game data.
- The `peer_connected` signal will be emitted as soon as both parties
  complete the authentication.
- Use `disconnect_peer(id)` to disconnect a connected peer.
- If the `peer_connected` signal didn't fire for that peer (i.e. it was
  still in the authentication phase), the `peer_auth_failed` signal will
  be emitted instead of `peer_disconnected`.
2022-11-02 15:17:23 +01:00
..
doc_classes [MP] Add optional authentication to SceneMultiplayer. 2022-11-02 15:17:23 +01:00
editor Add per-scene UndoRedo 2022-08-22 18:05:10 +02:00
config.py [Net] Modularize multiplayer, expose MultiplayerAPI to extensions. 2022-07-26 09:31:12 +02:00
multiplayer_spawner.cpp Fix typos with codespell 2022-09-30 14:23:36 +02:00
multiplayer_spawner.h Change return type of get_configuration_warnings to PackedStringArray 2022-09-19 16:43:15 +01:00
multiplayer_synchronizer.cpp Fix MultiplayerSynchronizer::update_outbound_sync_time when replication_interval is not 0 2022-10-23 14:01:51 +08:00
multiplayer_synchronizer.h [MP] Allow multiple synchronizers per node. 2022-10-03 14:45:00 +02:00
register_types.cpp [Net] Modularize multiplayer, expose MultiplayerAPI to extensions. 2022-07-26 09:31:12 +02:00
register_types.h [Net] Modularize multiplayer, expose MultiplayerAPI to extensions. 2022-07-26 09:31:12 +02:00
scene_cache_interface.cpp [MP] Let MultiplayerAPI handle packet relaying and peer signaling. 2022-10-27 18:08:58 +02:00
scene_cache_interface.h [Net] Modularize multiplayer, expose MultiplayerAPI to extensions. 2022-07-26 09:31:12 +02:00
scene_multiplayer.cpp [MP] Add optional authentication to SceneMultiplayer. 2022-11-02 15:17:23 +01:00
scene_multiplayer.h [MP] Add optional authentication to SceneMultiplayer. 2022-11-02 15:17:23 +01:00
scene_replication_config.cpp Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4. 2022-10-07 11:32:33 +03:00
scene_replication_config.h [Net] Modularize multiplayer, expose MultiplayerAPI to extensions. 2022-07-26 09:31:12 +02:00
scene_replication_interface.cpp Merge pull request #67445 from Zylann/rename_queue_delete 2022-10-31 10:51:18 +01:00
scene_replication_interface.h [MP] Allow multiple synchronizers per node. 2022-10-03 14:45:00 +02:00
scene_rpc_interface.cpp [MP] Let MultiplayerAPI handle packet relaying and peer signaling. 2022-10-27 18:08:58 +02:00
scene_rpc_interface.h [Net] Modularize multiplayer, expose MultiplayerAPI to extensions. 2022-07-26 09:31:12 +02:00
SCsub SCons: Unify tools/target build type configuration 2022-09-26 16:31:46 +02:00