mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Reduced the RPC annotations down to @rpc
As per this post (and merge to master): https://godotengine.org/article/multiplayer-changes-godot-4-0-report-2 The multiplayer annotations have reduced down to only @rpc (as far as I can tell? apologies if I've miss interpreted this) - removed the deprecated annotations and replaced with @rpc - replaced an example that referenced @remote
This commit is contained in:
@@ -327,11 +327,11 @@ between parentheses and separated by commas.
|
||||
|
||||
Both of these are the same::
|
||||
|
||||
@export_file("*.png")
|
||||
@remote
|
||||
var x
|
||||
@onready
|
||||
@export_node_path(TextEdit, LineEdit)
|
||||
var input_field
|
||||
|
||||
@export_file("*.png") @remote var x
|
||||
@onready @export_node_path(TextEdit, LineEdit) var input_field
|
||||
|
||||
|
||||
Here's the list of available annotations:
|
||||
@@ -346,17 +346,7 @@ Here's the list of available annotations:
|
||||
+------------------------------+---------------------------------------------------------------------------------------------------+
|
||||
| ``@icon(path)`` | Set the class icon to show in editor. To be used together with the ``class_name`` keyword. |
|
||||
+------------------------------+---------------------------------------------------------------------------------------------------+
|
||||
| ``@master`` | RPC modifiers. See :ref:`high-level multiplayer docs <doc_high_level_multiplayer>`. |
|
||||
| | |
|
||||
| ``@puppet`` | |
|
||||
| | |
|
||||
| ``@remote`` | |
|
||||
| | |
|
||||
| ``@mastersync`` | |
|
||||
| | |
|
||||
| ``@puppetsync`` | |
|
||||
| | |
|
||||
| ``@remotesync`` | |
|
||||
| ``@rpc`` | RPC modifiers. See :ref:`high-level multiplayer docs <doc_high_level_multiplayer>`. |
|
||||
+------------------------------+---------------------------------------------------------------------------------------------------+
|
||||
| ``@export`` | Export hints for the editor. See :ref:`doc_gdscript_exports`. |
|
||||
| | |
|
||||
|
||||
Reference in New Issue
Block a user