class_scenereplicationconfig.rst 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/modules/multiplayer/doc_classes/SceneReplicationConfig.xml.
  6. .. _class_SceneReplicationConfig:
  7. SceneReplicationConfig
  8. ======================
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Configuration for properties to synchronize with a :ref:`MultiplayerSynchronizer<class_MultiplayerSynchronizer>`.
  11. .. rst-class:: classref-reftable-group
  12. Methods
  13. -------
  14. .. table::
  15. :widths: auto
  16. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`add_property<class_SceneReplicationConfig_method_add_property>` **(** :ref:`NodePath<class_NodePath>` path, :ref:`int<class_int>` index=-1 **)** |
  18. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`NodePath[]<class_NodePath>` | :ref:`get_properties<class_SceneReplicationConfig_method_get_properties>` **(** **)** |const| |
  20. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`has_property<class_SceneReplicationConfig_method_has_property>` **(** :ref:`NodePath<class_NodePath>` path **)** |const| |
  22. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`int<class_int>` | :ref:`property_get_index<class_SceneReplicationConfig_method_property_get_index>` **(** :ref:`NodePath<class_NodePath>` path **)** |const| |
  24. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`property_get_spawn<class_SceneReplicationConfig_method_property_get_spawn>` **(** :ref:`NodePath<class_NodePath>` path **)** |
  26. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`property_get_sync<class_SceneReplicationConfig_method_property_get_sync>` **(** :ref:`NodePath<class_NodePath>` path **)** |
  28. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`property_set_spawn<class_SceneReplicationConfig_method_property_set_spawn>` **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)** |
  30. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`property_set_sync<class_SceneReplicationConfig_method_property_set_sync>` **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)** |
  32. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`remove_property<class_SceneReplicationConfig_method_remove_property>` **(** :ref:`NodePath<class_NodePath>` path **)** |
  34. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Method Descriptions
  39. -------------------
  40. .. _class_SceneReplicationConfig_method_add_property:
  41. .. rst-class:: classref-method
  42. void **add_property** **(** :ref:`NodePath<class_NodePath>` path, :ref:`int<class_int>` index=-1 **)**
  43. Adds the property identified by the given ``path`` to the list of the properties being synchronized, optionally passing an ``index``.
  44. .. rst-class:: classref-item-separator
  45. ----
  46. .. _class_SceneReplicationConfig_method_get_properties:
  47. .. rst-class:: classref-method
  48. :ref:`NodePath[]<class_NodePath>` **get_properties** **(** **)** |const|
  49. Returns a list of synchronized property :ref:`NodePath<class_NodePath>`\ s.
  50. .. rst-class:: classref-item-separator
  51. ----
  52. .. _class_SceneReplicationConfig_method_has_property:
  53. .. rst-class:: classref-method
  54. :ref:`bool<class_bool>` **has_property** **(** :ref:`NodePath<class_NodePath>` path **)** |const|
  55. Returns whether the given ``path`` is configured for synchronization.
  56. .. rst-class:: classref-item-separator
  57. ----
  58. .. _class_SceneReplicationConfig_method_property_get_index:
  59. .. rst-class:: classref-method
  60. :ref:`int<class_int>` **property_get_index** **(** :ref:`NodePath<class_NodePath>` path **)** |const|
  61. Finds the index of the given ``path``.
  62. .. rst-class:: classref-item-separator
  63. ----
  64. .. _class_SceneReplicationConfig_method_property_get_spawn:
  65. .. rst-class:: classref-method
  66. :ref:`bool<class_bool>` **property_get_spawn** **(** :ref:`NodePath<class_NodePath>` path **)**
  67. Returns whether the property identified by the given ``path`` is configured to be synchronized on spawn.
  68. .. rst-class:: classref-item-separator
  69. ----
  70. .. _class_SceneReplicationConfig_method_property_get_sync:
  71. .. rst-class:: classref-method
  72. :ref:`bool<class_bool>` **property_get_sync** **(** :ref:`NodePath<class_NodePath>` path **)**
  73. Returns whether the property identified by the given ``path`` is configured to be synchronized on process.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_SceneReplicationConfig_method_property_set_spawn:
  77. .. rst-class:: classref-method
  78. void **property_set_spawn** **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)**
  79. Sets whether the property identified by the given ``path`` is configured to be synchronized on spawn.
  80. .. rst-class:: classref-item-separator
  81. ----
  82. .. _class_SceneReplicationConfig_method_property_set_sync:
  83. .. rst-class:: classref-method
  84. void **property_set_sync** **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)**
  85. Sets whether the property identified by the given ``path`` is configured to be synchronized on process.
  86. .. rst-class:: classref-item-separator
  87. ----
  88. .. _class_SceneReplicationConfig_method_remove_property:
  89. .. rst-class:: classref-method
  90. void **remove_property** **(** :ref:`NodePath<class_NodePath>` path **)**
  91. Removes the property identified by the given ``path`` from the configuration.
  92. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  93. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  94. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  95. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  96. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  97. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`