Browse Source

Merge pull request #5532 from exploregamedev/rpc_annotation

Reduced reference to RPC annotations down to @rpc
Max Hilbrunner 3 years ago
parent
commit
74a720e169
1 changed files with 5 additions and 15 deletions
  1. 5 15
      tutorials/scripting/gdscript/gdscript_basics.rst

+ 5 - 15
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -327,11 +327,11 @@ between parentheses and separated by commas.
 
 
 Both of these are the same::
 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:
 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.        |
 | ``@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`.                                     |
 | ``@export``                  | Export hints for the editor. See :ref:`doc_gdscript_exports`.                                     |
 |                              |                                                                                                   |
 |                              |                                                                                                   |