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:
samkeen
2022-01-19 19:14:48 -08:00
parent 39ce408215
commit 9ec9531b9a

View File

@@ -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`. |
| | |