class_multiplayerspawner.rst 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the MultiplayerSpawner.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_MultiplayerSpawner:
  6. MultiplayerSpawner
  7. ==================
  8. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Properties
  10. ----------
  11. +-----------------------------------------+-------------------------------------------------------------------+------------------+
  12. | :ref:`bool<class_bool>` | :ref:`auto_spawn<class_MultiplayerSpawner_property_auto_spawn>` | ``false`` |
  13. +-----------------------------------------+-------------------------------------------------------------------+------------------+
  14. | :ref:`PackedScene[]<class_PackedScene>` | :ref:`replication<class_MultiplayerSpawner_property_replication>` | ``[]`` |
  15. +-----------------------------------------+-------------------------------------------------------------------+------------------+
  16. | :ref:`int<class_int>` | :ref:`spawn_limit<class_MultiplayerSpawner_property_spawn_limit>` | ``0`` |
  17. +-----------------------------------------+-------------------------------------------------------------------+------------------+
  18. | :ref:`NodePath<class_NodePath>` | :ref:`spawn_path<class_MultiplayerSpawner_property_spawn_path>` | ``NodePath("")`` |
  19. +-----------------------------------------+-------------------------------------------------------------------+------------------+
  20. Methods
  21. -------
  22. +-----------------------------+------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Object<class_Object>` | :ref:`_spawn_custom<class_MultiplayerSpawner_method__spawn_custom>` **(** :ref:`Variant<class_Variant>` data **)** |virtual| |
  24. +-----------------------------+------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`Node<class_Node>` | :ref:`spawn<class_MultiplayerSpawner_method_spawn>` **(** :ref:`Variant<class_Variant>` data=null **)** |
  26. +-----------------------------+------------------------------------------------------------------------------------------------------------------------------+
  27. Signals
  28. -------
  29. .. _class_MultiplayerSpawner_signal_despawned:
  30. - **despawned** **(** :ref:`int<class_int>` scene_id, :ref:`Node<class_Node>` node **)**
  31. ----
  32. .. _class_MultiplayerSpawner_signal_spawned:
  33. - **spawned** **(** :ref:`int<class_int>` scene_id, :ref:`Node<class_Node>` node **)**
  34. Property Descriptions
  35. ---------------------
  36. .. _class_MultiplayerSpawner_property_auto_spawn:
  37. - :ref:`bool<class_bool>` **auto_spawn**
  38. +-----------+--------------------------+
  39. | *Default* | ``false`` |
  40. +-----------+--------------------------+
  41. | *Setter* | set_auto_spawning(value) |
  42. +-----------+--------------------------+
  43. | *Getter* | is_auto_spawning() |
  44. +-----------+--------------------------+
  45. ----
  46. .. _class_MultiplayerSpawner_property_replication:
  47. - :ref:`PackedScene[]<class_PackedScene>` **replication**
  48. +-----------+-----------------------------+
  49. | *Default* | ``[]`` |
  50. +-----------+-----------------------------+
  51. | *Setter* | set_spawnable_scenes(value) |
  52. +-----------+-----------------------------+
  53. | *Getter* | get_spawnable_scenes() |
  54. +-----------+-----------------------------+
  55. ----
  56. .. _class_MultiplayerSpawner_property_spawn_limit:
  57. - :ref:`int<class_int>` **spawn_limit**
  58. +-----------+------------------------+
  59. | *Default* | ``0`` |
  60. +-----------+------------------------+
  61. | *Setter* | set_spawn_limit(value) |
  62. +-----------+------------------------+
  63. | *Getter* | get_spawn_limit() |
  64. +-----------+------------------------+
  65. ----
  66. .. _class_MultiplayerSpawner_property_spawn_path:
  67. - :ref:`NodePath<class_NodePath>` **spawn_path**
  68. +-----------+-----------------------+
  69. | *Default* | ``NodePath("")`` |
  70. +-----------+-----------------------+
  71. | *Setter* | set_spawn_path(value) |
  72. +-----------+-----------------------+
  73. | *Getter* | get_spawn_path() |
  74. +-----------+-----------------------+
  75. Method Descriptions
  76. -------------------
  77. .. _class_MultiplayerSpawner_method__spawn_custom:
  78. - :ref:`Object<class_Object>` **_spawn_custom** **(** :ref:`Variant<class_Variant>` data **)** |virtual|
  79. ----
  80. .. _class_MultiplayerSpawner_method_spawn:
  81. - :ref:`Node<class_Node>` **spawn** **(** :ref:`Variant<class_Variant>` data=null **)**
  82. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  83. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  84. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  85. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  86. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  87. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`