class_scenereplicationconfig.rst 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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.1/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.1/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. | :ref:`bool<class_bool>` | :ref:`property_get_watch<class_SceneReplicationConfig_method_property_get_watch>` **(** :ref:`NodePath<class_NodePath>` path **)** |
  30. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`property_set_spawn<class_SceneReplicationConfig_method_property_set_spawn>` **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)** |
  32. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`property_set_sync<class_SceneReplicationConfig_method_property_set_sync>` **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)** |
  34. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`property_set_watch<class_SceneReplicationConfig_method_property_set_watch>` **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)** |
  36. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | void | :ref:`remove_property<class_SceneReplicationConfig_method_remove_property>` **(** :ref:`NodePath<class_NodePath>` path **)** |
  38. +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. .. rst-class:: classref-section-separator
  40. ----
  41. .. rst-class:: classref-descriptions-group
  42. Method Descriptions
  43. -------------------
  44. .. _class_SceneReplicationConfig_method_add_property:
  45. .. rst-class:: classref-method
  46. void **add_property** **(** :ref:`NodePath<class_NodePath>` path, :ref:`int<class_int>` index=-1 **)**
  47. Adds the property identified by the given ``path`` to the list of the properties being synchronized, optionally passing an ``index``.
  48. \ **Note:** For details on restrictions and limitations on property synchronization, see :ref:`MultiplayerSynchronizer<class_MultiplayerSynchronizer>`.
  49. .. rst-class:: classref-item-separator
  50. ----
  51. .. _class_SceneReplicationConfig_method_get_properties:
  52. .. rst-class:: classref-method
  53. :ref:`NodePath[]<class_NodePath>` **get_properties** **(** **)** |const|
  54. Returns a list of synchronized property :ref:`NodePath<class_NodePath>`\ s.
  55. .. rst-class:: classref-item-separator
  56. ----
  57. .. _class_SceneReplicationConfig_method_has_property:
  58. .. rst-class:: classref-method
  59. :ref:`bool<class_bool>` **has_property** **(** :ref:`NodePath<class_NodePath>` path **)** |const|
  60. Returns whether the given ``path`` is configured for synchronization.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_SceneReplicationConfig_method_property_get_index:
  64. .. rst-class:: classref-method
  65. :ref:`int<class_int>` **property_get_index** **(** :ref:`NodePath<class_NodePath>` path **)** |const|
  66. Finds the index of the given ``path``.
  67. .. rst-class:: classref-item-separator
  68. ----
  69. .. _class_SceneReplicationConfig_method_property_get_spawn:
  70. .. rst-class:: classref-method
  71. :ref:`bool<class_bool>` **property_get_spawn** **(** :ref:`NodePath<class_NodePath>` path **)**
  72. Returns whether the property identified by the given ``path`` is configured to be synchronized on spawn.
  73. .. rst-class:: classref-item-separator
  74. ----
  75. .. _class_SceneReplicationConfig_method_property_get_sync:
  76. .. rst-class:: classref-method
  77. :ref:`bool<class_bool>` **property_get_sync** **(** :ref:`NodePath<class_NodePath>` path **)**
  78. Returns whether the property identified by the given ``path`` is configured to be synchronized on process.
  79. .. rst-class:: classref-item-separator
  80. ----
  81. .. _class_SceneReplicationConfig_method_property_get_watch:
  82. .. rst-class:: classref-method
  83. :ref:`bool<class_bool>` **property_get_watch** **(** :ref:`NodePath<class_NodePath>` path **)**
  84. Returns whether the property identified by the given ``path`` is configured to be reliably synchronized when changes are detected on process.
  85. .. rst-class:: classref-item-separator
  86. ----
  87. .. _class_SceneReplicationConfig_method_property_set_spawn:
  88. .. rst-class:: classref-method
  89. void **property_set_spawn** **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)**
  90. Sets whether the property identified by the given ``path`` is configured to be synchronized on spawn.
  91. .. rst-class:: classref-item-separator
  92. ----
  93. .. _class_SceneReplicationConfig_method_property_set_sync:
  94. .. rst-class:: classref-method
  95. void **property_set_sync** **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)**
  96. Sets whether the property identified by the given ``path`` is configured to be synchronized on process.
  97. .. rst-class:: classref-item-separator
  98. ----
  99. .. _class_SceneReplicationConfig_method_property_set_watch:
  100. .. rst-class:: classref-method
  101. void **property_set_watch** **(** :ref:`NodePath<class_NodePath>` path, :ref:`bool<class_bool>` enabled **)**
  102. Sets whether the property identified by the given ``path`` is configured to be reliably synchronized when changes are detected on process.
  103. .. rst-class:: classref-item-separator
  104. ----
  105. .. _class_SceneReplicationConfig_method_remove_property:
  106. .. rst-class:: classref-method
  107. void **remove_property** **(** :ref:`NodePath<class_NodePath>` path **)**
  108. Removes the property identified by the given ``path`` from the configuration.
  109. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  110. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  111. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  112. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  113. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  114. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  115. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`