summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer/doc_classes
Commit message (Collapse)AuthorAgeFilesLines
* Better explanation for the replication interval and delta interval in the ↵Bogdan Inculet2024-11-151-2/+2
| | | | MultiplayerSynchronizer node
* Add unit tests for `SceneMultiplayer`Pablo Andres Fuente2024-09-291-1/+1
| | | | | | This PR aims to help "fix" #43440 Also fixing a small typo on `SceneMultiplayer` docs.
* Better description for multiplayer spawner signalsBogdan Inculet2024-09-241-2/+2
|
* Document SceneMultiplayer `auth_timeout` being in secondsHugo Locurcio2024-09-151-1/+1
|
* Fix typo in MultiplayerSpawner docJordyfel2024-08-121-2/+2
|
* Add keywords to improve search in the class referenceHugo Locurcio2024-02-222-2/+2
|
* Update many Deprecated/Experimental descriptions for consistencyMicky2024-02-171-4/+4
|
* Documentation: Add support for deprecated/experimental messagesDanil Alexeev2024-02-151-8/+4
|
* [MP] Make replication mode an enum + optimizationsFabio Alessandrelli2023-08-301-4/+34
| | | | | | | | | | REPLICATION_MODE_ALWAYS (sync) and REPLICATION_MODE_ON_CHANGE (watch) are now mutually exclusive. Prevent invalid NodePath from being added to the config. Optimize the replication config loading by composing the lists on demand.
* Doctool: Remove version attribute from XML headerRémi Verschelde2023-07-064-4/+4
| | | | | | We don't use that info for anything, and it generates unnecessary diffs every time we bump the minor version (and CI failures if we forget to sync some files from opt-in modules (mono, text_server_fb).
* Bump version to 4.2-devRémi Verschelde2023-07-054-4/+4
| | | | Keep on waitin'
* Fix `MultiplayerSpawner` documentationNinni Pipping2023-06-231-1/+1
|
* Ensure `RID`, `Callable`, and `Signal` are stored as stringsNinni Pipping2023-06-222-2/+2
| | | | | Prevents parser errors in `.tscn` and `.tres` files where the assignment would otherwise be empty.
* Clarify when things with _IDLE and _PHYSICS enums will runL4Vo52023-06-201-2/+2
|
* Fix more issues with code tags in class referenceRedworkDE2023-05-291-2/+2
|
* Add restrictions to MultiplayerSynchronizer editor and documentationNinni Pipping2023-05-242-0/+2
|
* [MP] Implement "watched" properties.Fabio Alessandrelli2023-05-243-2/+31
| | | | | Checked at "delta_interval" (default = every frame), synchronized (reliably) if changes are detected.
* Validate code tags in documentation for potential paramsYuri Sizov2023-04-264-16/+16
| | | | | | | Adds a check to make_rst to look for matches between the text inside of the [code][/code] tag and known param identifiers. Fixes most of what was revealed.
* Bump version to 4.1-devRémi Verschelde2023-03-014-4/+4
| | | | Can't stop, won't stop, they said, huh?
* [MP] Add a "synchronized" signal to MultiplayerSynchronized.Fabio Alessandrelli2023-02-201-0/+5
| | | | | Emitted upon receiving a valid sync packet after setting the variables state.
* Merge pull request #70721 from Faless/mp/4.x_fix_relay_optionRémi Verschelde2023-01-091-0/+1
|\ | | | | | | [MP] Fix server_relay being unsettable.
| * [MP] Fix server_relay being unsettable.Fabio Alessandrelli2022-12-291-0/+1
| | | | | | | | Clarify nuance in the docs.
* | [MP] Convert _spawn_custom to a Callable property.Fabio Alessandrelli2023-01-091-10/+6
|/ | | | | | | | Renamed to "spawn_function". Allow both custom spawn and auto spawn list to co-exist. This makes it possible to implement custom spawn without being forced to attach a script to MultiplayerSpawner directly.
* Use capitalized ID in the docHaoyu Qiu2022-12-081-1/+1
|
* Style: Misc docs and comment style and language fixesRémi Verschelde2022-11-022-8/+1
| | | | | | | | | | - Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
* [MP] Add optional authentication to SceneMultiplayer.Fabio Alessandrelli2022-11-021-0/+47
| | | | | | | | | | | | | | | | | | | 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`.
* [MP] Let MultiplayerAPI handle packet relaying and peer signaling.Fabio Alessandrelli2022-10-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MultiplayerPeer changes: - Adds is_server_relay_supported virtual method Informs the upper MultiplayerAPI layer if it can signal peers connected to the server to other clients, and perform packet relaying among them. - Adds get_packet_channel and get_packet_mode virtual methods Allows the MultiplayerAPI to retrieve the channel and transfer modes to use when relaying the last received packet. SceneMultiplayerPeer changes: - Implement peer signaling and packet relaying when the MultiplayerPeer advertise they are supported. ENet, WebRTC, WebSocket changes: - Removed custom code for relaying from WebSocket and ENet, and let it be handled by the upper layer. - Update WebRTC to split create_client, create_server, and create_mesh, with the latter behaving like the old initialize with "server_compatibility = false", and the first two supporting the upper layer relaying protocol.
* Fix typos with codespellRémi Verschelde2022-09-301-2/+2
| | | | | | | Using codespell 2.3-dev from current git. And fix typo in `methods.py` for `vsproj=yes` option (still won't work though).
* Rename the argument tag to param in XML documentationYuri Sizov2022-08-084-30/+30
|
* document multiplayer replication classes, small changes to multiplayer spawnerNathan Franke2022-07-303-8/+59
|
* [Net] Modularize multiplayer, expose MultiplayerAPI to extensions.Fabio Alessandrelli2022-07-264-0/+258
- RPC configurations are now dictionaries. - Script.get_rpc_methods renamed to Script.get_rpc_config. - Node.rpc[_id] and Callable.rpc now return an Error. - Refactor MultiplayerAPI to allow extension. - New MultiplayerAPI.rpc method with Array argument (for scripts). - Move the default MultiplayerAPI implementation to a module.